LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-08-2009, 12:21 AM   #1
maitrey
LQ Newbie
 
Registered: May 2009
Posts: 14

Rep: Reputation: 0
Can rpm packages be over installed?


I have two rpm packages:
1)ns-2.0.0.0-0.dl.web.rpm.bin
2)ns-2.0.0.0-0.dl.rcd.rpm.bin
If I install ns-2.0.0.0-0.dl.web.rpm.bin it installs succesfully and after that if I install this ns-2.0.0.0-0.dl.rcd.rpm.bin this also installs successfuly
When I do a rpm -qa | grep ns
It shows both the packages
I want to have an over installation . How do I prevent the existence of both the packages?
 
Old 06-08-2009, 05:29 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

Rep: Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732
Quote:
Originally Posted by maitrey View Post
I want to have an over installation .
Do you mean you want to reinstall the packages?


Quote:
Originally Posted by maitrey View Post
How do I prevent the existence of both the packages?
Like it sez in the Metallica lyrics:
Not dead which eternal lie
Stranger eons death may die

Drain you of your sanity

Uninstall The Thing That Should Not Be.
 
Old 06-08-2009, 11:21 PM   #3
maitrey
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
No I donot want to reinstall. I install one package and without uninstalling the !st package I want to install the 2nd one. At a time I want only the existence of a single package.
 
Old 06-09-2009, 02:16 AM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 132Reputation: 132
Quote:
Originally Posted by maitrey View Post
No I donot want to reinstall. I install one package and without uninstalling the !st package I want to install the 2nd one. At a time I want only the existence of a single package.
You mean, that when you install second package first one should be uninstalled ?

In this case Obsolete: tag should help
 
Old 06-09-2009, 02:38 AM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
Originally Posted by maitrey View Post
No I donot want to reinstall. I install one package and without uninstalling the !st package I want to install the 2nd one. At a time I want only the existence of a single package.
What is the reason for this? If the two rpm contains different files you have to keep them both. If they contain the same files, just install the second one, since it will overwrite the first one that will result completely unnecessary.
 
Old 06-09-2009, 04:42 PM   #6
unixmen
Member
 
Registered: Jan 2009
Posts: 39

Rep: Reputation: 16
maybe you mean .
rpm -Uvh and not rpm -ivh

on this way you will install 2 versions of the same package
 
Old 06-09-2009, 11:16 PM   #7
maitrey
LQ Newbie
 
Registered: May 2009
Posts: 14

Original Poster
Rep: Reputation: 0
How to use the Obsolete tag?I am new to making rpm packages.Can anyone elaborate with an example?
 
Old 06-10-2009, 12:11 AM   #8
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 132Reputation: 132
Quote:
Originally Posted by maitrey View Post
How to use the Obsolete tag?I am new to making rpm packages.Can anyone elaborate with an example?
In the spec file of the package foo put
Code:
Obsolete: bar
In the spec file for package bar put
Code:
Obsolete: foo
Somewhere I saw recommendation to use it as
Code:
Obsolete: bar
Conflict: bar
and

Code:
Obsolete: foo
Conflict: foo
But I don't remember reason for using Conflict tag
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
listing installed packages using rpm metallica1973 Linux - Software 4 08-21-2007 01:01 PM
How to remove non-rpm installed packages ??? thinknologist Ubuntu 3 04-13-2007 12:55 AM
Directory containing .rpm packages already installed satimis Fedora 2 05-16-2006 09:19 AM
What happens to the installed RPM packages? halturata Linux - Newbie 5 03-31-2006 01:28 PM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 01:17 AM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration