What is alternative to -dpkg for Mac?

▼魔方 西西 提交于 2019-12-10 12:59:39

问题


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


回答1:


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




回答2:


You will first have to install dpkg. In my opinion the easiest way to do this is to first install macports which is a high level packet manager for os x and then use macports to install dpkg.

Installing macports: http://www.macports.org/install.php

Once installed you can run sudo port install dpkg. Then you can use dpkg on the command line.




回答3:


"dpkg" utility can be provided by Fink.



来源:https://stackoverflow.com/questions/8779597/what-is-alternative-to-dpkg-for-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!