aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.bash_utils/os.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/%HOME%/.bash_utils/os.sh b/%HOME%/.bash_utils/os.sh
index 5f4f181..640c693 100644
--- a/%HOME%/.bash_utils/os.sh
+++ b/%HOME%/.bash_utils/os.sh
@@ -43,7 +43,9 @@ list_packages_cygwin() (
list_initial_packages_ubuntu() (
set -o errexit -o nounset -o pipefail
+
local -r initial_status='/var/log/installer/initial-status.gz'
+
gzip --decompress --stdout -- "$initial_status" \
| sed --quiet -- 's/^Package: //p' \
| sort \
@@ -68,12 +70,15 @@ list_packages_ubuntu() (
list_initial_packages_arch() (
set -o errexit -o nounset -o pipefail
+
local -ra groups=(base base-devel)
+
pacman -Q --groups -q -- ${groups[@]+"${groups[@]}"} | sort
)
list_manually_installed_packages_arch() (
set -o errexit -o nounset -o pipefail
+
comm -23 <( pacman -Q --explicit -q | sort ) \
<( list_initial_packages_arch )
)