Hi,
i usually use
to get the list of packages installed on Debian.
http://www.linuxquestions.org/questi...ckages-894808/
as per the the above thread
Code:
$dpkg --get-selections
does the same.
however on my machine, the number of packages is different for both these commands.
Code:
user@user:~$ dpkg --get-selections|wc -l
1683
user@user:~$ dpkg -l|wc -l
1688
The man page for dpkg states that the -l option:
Code:
-l, --list package-name-pattern...
List packages matching given pattern.
so i guess giving it no pattern to match makes it list out all packages.
the man entry for --get-selections is similar
Code:
--get-selections [package-name-pattern...]
Get list of package selections, and write it to stdout. Without a pattern, non-installed packages (i.e. those which have been previously purged) will not be shown.
so why the difference?
doesk dpkg -l list packages which were previously purged?