Last active 1735293001

Revision 2eccaaa3912f8f31ebfc0892c2a6a77629cbbe9d

compare.sh Raw
1#!/usr/bin/env bash
2#
3# compare_packages.sh
4#
5# Compare package lists from two systems:
6# anduinos-packages.txt
7# ubuntu-24-packages.txt
8
9# Ensure both files exist
10if [[ ! -f "anduinos-packages.txt" || ! -f "ubuntu-24-packages.txt" ]]; then
11 echo "Error: One or both package list files are missing."
12 echo "Please make sure anduinos-packages.txt and ubuntu-24-packages.txt are present."
13 exit 1
14fi
15
16echo "===== Packages installed on anduinos but NOT on ubuntu ====="
17comm -23 <(sort anduinos-packages.txt) <(sort ubuntu-24-packages.txt)
18
19echo
20echo "===== Packages installed on ubuntu but NOT on anduinos ====="
21comm -13 <(sort anduinos-packages.txt) <(sort ubuntu-24-packages.txt)
22
23echo
24echo "Comparison done."
25
export.sh Raw
1dpkg-query -f '${binary:Package}\n' -W > anduinos-packages.txt
2dpkg-query -f '${binary:Package}\n' -W > ubuntu-24-packages.txt