Skip to content

Instantly share code, notes, and snippets.

@alecs
Created February 7, 2020 12:37
Show Gist options
  • Save alecs/897b53b19880ec43f2a8bc6b8e8a0fb2 to your computer and use it in GitHub Desktop.
Save alecs/897b53b19880ec43f2a8bc6b8e8a0fb2 to your computer and use it in GitHub Desktop.
dpkg --get-selections for alpine
apk list -I -v | awk 'BEGIN {i=0}; { word=substr($3,2,index($3,"}")-2); if (word != "") { packs[i]=word; let i++ } }; END { for (id in packs) { printf packs[id]" " } }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment