Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'd like to output a list of all, currently not installed, packages (they are visible in Synaptic for example) using only shell commands.
How do I do this?

share|improve this question

3 Answers 3

up vote 6 down vote accepted
aptitude search '!~i'

See the Search Term Reference in the aptitude user's manual for details.

share|improve this answer

From the question's tags, I assume a Debian system.

In Bash: aptitude search '!~i'. The list is very long (more than 30k lines).

It can be interesting to suppress virtual packages also: aptitude search '!~i !~v'

share|improve this answer

Type the command as follows:

# rpm -qa > list.txt

with this command you can check your installed RPM list after that you can easly to find which RPM is not installed.

share|improve this answer
thanks, but I asked for a debian system... –  user4133 Jan 24 '11 at 19:33

Your Answer


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