debian-user  

Re: dpkg: extract specific file?

Joey Hess
13 Jan 2000 02:56:29 -0000

Patrick Walsh wrote:
> Can dpkg be used to extract a specific file from a .deb?
> 
> None of the switches listed in the man or --help leaps out as a 
> candidate for this function.

dpkg-deb --fsys-tarfile file.deb | tar xvf - file

Note that "file" may need to be "./path/to/file" -- note the leading dot --
depending on what version of tar was used to generate the .deb file.

-- 
see shy jo