HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to keep *.old.rpm and install *.new.rpm ?
Operating System - Linux
1829997
Members
2916
Online
109998
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2004 06:09 AM
12-26-2004 06:09 AM
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
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
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2004 05:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2004 06:22 PM
12-26-2004 06:22 PM
Re: how to keep *.old.rpm and install *.new.rpm ?
rpm -ivh abc.new.rpm --prefix=/yourpath --force
just for fun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 10:29 AM
12-29-2004 10:29 AM
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
%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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP