Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
415 B

  1. #!/bin/sh
  2. # Generate a list of used binary names in Debian.
  3. # There is definitely a better way to go about this.
  4. # Make sure we've got apt-file and lz4 compression utils:
  5. sudo apt install apt-file lz4
  6. sudo apt-file update
  7. cd /var/lib/apt/lists || exit 1
  8. lz4cat ./*.lz4 | \
  9. grep -E '^(usr/bin/|sbin/|bin/|usr/games)' | \
  10. cut -f1 -d' ' | \
  11. perl -pe 's/^(.*)\/(.*)$/$2/' | \
  12. sort | uniq > ~/used_names.txt