LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2012, 02:08 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,727

Rep: Reputation: 155Reputation: 155
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
 
Old 01-28-2012, 02:16 PM   #2
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
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

Last edited by kabamaru; 01-28-2012 at 02:21 PM.
 
Old 01-28-2012, 02:27 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Unpacking with 'dpkg' to /tmp/ :


dpkg -x <package.deb> /tmp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unpack multiple deb files with dpkg-deb? steve51184 Linux - Software 2 02-13-2011 09:48 AM
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 11:02 AM
Could we bypass Mock command to unpack the source rpm file? just.srad Linux - General 2 05-03-2009 10:48 AM
CLI Unpack and Install Help! GNewbie MEPIS 12 03-20-2007 10:59 PM
plz unpack this deb package NeoMagic Debian 3 10-06-2006 09:41 AM


All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration