Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
03-21-2009, 06:48 PM
|
#1
|
LQ Newbie
Registered: Mar 2009
Location: Sunny Florida, USA
Distribution: Fedora 30
Posts: 13
Rep:
|
I need to re-install an existing package.
I have a corrupted program file that is part of the findutils-4.4.0-1.fc10.i386 package.
Yum won't install or update findutils because the package is already installed.
So.... I thought I'd be smart and attempted to use yum erase and then yum install.
OMG, it wants to remove hundreds of packages as deps.
I almost passed out but was able to cancel the erase.
There is no --nodeps option to erase.
Anyone know how I can restore the package?
|
|
|
03-21-2009, 07:36 PM
|
#2
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
yum reinstall?
|
|
|
03-21-2009, 07:47 PM
|
#3
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
Unless my yum is too old(back on C5 right now) there is no reinstall option for yum.
What you can do is go and get the rpm you need with FF(save it to desktop or wherever). Then use the rpm command with the --replacefiles option (see man rpm).
|
|
|
03-21-2009, 08:21 PM
|
#4
|
Member
Registered: Mar 2009
Distribution: Fedora
Posts: 41
Rep:
|
yum remove
then
yum install
|
|
|
03-21-2009, 10:54 PM
|
#5
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
conormacaoidh
If you had read the OP's original post you would see that is not possible. There are a lot of rpms that yum cannot remove without breaking the entire OS.
|
|
|
03-22-2009, 01:15 AM
|
#6
|
ELF Statifier author
Registered: Oct 2007
Posts: 676
Rep: 
|
Quote:
Originally Posted by tombro
I have a corrupted program file that is part of the findutils-4.4.0-1.fc10.i386 package.
Yum won't install or update findutils because the package is already installed.
So.... I thought I'd be smart and attempted to use yum erase and then yum install.
OMG, it wants to remove hundreds of packages as deps.
I almost passed out but was able to cancel the erase.
There is no --nodeps option to erase.
Anyone know how I can restore the package?
|
Download findutils package from somewhere.
Then
Code:
rpm -U --force findutils.rpm
|
|
|
03-22-2009, 02:16 AM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,702
|
yum dose have the reinstall option
Quote:
yum --help
Usage: yum [options] COMMAND
List of Commands:
...
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
...
|
i have used it to reinstall kernels , so it will reinstall findutils
Code:
su -
yum reinstall findutils
|
|
|
03-22-2009, 03:23 AM
|
#8
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
It depends on the version of yum one is using.
Quote:
options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-q, --quiet quiet operation
-v, --verbose verbose operation
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin]
disable plugins by name
|
|
|
|
03-22-2009, 03:32 AM
|
#9
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,702
|
seeing as the OP is on fedora 10 and i am on 9 ,it's there . Same as " erase" and "remove" is
but "remove" is not listen in the help but it is in 'man yum '
|
|
|
03-22-2009, 04:07 AM
|
#10
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
Looks like reinstall was added to yum starting with 3.2.11. F8 started with 3.2.7, RHEL/Centos5.2 with 3.2.8, and F9 with 3.2.14. So after F8 and 5.2 but before F9.
Last edited by lazlow; 03-22-2009 at 04:08 AM.
|
|
|
03-22-2009, 09:56 AM
|
#11
|
LQ Newbie
Registered: Mar 2009
Location: Sunny Florida, USA
Distribution: Fedora 30
Posts: 13
Original Poster
Rep:
|
Package reinstalled!
Thanks to all who responded.
lazlow --
I downloaded the package from rpmfind.net and tried rpm -i with the --replacefiles option.
The reply was "Package already installed".
BUT
The rpm -i --replacepkgs did the trick.
Thanks for putting me on the right track.
John VV --
I pretty much thought I knew every yum option.
Seeing your response made me recheck yum more intently.
You are correct! Yum has a reinstall option.
Although lazlow's solution worked fine, I decided to try yum.
Well.. "yum reinstall findutils" erased findutils and then installed it.
No muss no fuss. The yum solution would have been the easiest way to go.
Thanks again.
|
|
|
03-22-2009, 10:01 AM
|
#12
|
LQ Newbie
Registered: Mar 2009
Location: Sunny Florida, USA
Distribution: Fedora 30
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by AlucardZero
yum reinstall?
|
Probably should have listened to you first!
|
|
|
All times are GMT -5. The time now is 03:46 AM.
|
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
|
|