Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a .deb file that I want to unpack and examine, but not install. I'm currently looking for where i can download dpkg for OSX, but can't find it. If you have a link, please share.

share|improve this question
@Am1rr3zA - Thanks for adding the tags. I need +7 more reputation before I'm able to lol. – Thomas Aug 30 '10 at 19:19
up vote 28 down vote accepted

ar is already installed on my mac on OS X. So just do

ar -x path/to/deb/file.deb

that's it. No need to install other software.

share|improve this answer
+1 it's a nice command. – Am1rr3zA Aug 30 '10 at 20:27
thanks! good to know – Thomas Aug 31 '10 at 17:00
Users of XCode 4 can run /Applications/ – zpletan Apr 2 '13 at 18:19
@zpletan Why not /usr/bin/ar ? – topskip Apr 2 '13 at 20:46
ar comes from XCode (unless you installed it with MacPorts/Homebrew/etc), but XCode 4 comes from the App Store and therefore doesn't install anything in /usr/bin by default. I think you can change it from preferences, but that's the default. – zpletan Apr 3 '13 at 15:58

You can install dpkg using MacPorts or just download the sources.

share|improve this answer
Thanks for the reply. This is actually the method I used. – Thomas Aug 30 '10 at 20:09

if you use Darwin Port (now name it Mac Port) you can install dpkg and more package (like do it in debian or ubuntu).

after install Darwin Port go and install dpkg from here.

also you can find more info about dpkg in osx here.

share|improve this answer
+1 for the reply. I couldn't get DarwinPort download page to load so I just used MacPorts. Thanks! – Thomas Aug 30 '10 at 20:10
@Thomas, MacPorts, formerly called DarwinPorts – Am1rr3zA Aug 30 '10 at 20:16
4 is a rip off of used to be at - see – Chealion Aug 31 '10 at 2:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.