Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to find a list of all packages with the Priority: field set to Required. These are packages that are normally installed on every system, however I've recently discovered that they aren't necessarily installed for foreign architectures using multiarch. What's the best way to find these packages?

share|improve this question

1 Answer

up vote 4 down vote accepted

With aptitude you can do that type of search.

aptitude search '?priority(required)'

Note that aptitude is no longer installed by default on newer Ubuntu releases, and its man-page is incomplete; you'll find the full documentation as /usr/share/doc/aptitude/README

share|improve this answer
1  
If you need to limit your options to software that is in the default install, I think the only option is the following geekery (or something similar to it): mawk '/^Architecture: / { arch = $2; } /^Package: / { package = $2; } /^Priority: required/ { print package " (" arch ")"; }' < /var/lib/dpkg/status – taneli Mar 9 '12 at 16:55

Your Answer

 
discard

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.