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

[Solved] Re: Extract one file from .deb?



On Thu, Apr 17, 2003 at 12:29:04PM +0100, Colin Watson wrote:
> 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.

It works very well. Thanks a lot. You are really expert.

Cheers,

Qian



Reply to: