Monday, March 5, 2012

list packages



for p in `dpkg -l |grep ^ii | tr -s " " | cut -d " " -f 2` ; do echo $p ; apt-cache show $p | grep ^Section: ; echo ; done > pckglist.txt

Listing all installed packages and sorting them by their installed size:

dpkg-query -W --showformat='${Installed-Size}\t${Package}\t${Status}\n' | grep "ok installed" | sort -gr > pckglist.txt

No comments:

Post a Comment

Search This Blog