[vox-tech] extract contents of deb package

Troy Arnold troy-vox at zenux.net
Sat Aug 23 20:21:57 PDT 2008


On Sat, Aug 23, 2008 at 07:28:10PM -0700, Brian Lavender wrote:
> How do I extract the contents of a deb package? I tried 
> 
> dpkg-deb -x . ossim-server_0.9.9-3_i386.deb
> dpkg-deb: error reading version number from file .: Is a directory
> 
> Seems like this is what it ought to be from the man page, but it doesn't
> work.

The man page has:
-x|--extract <deb> <directory>

So to extract to the current directory:
$ dpkg-deb -x ossim-server_0.9.9-3_i386.deb .

However, if you want the control files too, unarchive the deb with
/usr/bin/ar 
$ ar x ossim-server_0.9.9-3_i386.deb


-t


More information about the vox-tech mailing list