LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-06-2012, 06:40 AM   #1
leniviy
Member
 
Registered: Jul 2009
Distribution: Archlinux
Posts: 37

Rep: Reputation: 2
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?
 
Old 09-06-2012, 06:24 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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
 
Old 09-06-2012, 06:34 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,916

Rep: Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715
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
 
Old 09-07-2012, 01:56 AM   #4
leniviy
Member
 
Registered: Jul 2009
Distribution: Archlinux
Posts: 37

Original Poster
Rep: Reputation: 2
That machine doesn't have internet
 
Old 09-07-2012, 03:31 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed packages dependency logging - dep Nick_C Linux - Newbie 1 02-24-2012 12:03 AM
No List of Package Database Installed in /var/log/packages - Slackware 13.37 Jimjax Slackware 21 12-31-2011 04:49 AM
Can rpm packages be over installed? maitrey Red Hat 7 06-10-2009 12:11 AM
What happens to the installed RPM packages? halturata Linux - Newbie 5 03-31-2006 01:28 PM
RedHat installed packages database atlesn Linux - Software 2 02-27-2004 01:41 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration