LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-05-2012, 12:55 AM   #1
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Rep: Reputation: Disabled
Angry About rpm n yum


Hi everyone,
As far my knowledge rpm n yum both are used for package management ....but when im using rpm command in RHEL 5 for a particular package is showing the error message..."open of files failed: no such file r directory "....

So my doubt is when I should use rpm n yum....can anyone clearly explain it............
 
Old 04-05-2012, 01:09 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Without knowing what commands you actually used it is hard to troubleshoot your problem. Both yum and rpm should be able to install packages.

In general:

Yum is build upon rpm. It is more intelligent (takes care of dependencies etc).

If at all possible use yum instead of rpm. This from the docs:
Quote:
For most package management tasks, the Yum package manager offers equal and often greater capabilities and utility than RPM. Yum also performs and tracks complicated system dependency resolution, and will complain and force system integrity checks if you use RPM as well to install and remove packages. For these reasons, it is highly recommended that you use Yum instead of RPM whenever possible to perform package management tasks.
Here are 2 links to the appropriate rpm/yum chapters:
- RPM (RedHat)
- Yum (RedHat)

Hope this helps.
 
Old 04-05-2012, 03:05 AM   #3
sujithspillai90
Member
 
Registered: Jun 2011
Location: India
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by ravi_nandula View Post
Hi everyone,
As far my knowledge rpm n yum both are used for package management ....but when im using rpm command in RHEL 5 for a particular package is showing the error message..."open of files failed: no such file r directory "....

So my doubt is when I should use rpm n yum....can anyone clearly explain it............


YUM will install the packages from the repository. If you search the particular package that you want you install,

Syntax: #yum search <package_name>

It will show you the available packages in the repository.

then you can install this package with yum
Syntax #yum install <package name>

And for rpm, First you try whether the package is there in your system by using
#rpm -qa |grep <package_name>

If not present ..try to download the necessary package from the available sources (depends up on your OS)

then try to install rpm package
#rpm -ivh <package_name>

you can also check #rpm qi <package_name> - will show you the details of installaed packages
and #rpm -ql <package_name> will show you the contents of the package.


YUM - will install automatically with out any dependency....but with rpm..you need to specify if a particular package needs any depedency..

Both are very simple and very helpful to install the packages......

Hope this helps................
 
  


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

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

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