Re: Extract one file from .deb?
On Thu, Apr 17, 2003 at 01:03:24PM +0200, Qian Gong wrote:
> Is it possible to extract only one specified file from a deb package? I
> changed one configuration file and want to compare it with the original
> one.
It's awkward, but yes:
dpkg --fsys-tarfile foo.deb | tar xOf - ./path/to/file
That will print the specified file on standard output; redirect to a
file if you want. Remember the . in front of the file you're looking
for.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: