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, 01:15 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
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, 01:48 AM   #2
AleLinuxBSD
Member
 
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 274

Rep: Reputation: 42
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, 02:49 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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, 03:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 03:49 AM.
 
Old 01-17-2010, 05:33 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434

Rep: Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790Reputation: 2790
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 02:21 PM
How to find package name for desired program or command? ozegoods Linux - Software 1 04-17-2007 02:16 PM
Any aptitude command to find out what packages belong to a virtual package? Akhran Debian 9 11-05-2005 09:40 PM
Command to find out which package contains which file ? javeree Slackware 6 07-10-2004 06:35 PM
How do I find out what package a given command comes from? WeNdeL Linux - Newbie 2 05-19-2003 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 PM.

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
Open Source Consulting | Domain Registration