Last active
December 12, 2016 15:48
-
-
Save hxmuller/692ae5e27fbdba94b984656b630f8f61 to your computer and use it in GitHub Desktop.
list Raspbian manually installed packages
This file contains 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 > filename | |
# NOTE: history.log does not capture the entire list of | |
# manually installed packages. To get the full list, | |
# use the command above. The below is retained for | |
# history. | |
# | |
## sed - stream editor for filtering and transforming text | |
## -n suppress automatic printing of pattern space | |
## awk - pattern ascanning and text processing language | |
# | |
#sed -n '/Commandline:/s/^.*-y //p' /var/log/apt/history.log | \ | |
# awk '{for (i=1;i<=NF;i++) print $i}' | \ | |
# awk '!arr[$0]++' > filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment