alias lspkgs='cat <(ls -f1 /var/log/dpkg* | grep -v "gz\$") <(cat $(ls -f1 /var/log/dpkg* | grep "gz\$") | gunzip) | sort -t "." -k 3 -n | tac | grep installed | grep -v "half-installed" | grep -v "not-installed" | awk "/installed/{for(i=1;i<=NF;++i)if(\$i~/installed/){print \$(i+1);break}}" | sort | uniq'
No comments:
Post a Comment