LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2011, 11:45 AM   #1
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Rep: Reputation: 30
unpack multiple deb files with dpkg-deb?


hi all i have multiple deb files that i want to unpack atm i do this PER deb file:

Code:
dpkg-deb -x file.deb foldername
dpkg-deb -e file.deb foldername/DEBIAN
(foldername = same as deb file without the ext)

i can then edit the files and when i'm done i package them all up with this:

Code:
for f in apps/*; do dpkg-deb -b $f debs; done
what i want to know is: is there a way i can unpack the .debs without running 2 commands on EACH .deb file?

thanks

Last edited by steve51184; 02-12-2011 at 11:47 AM.
 
Old 02-13-2011, 07:39 AM   #2
aero_z
Member
 
Registered: Dec 2008
Posts: 30

Rep: Reputation: 16
You can try something like

Code:
for f in `ls -1 *.deb | sed 's/\(.*\)\..*/\1/'`
do
  dpkg-deb -x $f.deb $f
  dpkg-deb -e $f.deb $f/DEBIAN
done
 
Old 02-13-2011, 08:48 AM   #3
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
perfect thank you
 
  


Reply



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
install deb package using dpkg from live cd babagau Linux - Software 6 12-10-2010 06:51 AM
Installing wvdial_1.56-1.2_i386.deb with dpkg - help Witness Linux - Newbie 2 02-09-2008 10:05 PM
plz unpack this deb package NeoMagic Debian 3 10-06-2006 08:41 AM
Confused on how to remove a deb package with dpkg dr_zayus69 Debian 5 06-04-2006 02:02 PM
dpkg -i .deb and apt-get, ok to mix? r3dhatter Debian 1 09-24-2005 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 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
Open Source Consulting | Domain Registration