LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Does yum install dependencies too? (https://www.linuxquestions.org/questions/linux-software-2/does-yum-install-dependencies-too-748344/)

deostroll 08-18-2009 01:57 AM

Does yum install dependencies too?
 
Have this casual doubt? Tried installing ruby on centos using yum. I got the 1.8.5 as the release version. (This is not the latest release though). It showed only two things to download. I am doubtful if this is right? I did a yum deplist ruby it listed lots of things!!!

colucix 08-18-2009 02:01 AM

Maybe you had most of the dependencies already installed. Yum should manage them automagically.

timvandijk039 08-18-2009 02:01 AM

Did you check if the dependencies weren't already installed on your system?
(rpm -q <packagename>, or rpm -qva | grep <packagename>)

De deplist option shows all dependencies but doesn't check if the're installed. The latter proces is done during the actual installation.

deostroll 08-18-2009 02:02 AM

apt-get in ubuntu was much better :(

deostroll 08-18-2009 02:06 AM

@timvandijk039: This is wht I did in my console just now:

Code:

[root@chat ~]# rpm -q ruby
ruby-1.8.5-5.el5_3.7
[root@chat ~]# rpm -qva | grep ruby
ruby-irb-1.8.5-5.el5_3.7
ruby-libs-1.8.5-5.el5_3.7
ruby-1.8.5-5.el5_3.7
[root@chat ~]#


timvandijk039 08-18-2009 02:25 AM

That good, but what I ment was to check for the packages that ruby depends on. For example:
Code:

rpm -qva | grep ruby-libs
The Ruby package depends on various other packages. One of them for example is glibc. The glibc package can be found on many systems by default so you won't be bothered with that information. But it still is a dependency for the Ruby package.

Hope this helps.


All times are GMT -5. The time now is 07:12 AM.