-   Linux - Newbie (
-   -   difference betwenn yum and rpm -i (

Balakrishna 12-25-2006 08:52 AM

difference betwenn yum and rpm -i

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 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 there any way to getrid of these dependency problems and complete the installation smoothly.


pixellany 12-25-2006 10:21 AM

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.

custangro 12-26-2006 01:16 AM

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.

All times are GMT -5. The time now is 09:51 PM.