Help!

How to reinstall installed packages with rpm

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> SUSE RSS
Next:  vsftpd password  
Author Message
j.
External


Since: Aug 07, 2007
Posts: 1



PostPosted: Wed Aug 08, 2007 12:37 am    Post subject: How to reinstall installed packages with rpm
Archived from groups: alt>os>linux>suse (more info?)

I have a list of packages with missing files (because a folder is being
removed). How can I reinstall a package ?
If I type "rpm -Uvh --allfiles --test package", it says the package is
already installed. Although I get missing files from "rpm -Va".
I think the option "--force" is too riscy because it will also overwrite
the existing files. Is it ?
Back to top
Michael Soibelman
External


Since: May 10, 2007
Posts: 123



PostPosted: Wed Aug 08, 2007 1:39 am    Post subject: Re: How to reinstall installed packages with rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

j. wrote:

> I have a list of packages with missing files (because a folder is being
> removed). How can I reinstall a package ?
> If I type "rpm -Uvh --allfiles --test package", it says the package is
> already installed. Although I get missing files from "rpm -Va".
> I think the option "--force" is too riscy because it will also overwrite
> the existing files. Is it ?

Two choices. (more I'm sure)

1. Use --force and accept that things will get overwritten. If you're just
reinstalling anyway due to 'some' files from the package being missing then
this is not a problem ! (So what's wrong with overwriting existing things
with the same thing ?)

2. Use Yast to find the messed up packages and select 'update
unconditionally'. (software management) This is probably the better way
to do it as 'some' files may be missing and this should insure a consistant
package database...
Back to top
David Bolt
External


Since: Feb 14, 2006
Posts: 566



PostPosted: Wed Aug 08, 2007 2:50 am    Post subject: Re: How to reinstall installed packages with rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 7 Aug 2007, j. wrote:-

>I have a list of packages with missing files (because a folder is being
>removed). How can I reinstall a package ?

rpm -Uvh --old-package <package.rpm>
rpm -Uvh --force <package.rpm>

Either should do.

>If I type "rpm -Uvh --allfiles --test package", it says the package is
>already installed. Although I get missing files from "rpm -Va".
>I think the option "--force" is too riscy because it will also
>overwrite the existing files. Is it ?

If the packager was worth their salt, they'd have ensured that any
config files won't be overwritten. If the packages are Novell supplied,
you can virtually guarantee they won't be overwritten. You can also say
the same for those from Packman and/or Guru.

As for other sources, I really can't say. What I will say is that
there's only likely to be a problem if the packager is relatively new at
packaging, hasn't read the Max-RPM (or similar) document, and didn't put
the %config directive in front of the files entry in the %files list.

Finally, if you're worried enough, use either of these:

rpm -Uvh --old-package --test <package.rpm>
rpm -Uvh --force --test <package.rpm>

so you can see just what's going to happen.


Regards,
David Bolt

--
Member of Team Acorn checking nodes at 100 Mnodes/s: www.distributed.net
RISC OS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit
RISC OS 3.6 | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit
TOS 4.02 | SUSE 9.3 32bit | | openSUSE 10.3a6 32bit
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> SUSE All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum