Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 '13 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 '13 at 12:56
up vote 2 down vote accepted

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}'
share|improve this answer

You mean something like this?

LANG=C aptitude show gnome-terminal|grep ^Provides
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.