Operating System - Linux
1829997 Members
2916 Online
109998 Solutions
New Discussion

how to keep *.old.rpm and install *.new.rpm ?

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to keep *.old.rpm and install *.new.rpm ?

Hi Dear Experts

is it possibel to install new rpm package, but keeping old rpm package as well.
i.e. i want to install abc.new.rpm, but also have to keep abc.old.rpm. how ?

Plz help
Thanks in advance

Regards
Maaz
3 REPLIES 3
Vitaly Karasik_1
Honored Contributor
Solution

Re: how to keep *.old.rpm and install *.new.rpm ?

Yes, it's possible in most cases by using "rpm -i" instead of "rpm -U".

BTW, there is recommended mode for kernel install.
NiCK_76
Respected Contributor

Re: how to keep *.old.rpm and install *.new.rpm ?

rpm -ivh abc.new.rpm --prefix=/yourpath --force
just for fun
Ross Minkov
Esteemed Contributor

Re: how to keep *.old.rpm and install *.new.rpm ?

If you build your own RPMs using rpmbuild then you can controll this from the %config section in the SPEC file.

%config ==> marks configuration files

When a configuration file has been modified and an upgraded RPM is
installed, which has a different configuration file than the original package
had, the modified configuration file is copied with a filename extention of
.rpmorig and the new configuration file overwrites the original. If it was
marked %config(noreplace), then the modified configuration file is left alone
and the new configuration file is written with a filename extention of
.rmpnew. The directive %config(missingok) is used for files created in a %post
section which need to get removed on uninstallation. Finally, %ghost is used
to mark a virtual file which is not in the package and should not be deleted
on removal of the package, but which must have certain permissions. It is
commonly used for log files.

HTH,
Ross