Skip to content

Instantly share code, notes, and snippets.

@kjoconnor
Created March 20, 2012 23:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjoconnor/2142267 to your computer and use it in GitHub Desktop.
Save kjoconnor/2142267 to your computer and use it in GitHub Desktop.
Create md5sums file for Debian packages
# Assuming you're in the 'debian' directory and the directories (var, usr, etc.) are contained within
find -type f | egrep -v '^\./DEBIAN' | xargs --replace=hh -n1 md5sum "hh" | sed 's/\ \.\///' > DEBIAN/md5sums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment