LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CLI command to unpack a DEB file? (https://www.linuxquestions.org/questions/linux-newbie-8/cli-command-to-unpack-a-deb-file-926207/)

Xeratul 01-28-2012 01:08 PM

CLI command to unpack a DEB file?
 
Hi, I would like to using the bash for a script that can unpack all the files from the DEB (debian) to the /tmp, by using Command line.
if possible...

Thanks

kabamaru 01-28-2012 01:16 PM

Code:

ar x <debfile>
to extract a tar file inside the deb (like data.tar.gz):

Code:

ar p <debfile> data.tar.gz | tar xvfz

knudfl 01-28-2012 01:27 PM

Unpacking with 'dpkg' to /tmp/ :


dpkg -x <package.deb> /tmp


All times are GMT -5. The time now is 04:06 AM.