LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference betwenn yum and rpm -i (https://www.linuxquestions.org/questions/linux-newbie-8/difference-betwenn-yum-and-rpm-i-513554/)

Balakrishna 12-25-2006 08:52 AM

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....

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.