Skip to content

Instantly share code, notes, and snippets.

@dlamblin
Created October 26, 2017 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlamblin/3b5ccd5225031eeddbc8dc7add7aaf79 to your computer and use it in GitHub Desktop.
Save dlamblin/3b5ccd5225031eeddbc8dc7add7aaf79 to your computer and use it in GitHub Desktop.
Extract a deb's files on Mac OS with tar
tar -xOf $1 data.tar.xz |tar -tv
tar -xOzf $1 data.tar.xz |tar -x
@dlamblin
Copy link
Author

dlamblin commented Oct 26, 2017

Other contents are:
debian-binary and control.tar.gz
the first contains a version like 2.0, the second, the following files:
control, metadata lines Package, Version, Architecture, Mainainer, Installed-Size, Recommends, Section, Priority, Multi-Arch, Description
md5sums, some of the files' md5 sums 7b7b7d773a5c4d0add7e9dfcd728e97c usr/bin/run-mailcap
triggers, list of some directories or something interest-noawait /usr/share/applications
conffiles, a list of files that are configuration files
prerm, a pre removal script
postinst, a post installation script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment