Last active
November 10, 2019 16:16
-
-
Save malyzeli/417dc5fcf9d2a5c0221be8bf9c4bdd5e to your computer and use it in GitHub Desktop.
List explicitly installed packages on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Filters packages installed by system using logs from `/var/log/installer/initial-status.gz` | |
| # source: https://unix.stackexchange.com/a/80520 | |
| comm -13 \ | |
| <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort) \ | |
| <(comm -23 \ | |
| <(dpkg-query -W -f='${Package}\n' | sed 1d | sort) \ | |
| <(apt-mark showauto | sort) \ | |
| ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment