Last active
February 26, 2020 19:13
-
-
Save Nicholas-Baron/e3cb2b810ea3830827e05df3298afee2 to your computer and use it in GitHub Desktop.
A script to generate two lists of packages
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
| #!/bin/sh | |
| auto_count=$(apt-mark showauto | sort -u | tee auto.txt | wc -l) | |
| manual_count=$(apt-mark showmanual | sort -u | tee manual.txt | wc -l) | |
| total_count=$(cat auto.txt manual.txt | sort -u tee all.txt | wc -l) | |
| printf "\t%d manually installed and %d automatically installed\n\t%d in total\n" "$manual_count" "$auto_count" "$total_count" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment