LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-08-2016, 03:22 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 487

Rep: Reputation: 29
yum is better than rpm...is rpm still used


why would you use rpm if yum is ment to be better
is there a good reason

curious...
 
Old 03-08-2016, 03:35 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,561

Rep: Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127
The question makes no sense.

rpm is a package format, yum is a package manager. They do not do the same thing and can not be compared. Yum still uses rpm files.
 
Old 03-08-2016, 03:51 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 487

Original Poster
Rep: Reputation: 29
yes but there are rpm commands for doing things and yum commands for doing the same things from what i read...
 
Old 03-08-2016, 03:58 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,561

Rep: Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127
So you're talking about the command "rpm", rather than the package format "rpm" (packages which are (un)installed using the command "rpm"). Rpm works at a lower level than yum, interfacing with the packages directly. There's rarely, if ever, a need to do that yourself.

If you want to use the package manager, then use the package manager (yum in the case of RHEL/CentOS). You can interface with the packages directly using rpm, forcing (un)installs, etc., but don't expect the package manager to be aware of or work properly with any changes you make outside of it. Once you venture into that territory, it can be hard to come back.

Even when you want to install a one-off rpm package that isn't available in the repositories, you're still you're better off having yum install the rpm for you to handle conflicts and dependency resolution.

Last edited by suicidaleggroll; 03-08-2016 at 04:03 PM.
 
1 members found this post helpful.
Old 03-08-2016, 04:13 PM   #5
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 487

Original Poster
Rep: Reputation: 29
thanks suicidal,

so you are better off relying on yum most of the time to install,upgrade,remove packages etc etc...was just wondering if there was any advantage to using rpm commands in this case...sorry i didnt make myself clearer
 
Old 03-09-2016, 05:24 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Generally stick with yum as above.
However there are occasions to use rpm eg if you want to add the EPEL repo to your system, you'd use rpm to install the repo definition https://fedoraproject.org/wiki/EPEL/..._repository.3F
 
Old 03-09-2016, 09:29 AM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,624

Rep: Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578Reputation: 1578
Quote:
Originally Posted by chrism01 View Post
Generally stick with yum as above.
However there are occasions to use rpm eg if you want to add the EPEL repo to your system, you'd use rpm to install the repo definition https://fedoraproject.org/wiki/EPEL/..._repository.3F
You can, and should, do that with yum, e.g.:
Code:
yum install http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
 
Old 03-09-2016, 08:42 PM   #8
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Centos7 is even easier, use the distributed package to install epel
Code:
yum install epel-release
 
  


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
How to save a rpm downloaded & installed by "yum install xxx.rpm" command shashi1234567 Linux - Networking 3 12-25-2009 11:49 AM
How to install .rpm without yum and rpm xeonx Linux - General 3 05-27-2009 01:05 PM
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 09:08 AM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 05:55 PM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 04:03 PM

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

All times are GMT -5. The time now is 10:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration