LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need a command to find the package name against dependencies ! (https://www.linuxquestions.org/questions/linux-newbie-8/need-a-command-to-find-the-package-name-against-dependencies-782717/)

shipon_97 01-17-2010 01:15 AM

Need a command to find the package name against dependencies !
 
Dear Friends ,

While installing ntop in RHEL-5.0 , I got the below error :

[root@localhost test]# rpm -ivh ntop-3.3.9-7.el5.i386.rpm --aid --force
warning: ntop-3.3.9-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
error: Failed dependencies:
graphviz is needed by ntop-3.3.9-7.el5.i386
libGeoIP.so.1 is needed by ntop-3.3.9-7.el5.i386
librrd_th.so.2 is needed by ntop-3.3.9-7.el5.i386

In this moment I cannot find the PACKAGE name of the above DEPENDENCIES . Is there any way to find out the packages name against this dependencies ?

AleLinuxBSD 01-17-2010 01:48 AM

Quick Guide to Red Hat's Package Manager (RPM)

sudo rpm -qf [full_path]/libGeoIP.so.1

or

google
libGeoIP.so.1 redhat

colucix 01-17-2010 02:49 AM

Running on RHEL 5, most likely you have yum installed. If this is the case just try
Code:

# yum deplist ntop
Moreover, yum should take care of dependencies automatically, if the required repositories are properly configured. For any problem you can always try to look for packages through your Red Hat Network account.

knudfl 01-17-2010 03:12 AM

The command to get a package name, when a file is known :

# yum provides */libGeoIP.so.1
( The package name is : GeoIP ).
.....

# yum deplist ntop
gdbm chkconfig libpcap openssl rrdtool
perl GeoIP pcre zlib tcp_wrappers
.....

# yum list all
.. shows this :
ntop.i386 .. 3.3.9-7.el5 .. epel

epel = Extra Packages EL
https://fedoraproject.org/wiki/EPEL

> > # yum install ntop
.....

chrism01 01-17-2010 05:33 PM

Highly recommend using yum to take care of dependencies during installs etc. Using rpm directly will be a nightmare.
http://kbase.redhat.com/faq/docs/DOC-2531


All times are GMT -5. The time now is 04:21 AM.