The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-27-2008
Registered User
 

Join Date: Jul 2007
Posts: 91
help regarding RPM

Helo I have base system 4.0.0.0 installed.
I m using linux operating system.
right now I have following packages are installed

ADMIN-4.0.0.0
DBASE-4.0.0.0

I want to make my system 4.1.0.0

for this I upgrade the above packages to ADMIN-4.1.0.0 and DBASE-4.1.0.0

now I want that when Uninstall 4.1.0.0 then I got the my base system as
4.0.0.0.
how do I achieve this.

If I erase the upgraded above packages then how i got the original packages

Regards,
Amit
Reply With Quote
Forum Sponsor
  #2  
Old 05-28-2008
Registered User
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 119
man pages are best friend in *NIX

To help you i just looked in "man rpm" and found "--oldpackage" option provides you such functionality. Following sequence works for me

[root@sumit /root]# rpm -q procps
procps-2.0.11-7
[root@sumit /root]# rpm -U procps-2.0.6-5.i386.rpm
warning: procps-2.0.6-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package procps-2.0.11-7 (which is newer than procps-2.0.6-5) is already installed
[root@sumit /root]# rpm -U --oldpackage procps-2.0.6-5.i386.rpm
warning: procps-2.0.6-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
[root@sumit /root]#
Reply With Quote
  #3  
Old 05-28-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
It's not really clear what are these packages for, I'm unaware of their names, nor you have mentioned your specific Linux distro. Generally, RPM packages are upgraded with -Uvh flags.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0