Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-05-2012, 05:44 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13
Rep:
|
yum - how to re-install a package
CentOS 6.3
I have broken install (some executable files accidently overwritten)
I tried:
<code>
yum erase wine
yum install wine
</code>
does not restore missing files
how to erase a package and re-install?
yum erase wine
leaves all the executable files in place
|
|
|
08-05-2012, 06:56 PM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
http://linux.die.net/man/8/yum ?
Alternatively, try 'yum clear all', then reinstall, or http://hacktux.com/yum/force/reinstall ?
Just be careful & take a good backup before you start.
You might even find that if you've managed to erase part of wine, the a 'yum update wine' will work.
|
|
|
08-05-2012, 07:04 PM
|
#3
|
LQ Newbie
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13
Original Poster
Rep:
|
thanks
goes through the motions
but no luck
"wine" is one of the executable needing replacement
Installed:
wine.x86_64 0:1.2.3-1.el6
Complete!
[root@paradise bin]# ls -l wine*
-rw-r--r--. 1 root root 0 Aug 5 19:59 wine
-rwxr-xr-x. 1 root root 1055376 Apr 11 2011 wine64
-rwxr-xr-x. 1 root root 1582 Apr 11 2011 wineboot
-rwxr-xr-x. 1 root root 1582 Apr 11 2011 winecfg
. . .
|
|
|
08-05-2012, 07:06 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
Remove those files by hand; it should then notice the problem when you try to install/reinstall it.
|
|
|
08-05-2012, 07:10 PM
|
#5
|
LQ Newbie
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13
Original Poster
Rep:
|
|
|
|
08-05-2012, 07:16 PM
|
#6
|
LQ Newbie
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13
Original Poster
Rep:
|
deleted /usr/bin/wine*
yum reinstall wine
. . .
Installed:
wine.x86_64 0:1.2.3-1.el6
Complete!
[root@paradise bin]# ls wine*
ls: cannot access wine*: No such file or directory
[root@paradise bin]#
[root@paradise bin]# pwd
/usr/bin
|
|
|
08-05-2012, 07:42 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
Odd; did you do a 'yum clean all' each time as well?
Basically you have to remove the SW AND remove the entries in the rpm DB (which underlies yum).
you can also try
Code:
rpm -qa|grep -i wine
#then
rpm -e <wine rpms mentioned above>
drastic but effective & do another 'yum clean all' afterwards before re-installing or 'updating'.
You could also do this immediately after the 'rpm -e ...'
http://linux.die.net/man/8/rpm
|
|
|
08-05-2012, 08:09 PM
|
#8
|
LQ Newbie
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13
Original Poster
Rep:
|
SOLVED!
this did it!
thanks!
rpm -qa|grep -i wine
#then
rpm -e <wine rpms mentioned above>
some minor problems with order of removal
finally an endless loop:
[root@paradise ~]# rpm -qa | grep -i wine
wine-core-1.2.3-1.el6.x86_64
wine-common-1.2.3-1.el6.noarch
[root@paradise ~]# rpm -e wine-core-1.2.3-1.el6.x86_64
error: Failed dependencies:
wine-core = 1.2.3-1.el6 is needed by (installed) wine-common-1.2.3-1.el6.noarch
[root@paradise ~]# rpm -e wine-common-1.2.3-1.el6.noarch
error: Failed dependencies:
wine-common = 1.2.3-1.el6 is needed by (installed) wine-core-1.2.3-1.el6.x86_64
each dependent on the other
none the less after "yum install wine"
wine seems to be working again
although now a short list of wine* in /usr/bin
???
|
|
|
08-05-2012, 08:43 PM
|
#9
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
Glad to help. 
Maybe a short list is all you need there, or some of it is installed elsewhere.
You can use
Code:
yum info wine\*
yum search wine\*
to get more detailed info.
See also the home site www.winehq.org
|
|
|
All times are GMT -5. The time now is 02:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|