On Sun, 22 Feb 2004, James Olin Oden wrote: > On Sun, 22 Feb 2004, Keith G. Robertson-Turner wrote: > > > On Sat, 21 Feb 2004 19:42:04 -0500, Steve Feehan wrote: > > > > > On Sat, Feb 21, 2004 at 07:38:14PM -0500, Sergei Mikhailov wrote: > > > > >> Is there an rpm command that would list all packages that depend on a > > >> given package? For example, mod_ssl is one of the packages that > > >> requires that httpd is installed. Say, I want all packages that require > > >> httpd. > > > > > rpm --whatrequires httpd > > > > Hmm, different version of RPM? > > Mine needs "--redhatrequires" (4.2.1-0.30 FC1) > > > Actually, --redhatrequires does the query against the distro rpmdb that > contains headers of all rpms that could be installed by the distribution > whereas --whatrequires is going against your systems rpmdb (unless of > course you specify --dbpath). So if you question was: > > What rpms on my system require X? > > Then --whatrequires is the answer. If your question is: However that only catches packages which have explicit "Requires: <foo>" in them, the reality tends to be something completely different. For example: [root@cs65229 root]# rpm -q --whatrequires openldap openldap-clients-2.0.27-11 [root@cs65229 root]# ...but if you dig out all the things openldap provides and what packages require those: [root@cs65229 root]# rpm -q --whatrequires `rpm -q --provides openldap`|grep -v "no package"|sort -u autofs-3.1.7-41 evolution-1.4.5-1 gnupg-1.2.1-4 kdebase-3.1.3-5.2 kdelibs-3.1.3-6.2 libuser-0.51.7-1 nss_ldap-207-2 openldap-2.0.27-11 openldap-clients-2.0.27-11 pine-4.58-1.9.0asp samba-3.0.0-14.3E1 samba-client-3.0.0-14.3E1 samba-common-3.0.0-14.3E1 sendmail-8.12.10-1 [root@cs65229 root]# ...it's, erm, a bit different :-/ - Panu - _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list