Search code examples
macoscommanddpkg

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


Solution

  • 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