What is alternative to -dpkg for Mac?

Ali picture Ali · Jan 8, 2012 · Viewed 32.2k times · Source

I'm trying to use dpkg command but in Mac OS X it doesn't seem to work for me

dpkg -scanpackages -m . /dev/null -->Packages

-bash: dpkg: command not found
dns:Administrator$ man dpkg
No manual entry for dpkg

I wonder how can I use the dpkg in Mac??

Answer

simulacre picture simulacre · Jan 20, 2012

Or homebrew http://mxcl.github.com/homebrew/ brew install dpkg

The macports version has a lot of dependencies and takes forever.

If all you want to do is see what is in the package then unar and untar it.

ar -x package.deb

You should then have a debian-version, control.tar.gz and data.tar.gz in your current directory. The files the package would add will be in data.tar.gz. The package description will be in a file named control inside the control.tar.gz file.

tar -tvzf data.tar.gz