LinuxQuestions.org
Register a domain and help support LQ
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 12-25-2006, 08:52 AM   #1
Balakrishna
LQ Newbie
 
Registered: Dec 2005
Location: Hyderabad
Posts: 17

Rep: Reputation: 0
difference betwenn yum and rpm -i


Hi,

one of my friend told me to use "yum" or "rpm -i" command to install a .rpm pacage. what is the difference between the two. I tried the both.

When running yum install <XXXX>.rpm, it is giving some verbose information like connecting to internet and seems to download some packages which it didn't find in my system for satisfying the dependencies. but later on it showed there some dependencies are missing.so my assumption is wrong.

please explain me what exactly yum is doing in the process.


secondly, rpm -i is silently processed all the job and at the end said some dependencies are not met.

i have a lot of trouble with meeting these dependencies.is there any way to getrid of these dependency problems and complete the installation smoothly.

Bye....
 
Old 12-25-2006, 10:21 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Yum is for updating using the repositories. It check dependencies.
rpm is simply for installing one or more .rpm packages. It assumes that all dependencies are taken care of.

There is no easy cure for dependencies, other than alwasy using SW that is in your repositories. Otherwise, you simply have to find the missing packages and install them.
 
Old 12-26-2006, 01:16 AM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
You should try rpm -Uvh packagename.rpm This looks if there is a current version installed...if there is it updates it. If it dosent it installs the package. Lastly it prints verbose information about the installation. Also it prints out Hash marks so that you can see the progress.

Last edited by custangro; 12-26-2006 at 01:17 AM.
 
  


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
What is the difference between UP2DATE and YUM? tuxuser19 Red Hat 3 10-07-2006 06:56 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
what is difference between srpm and rpm?? jinxp7 Linux - Newbie 2 09-06-2004 10:17 PM
Difference between apt and yum for Fedora Core 1 atlantanewbie Fedora 5 05-13-2004 07:22 PM


All times are GMT -5. The time now is 02:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration