-
Extract multiple .deb files
I'm writing a script that will ask the user for a packagename and :
#apt-get install -b <packagename>
(inside a chrooted environment)
This way, it will download all the dependencies as well.
After this, I move the files to a certain directory and I want to extract them from there with :
#dpkg -x <deb-file> /directory
My problem here is, that I can't select '*.deb' as input for this, as dpkg -x can only handle 1 file at a time.
As I don't know the .deb-file-names in the directory, I cannot do this one by one.
Hopefully, somebody here has a solution for this ?
-
Sorry for the post, but I allready figured this one out...
In the script, I just put in :
for DEB in ls *.deb; do dpkg -x $DEB /dir; done
(in case anybody needs this
)
Similar Threads
-
By turbine in forum General Support
Replies: 1
Last Post: 06-14-2005, 08:25 AM
-
By lilsirecho in forum Klik
Replies: 5
Last Post: 01-21-2005, 12:50 AM
-
By borru in forum General Support
Replies: 0
Last Post: 06-16-2004, 11:53 AM
-
By BigMack in forum The Lounge
Replies: 3
Last Post: 04-04-2003, 04:20 PM
-
Replies: 1
Last Post: 03-28-2003, 09:05 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Novell SUSE Linux Enterprise Server 9, Linux Professional 8.2 / 9.1 — 3 DVD Set
$58.00

Microsoft SQL Server 2019 Enterprise 40 Core Unlimited CAL Retail License FPP
$299.00

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$125.00

RED HAT ENTERPRISE LINUX 5 SERVER RHF0382US-R1 for PC x86 AMD 64 INTEL 64 30 Day
$188.24

Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026
$12.99

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC
$175.00

All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive
$15.95

1U Rackmount PC Intel Core i5-2520M 8GB RAM 500GB HDD Ubuntu Linux Server
$109.99

SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA
$284.99

Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay
$500.00