-   Linux - Newbie (
-   -   installed rpm packages database: explicit and dependency packages (

leniviy 09-06-2012 07:40 AM

installed rpm packages database: explicit and dependency packages
Hi. In rpm systems like Redhat, are explicitly installed packages and dependency packages marked differently?


# yum install *.rpm
 Package                      Repository                         
 git                          /git-       
 perl-Error                  /perl-Error-0.17017-1.el5.rf.noarch 
 perl-Git                    /perl-Git- 
 perl-YAML                    /perl-YAML-0.72-1.el5.rf.noarch     
Installing for dependencies:
 apr                          Server                             
 apr-util                    Server                             
 neon                        Server                             
 perl-DBI                    Server                             
 perl-URI                    Server                             
 postgresql-libs              Server                             
 subversion                  Server                             
 subversion-perl              Server

If later I decide to uninstall git, will there be an easy way to uninstall all it's dependencies?

chrism01 09-06-2012 07:24 PM

They're not marked differently; that's just the yum tool showing you
a) what you asked for
b) what extras it will need to fulfil your request

Re removal; you can try

yum remove git
but check what it says before answering yes.

Unfortunately, the removal dependency calculation sometimes gets a bit carried away and wants to remove even distantly related stuff. You may have to use 'rpm -e git' instead.
Best to have a good read up of those tools

John VV 09-06-2012 07:34 PM

and on RHEL5 / CentOS5 /ScientificLinux 5 ( el5)
be VERY careful with "rpmforge" !!! the (el5.rf) rf part

"rpmforge" is KNOWN to be incompatible with upstream Red Hat !!!
-- not a warning but a MUST DO!!! --

install and CONFIGURE "yum-priorities " plugin!!!!
-- this is a MUST DO ,or you can and WILL FUBAR ( look it up) the RHEL 5 install

RHEL6 is better but 5 is a MESS when it comes to the third party repos
heed all the warnings!!!

also you might NOT want to do this

yum install *.rpm
----- as in ----
yum install git-
-- that is a bad idea ---
-- this is better ---
yum install git

leniviy 09-07-2012 02:56 AM

That machine doesn't have internet

chrism01 09-07-2012 04:31 AM


That machine doesn't have internet

JohnVV is correct, the rf repos do have issues with the RHEL installed pkgs.
At the very least, put that priority plugin in, although you should be able to get most if not all you want from the RH repos.

If you can't connect it to the net, use this to create a local repo from the install media.

All times are GMT -5. The time now is 12:52 PM.