LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-17-2010, 02:15 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 447

Rep: Reputation: 30
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 ?
 
Old 01-17-2010, 02:48 AM   #2
AleLinuxBSD
Member
 
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 272

Rep: Reputation: 37
Quick Guide to Red Hat's Package Manager (RPM)

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

or

google
libGeoIP.so.1 redhat
 
Old 01-17-2010, 03:49 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 01-17-2010, 04:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

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

Last edited by knudfl; 01-17-2010 at 04:49 AM.
 
Old 01-17-2010, 06:33 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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
 
  


Reply

Tags
epel, ntop


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
problem - how to find package if you only know specific command? markomarko Linux - Newbie 3 08-05-2009 03:21 PM
How to find package name for desired program or command? ozegoods Linux - Software 1 04-17-2007 03:16 PM
Any aptitude command to find out what packages belong to a virtual package? Akhran Debian 9 11-05-2005 10:40 PM
Command to find out which package contains which file ? javeree Slackware 6 07-10-2004 07:35 PM
How do I find out what package a given command comes from? WeNdeL Linux - Newbie 2 05-19-2003 10:11 AM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
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