LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installed rpm packages database: explicit and dependency packages (https://www.linuxquestions.org/questions/linux-newbie-8/installed-rpm-packages-database-explicit-and-dependency-packages-4175425937/)

leniviy 09-06-2012 06: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?

Code:

# yum install *.rpm
...
===================================================================
 Package                      Repository                         
===================================================================
Installing:
 git                          /git-1.7.11.3-1.el5.rf.x86_64       
 perl-Error                  /perl-Error-0.17017-1.el5.rf.noarch 
 perl-Git                    /perl-Git-1.7.11.3-1.el5.rf.x86_64 
 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 06: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
Code:

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
http://linux.die.net/man/8/yum
http://linux.die.net/man/8/rpm

John VV 09-06-2012 06: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
http://wiki.centos.org/PackageManagement/Yum/Priorities

RHEL6 is better but 5 is a MESS when it comes to the third party repos
http://wiki.centos.org/AdditionalResources/Repositories
heed all the warnings!!!

also you might NOT want to do this
Code:

yum install *.rpm
----- as in ----
yum install git-1.7.11.3-1.el5.rf.x86_64.rpm
-- that is a bad idea ---
-- this is better ---
yum install git


leniviy 09-07-2012 01:56 AM

That machine doesn't have internet

chrism01 09-07-2012 03:31 AM

Quote:

That machine doesn't have internet
So?

JohnVV is correct, the rf repos do have issues with the RHEL installed pkgs.
At the very least, put that priority plugin in http://www.ehowstuff.com/how-to-inst...hel-6centos-6/, 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 https://code.google.com/p/iredmail/w...Yum_Repository to create a local repo from the install media.


All times are GMT -5. The time now is 05:51 AM.