Skip to main content
9 events
when toggle format what by license comment
Apr 13, 2017 at 12:36 history edited CommunityBot
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Sep 20, 2015 at 23:18 comment added terdon @ceremcem I don't really know the details either, but I've had confusing results with dpkg --get-selections as well. Presumably, I need to read the man page more carefully. As a workaround, I use dpkg -l | grep ^ii which should list only installed packages.
Sep 20, 2015 at 18:27 comment added ceremcem Pardon me for fabricating something like a non-understandable joke, I used dpkg_installed in place of dpkg --get-selections | awk '$NF=="install"{print $1}'. By the way, I run couple of tests and it seems that there something wrong with my current installation, since I can not find some of my installed applications in dpkg --get-selections list. I'm toggling my downvote till I run these commands on some other installations.
Sep 20, 2015 at 13:23 comment added terdon @ceremcem what's dpkg_installed? Where can I get it, it sounds useful and I'd like to check this on my machine. I can tell you that here, dpkg --get-selections | awk '$NF=="install"{print $1}' and the perl one-liner return the same list. In any case, there's no point in comparing it to dpkg --get-selections since that prints various things you don't want.
Sep 20, 2015 at 12:48 comment added ceremcem The dpkg_installed command returns 193 less packages than dpkg --get-selections commad. your one-liner has 1204 additional, 1473 missing packages when compared to dpkg --get-selections command and 1204 additional, 1280 missing packages when compared to dpkg_installed command.
Sep 20, 2015 at 12:39 history edited terdon CC BY-SA 3.0
added 21 characters in body
Sep 20, 2015 at 12:39 comment added terdon @ceremcem yes, as I said in my answer, that's because dpkg --get-selections doesn't list only installed packages. It will also show uninstalled ones. Compare the output of my one-liner to that of dpkg --get-selections | awk '$NF=="install"{print $1}' instead. Alternatively, just run dpkg --get-selections | grep deinstall to see the various packages you don't want listed.
Sep 20, 2015 at 12:36 comment added ceremcem downvote, because it gives different set of packages on my running system. I have 4113 packages according to dpkg --get-selections, 3925 packages according to your one-liner and 1473 packages missing in your one-liner.
Sep 19, 2015 at 18:04 history answered terdon CC BY-SA 3.0