24

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.

  • @Am1rr3zA - Thanks for adding the tags. I need +7 more reputation before I'm able to lol. – Thomas Aug 30 '10 at 19:19
49

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.

  • 1
    Users of XCode 4 can run /Applications/Xcode.app/Contents/Developer/usr/bin/ar. – zpletan Apr 2 '13 at 18:19
  • @zpletan Why not /usr/bin/ar ? – topskip Apr 2 '13 at 20:46
  • 1
    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
  • @zpletan I've never installed anything in /usr/bin, so ar must be from the default installation. (Unless I am totally mistaken.) – topskip Apr 3 '13 at 20:09
  • 1
    This doesn’t generally work. I’ve got a .deb file that unpacks beautifully with dpkg but ar fails because it thinks the package contains a different set of folders, with different names, than it actually contains. – Konrad Rudolph Oct 12 '17 at 10:58
4

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

  • 1
    Thanks for the reply. This is actually the method I used. – Thomas Aug 30 '10 at 20:09
1

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.

  • +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
    DarwinPorts.com is a rip off of MacPorts.org. MacPorts.org used to be at DarwinPorts.org - see trac.macports.org/wiki/DarwinPortsFraud – Chealion Aug 31 '10 at 2:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .