LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2010, 11:38 AM   #1
jdnow09
Member
 
Registered: Jun 2009
Posts: 42

Rep: Reputation: 16
Installing RPM package


In the past, I have installed rpm packages (third party application) but rarely do I upgrade/install a newer version on top of the old.

What is norm way of installing an updated package from the vendor (ie, EMC Networker).

Do I remove the old version first and installing the new version? My concern is removing will take some important files needed by the other application, etc.

John
 
Old 08-02-2010, 11:41 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can use
Code:
rpm -U packagename
http://www.rpm.org/max-rpm/ch-rpm-upgrade.html
 
Old 08-02-2010, 04:40 PM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
You can also do a 'su -c yum update && su -c yum upgrade' if you want to have similar features to Debian/Ubuntu's apt-get.
 
Old 08-02-2010, 08:58 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
most modern rpm based distros use yum
install the rpms using yum and NOT rpm


But with out knowing WHAT your distro is and WHAT rpm this is
and/or NOT knowing the name of said rpm and where you got said rpm ...

we can not help more
 
Old 08-03-2010, 03:52 AM   #5
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
Quote:
Originally Posted by Kenny_Strawn View Post
You can also do a 'su -c yum update && su -c yum upgrade' if you want to have similar features to Debian/Ubuntu's apt-get.
Running yum update && yum upgrade is not needed, as yum upgrade does the same as yum update

man yum
Code:
Update:
If run without any packages, update will update  every  currently
installed  package.  If one or more packages or package globs are
specified, Yum will  only  update  the  listed  packages.   While
updating packages, yum will ensure that all dependencies are sat-
isfied. If the packages or  globs  specified  match  to  packages
which  are  not  currently installed then update will not install
them. update operates on groups, files,  provides  and  filelists
just like the "install" command.

If  the  main obsoletes configure option is true (default) or the
--obsoletes flag is present yum will include package obsoletes in
its  calculations  -  this  makes  it  better  for distro-version
changes, for example: upgrading from somelinux 8.0  to  somelinux
9.

Upgrade:
Is  the same as the update command with the --obsoletes flag set.
See update for more details
Other than that, I agree with John VV.
Which distro and which rpm are we talking about?
 
Old 08-03-2010, 07:04 PM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Use yum localupdate package.rpm
This will check the dependencies of the new version and get any necessary upgrades for them from your distro's repository.
 
  


Reply



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
installing gcc rpm package Isuru Divarathne Linux - Software 4 10-15-2009 03:07 AM
installing an rpm package on Debian 4.0 Greebstreebling Linux - Software 1 05-01-2008 09:24 AM
Problem in installing RPM Package cj_cheema Linux - Desktop 9 08-11-2007 02:11 PM
installing rpm package of postgresql vijaysh Red Hat 2 04-29-2006 03:37 AM
installing and rpm package meliss Linux - Software 2 03-05-2004 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration