Hi, 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. Regards, Gustavo.
Hi,
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 Good luck! Armin -- Am Hasenberg 26 office: Institut für Atmosphärenphysik D-18209 Bad Doberan Schloss-Straße 6 Tel. ++49-(0)38203/42137 D-18225 Kühlungsborn / GERMANY Email: schoech@iap-kborn.de Tel. +49-(0)38293-68-102 WWW: http://armins.cjb.net/ Fax. +49-(0)38293-68-50
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]
participants (3)
-
Armin Schoech
-
Christian Boltz
-
Gustavo Castro Puig