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

Re: extract only PART of an archive



Will Lowe writes:
>
>I need to extract JUST ONE of the files in a .deb ....
>
>I've searched through the dpkg info and man pages and haven't found any
>way to do this (I might be blind, though).  Is there anyway to do it with
>out doing
>
>dpkg -R /tmp/ file.deb
>
>and then moving the one file and clearing /tmp?
>
>                     					Will

The only way I know is to use ar to pull the data.tar.gz from the .deb
and then untar the file from that.

ar -x <file>.deb  data.tar.gz
tar zxvf data.tar.gz <ONE-FILE>
rm data.tar.gz

There may be others?

Brian 
-- 
Mechanical Engineering				    servis@purdue.edu
Purdue University		    http://www.ecn.purdue.edu/~servis


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: