How can I generate a list of packages that the specific package provides using the apt-family?

  • I don't really get your question. Do you want the list of files from a package, a list of dependencies or a list of packages depending on this package?
    – Spack
    May 5, 2013 at 9:30
  • Can you please try and clean up your question? It's unclear to everyone here exactly what you're trying to do. Are you trying to get a list of executables and/or programs that are included in a given package?
    – slm
    May 5, 2013 at 12:56

2 Answers 2


Use apt-cache show to display information about available packages, or dpkg -s to display information about installed packages.

apt-cache show PACKAGE-NAME | awk '$1 == "Provides:" {print $2}'
dpkg -s INSTALLED-PACKAGE-NAME | awk '$1 == "Provides:" {print $2}'

You mean something like this?

LANG=C aptitude show gnome-terminal|grep ^Provides

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .