LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-14-2011, 04:02 AM   #1
sr164w
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Rep: Reputation: Disabled
standardized conclusion required for rpm upgrade process


The rpm command provides three main operations for upgrading and installing packages:
Upgrade
An upgrade operation means installing a new version of a package and removing all previous versions of the same package. If you have not installed a package previously, the upgrade operation will install the package.
Freshen
A freshen operation means to install a new version of a package only if you have already installed another version of the package.
Install
An install operation installs a package for the first time. It also, through special command-line parameters, allows you to install multiple versions of a package, usually not what we want. So, in the vast majority of cases, you want to run the upgrade operation for all package installations.

Should normally install packages with rpm -U, not rpm -i. One of the main reasons is that rpm -i allows you to install multiple instances of the same (identical) package.

1. Is this the standard conclusion or
2. should I stop installing the second instance of the package along with the first instance by writing any wrapper script or by adding code in spec file section.

If 2nd point is the answer how can achieve this. Please guide me about this confusion.
 
Old 12-14-2011, 08:48 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,015
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
If you're using rpm to install you are specifying the packages so it should be easy to determine if you have the same package multiple times.

rpm -i does NOT automatically install the same package multiple times - you have to force it to install a package more than once. Note that a package with .i386 (.i686) in its name is NOT the same as one with .x86_64 even if the rest of the name is the same. One is 32 bit and the other is 64 bit and you can have both packages on the same machine with out an issue.

What Linux distro are you using? Most people these days use yum package management as it will detect dependencies and conflicts for doing multiple packages. Usually rpm is only used to install small sets of packages for specific purposes that do not appear in any of your yum repositories. (Type "man yum" for more information.)
 
Old 12-14-2011, 09:32 AM   #3
sr164w
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
rpm does not install same package multiple times.
but if i use rpm -i rpm installs multiple versions of same package. I want to avoid this installation of multiple versions of same package.
my confusion is only using the rpm -U is the solution or is there anything else to upgrade the rpm package installation.
 
Old 12-14-2011, 10:15 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,015
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
If you reread what you posted for the install option you can see that it says you should usually use the upgrade option because you usually don't want multiple versions. I misunderstood your earlier question. The answer is yes, use upgrade option. If the package isn't there then Upgrade will install it, if earlier version is there then Upgrade will replace it with the newer version.

Again however, I'd urge you to learn and use yum.
 
Old 12-14-2011, 10:19 AM   #5
sr164w
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
thanks for the reply!!

I wanted to suggest to our customer to use this upgrade option always instead of install in the first installation.
So wanted to get few more votes and agrees on this proposal of using upgrade option.

thank u again!!
 
  


Reply

Tags
install, installer, rpm, upgrade


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
libglib-1.2.so.0 RPM Required arvindtnspl Red Hat 4 07-03-2011 02:56 AM
RPM: how to skip user created files during RPM upgrade purnima_sahoo Linux - Newbie 2 09-04-2009 01:56 PM
rpm required. rehan999 Linux - Software 2 05-30-2008 11:21 PM
Most standardized distribution of linux davidh_R Linux - Distributions 41 12-18-2005 02:58 PM
Standardized Package Manager? DecimalPoint Linux - Software 0 05-22-2003 06:18 AM


All times are GMT -5. The time now is 12:58 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