[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg: extract specific file?



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


Reply to: