Tino Sino writes: > It has been asked before, but with different answers, e.g.: > 1) dpkg-query --list | awk '/^ii +/ { print $2; }' > 2) dpkg --get-selections | cut -f 1 > 3) ... etc ... > Given that the output is the same: > $ diff \ > <(dpkg --get-selections | cut -f 1) \ > <(dpkg-query --list | awk '/^ii +/ { print $2; }') \ > && echo same-output > same-output > I wonder, what's the golden way to do this and why?
What's "wrong" in dpkg -l | grep ii (you could use grep -e '^ii') or egrep '^ii', but I think it's not worth the cpu used). -- /\ ___ Ubuntu: ancient /___/\_|_|\_|__|___Gian Uberto Lauri_____ African word //--\| | \| | Integralista GNUslamico meaning "I can \/ coltivatore diretto di software not install giĆ sistemista a tempo (altrui) perso... Debian" Warning: gnome-config-daemon considered more dangerous than GOTO -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/21235.35406.928239.298...@mail.eng.it