LinuxQuestions.org
Review your favorite Linux distribution.
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, 01:08 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,171

Rep: Reputation: 189Reputation: 189
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, 01: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 01:21 PM.
 
Old 01-28-2012, 01:27 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,635

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
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 08:48 AM
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 10:02 AM
Could we bypass Mock command to unpack the source rpm file? just.srad Linux - General 2 05-03-2009 09:48 AM
CLI Unpack and Install Help! GNewbie MEPIS 12 03-20-2007 09:59 PM
plz unpack this deb package NeoMagic Debian 3 10-06-2006 08:41 AM


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

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