LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-21-2009, 06:48 PM   #1
tombro
LQ Newbie
 
Registered: Mar 2009
Location: Sunny Florida, USA
Distribution: Fedora 30
Posts: 13

Rep: Reputation: 1
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?
 
Old 03-21-2009, 07:36 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
yum reinstall?
 
Old 03-21-2009, 07:47 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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).
 
Old 03-21-2009, 08:21 PM   #4
conormacaoidh
Member
 
Registered: Mar 2009
Distribution: Fedora
Posts: 41

Rep: Reputation: 15
yum remove

then

yum install
 
Old 03-21-2009, 10:54 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 03-22-2009, 01:15 AM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by tombro View Post
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
 
Old 03-22-2009, 02:16 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
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
 
Old 03-22-2009, 03:23 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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
 
Old 03-22-2009, 03:32 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
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 '
 
Old 03-22-2009, 04:07 AM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 03-22-2009, 09:56 AM   #11
tombro
LQ Newbie
 
Registered: Mar 2009
Location: Sunny Florida, USA
Distribution: Fedora 30
Posts: 13

Original Poster
Rep: Reputation: 1
Thumbs up 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.
 
Old 03-22-2009, 10:01 AM   #12
tombro
LQ Newbie
 
Registered: Mar 2009
Location: Sunny Florida, USA
Distribution: Fedora 30
Posts: 13

Original Poster
Rep: Reputation: 1
Lightbulb

Quote:
Originally Posted by AlucardZero View Post
yum reinstall?
Probably should have listened to you first!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have existing suse 10.0 install on laptop, want to install puppy over it sirius57 Puppy 2 10-20-2008 10:28 AM
VM with existing Windows install Karloman Linux - General 3 12-11-2007 10:59 AM
how to add existing files to existing imported kdevelop project?? santana Programming 1 05-22-2007 09:53 AM
How to add a file to an existing rpm package SharpyWarpy Linux - Software 3 06-20-2004 05:59 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration