Show list of packages that depend upon 'packagename'

repoquery --whatrequires --installed --recursive packagename
'yum deplist XXX' provides a list of packages that XXX depends on. This command provides a list of packages that depend upon XXX (package reverse dependencies)
Sample Output
> repoquery --whatrequires --installed --recursive unzip
unzip-0:6.0-1.el6.x86_64
virtualmin-base-0:1.0-63.rh.noarch

0
By: eddieb
2012-09-06 18:20:05
yum

These Might Interest You

  • This command lists all packages in a yum based system that no other packages depend on. Hence, these packages are good candidates for removal. It's a great command for cleaning up a yum based distribution after installation. Show Sample Output


    0
    package-cleanup --leaves --all
    drebes · 2009-02-05 13:51:27 0
  • apt-show-versions is a program that shows what packages in the system may be updated and several useful information. The -u option displays a list of upgradeable packages: From: http://www.debian.org/doc/manuals/apt-howto/ch-helpers.en.html Show Sample Output


    -3
    apt-show-versions -u
    cowholio4 · 2009-02-06 17:56:13 0
  • I sometimes want to know what packages are installed on my Ubuntu system. I still haven't figured out how to use aptitude effectively, so this is the next best thing. This allows finding by name. The grep '^ii' limits the display to only installed packages. If this is not specified, then it includes listing of non-installed packages as well. Show Sample Output


    1
    dpkg --list '*linux*' | grep '^ii'
    piyo · 2009-02-13 17:05:37 1
  • Removes the package, 'packagename' in the example ,from your system. '-R' is the actual removal option, 'n' is for removing backup configuration files saved by pacman, and 's' is for removing the dependencies of the given package which are not required by other packages. pacman does not remove configuration files, etc. created by the package.


    0
    sudo pacman -Rns packagename
    ibnarrashid · 2011-03-20 21:07:14 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: