From 3c3a103b50a6d8d358518d45cc82478e76d34935 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 22 Dec 2016 05:21:04 +0300 Subject: add list_manually_installed_packages_ubuntu --- %HOME%/.bashrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '%HOME%') diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index 80012b5..33fe277 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -62,6 +62,13 @@ alias tree='tree -a' alias cls='echo -en "\ec"' +list_manually_installed_packages_ubuntu() ( + set -o errexit -o nounset -o pipefail + + comm -23 <( apt-mark showmanual | sort | uniq ) \ + <( gzip --decompress --stdout -- /var/log/installer/initial-status.gz | sed --quiet 's/^Package: //p' | sort | uniq ) +) + list_packages_cygwin() ( set -o errexit -o nounset -o pipefail -- cgit v1.2.3