Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is alternative to -dpkg for Mac?

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??

like image 609
Ali Avatar asked Jan 08 '12 17:01

Ali


1 Answers

Or homebrew Link 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

like image 109
simulacre Avatar answered Oct 11 '22 12:10

simulacre