Created
September 13, 2025 15:49
-
-
Save mhadidg/de4dda31c7f4ce473f325a1fabacf214 to your computer and use it in GitHub Desktop.
List only truly manually installed APT packages on Debian/Ubuntu (exclude auto-installed dependencies)
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
| apt-mark showmanual \ | |
| | sort -u \ | |
| | xargs -r -n1 sh -c \ | |
| 'LC_ALL=C aptitude -q=2 why "$0" 2>/dev/null | grep -q "Manually installed" && echo "$0"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment