Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

It's possible to view the Package-List of a debian/ubuntu package, using the package management tools like apt, aptitude or dpkg?

I need to list the packages provided by a package, the list is visible in the dsc file:

Example: Section Package-List.

share|improve this question
See . A short answer is that you can not generate a .dsc file from a binary .deb package. A somewhat longer answer is that you can get information out of an installed package with dpkg-query(1) (see accompanied manual page and section for -f, --showformat especially). – Sami Laine Jan 28 '14 at 9:02
up vote 0 down vote accepted

You can use apt-cache showsrc and use awk (or similar tools) to get the output you want:

$ apt-cache showsrc lxc | awk '/Package-List/{a=1;next}/^[^ ]/{a=0}a{print $1}'
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.