什么是替代-dpkg的Mac? [英] What is alternative to -dpkg for Mac?
问题描述
我尝试使用dpkg命令,但在Mac OS X中它似乎不适合我。
dpkg -scanpackages -m。 / dev / null - >包
-bash:dpkg:未找到命令
dns:Administrator $ man dpkg
dpkg无手动输入
我不知道如何在Mac中使用dpkg
解决方案或自制程序 http://mxcl.github.com/homebrew/
brew install dpkg
macports版本有很多依赖关系,需要永久。
如果所有你想做的是看看包中是什么,然后unar和untar。
ar -x package.deb
你应该在当前版本中有一个debian版本,control.tar.gz和data.tar.gz目录。包将添加的文件将在data.tar.gz中。软件包描述将在control.tar.gz文件中的一个名为control的文件中。
tar -tvzf data.tar.gz
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??
解决方案 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
这篇关于什么是替代-dpkg的Mac?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!