Skip to content

Instantly share code, notes, and snippets.

@hxmuller
Last active December 12, 2016 15:48
Show Gist options
  • Save hxmuller/692ae5e27fbdba94b984656b630f8f61 to your computer and use it in GitHub Desktop.
Save hxmuller/692ae5e27fbdba94b984656b630f8f61 to your computer and use it in GitHub Desktop.
list Raspbian manually installed packages
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