Mailinglist Archive: opensuse-security (261 mails)

< Previous Next >
Re: [suse-security] RPM Updates
  • From: Christian Boltz <cb.suse@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 7 Apr 2004 00:57:32 +0200
  • Message-id: <200404070057.32532@xxxxxxxxxxxxxxx>
Hello,

Am Montag, 5. April 2004 12:10 schrieb Armin Schoech:
> > I'm trying to reinstall a package manually with rpm in SuSE 9.0
> > and some config files doesn't get updated. I tried with --force,
> > --replacefiles and so on, and that files doesn't get updated
> > anyway. I don't know if it's a security issue or something I have
> > to worry about... Do you know how to *really* reinstall a complete
> > package (including configuration files)? Thanks in advance.
>
> --> When I want to make sure that everything is replaced, I
> de-install the package and then reinstall it again:
> rpm -e packagename
> rpm -Uhv packagename.rpm

This won't help if you have changed a config file ;-)

rpm only deletes or overwrites files that have not been changed.
Otherwise, the file will not be deleted or overwritten, but a *.rpmnew
will be created instead or the existing config file will be renamed to
*.rpmorig (depends on the package which way will happen).

Let's assume you'll uninstall apache. The really clean way is:
(untested, but should work ;-)

rpm -ql apache >/tmp/apachefilelist
rpm -e apache
while read file ; do
test -e "$file" && echo "$file still exists" # && rm -i "$file"
done < /tmp/apachefilelist

Note: Files not contained directly in the rpm package (i. e. files
created by SuSEconfig and log files) are not listed in rpm -ql


Gruß

Christian Boltz
--
"Does your computer ever crash?"
"Oh definitely, believe me. We want to make a tool that we can use
ourselves and we know from our own use we can make it a lot better
and a lot more reliable." [Bill Gates in a BBC interview]


< Previous Next >