Linux - SoftwareThis 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.
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.
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?
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).
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.
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?
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
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
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 '
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.