Go Back   The UNIX and Linux Forums > Operating Systems > Linux
Search Forums:



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

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-27-2008
Registered User
 

Join Date: Jul 2007
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 05-28-2008
Registered User
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
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]#
Sponsored Links
    #3  
Old 05-28-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 03:11 AM.