LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-24-2019, 02:50 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Install all .deb pkgs in folder to another folder?


I'm trying to make a Calamares module for my slax-based Debian live usb and I need to install Calamares and all its depends into a folder called Calamares and then use dir2sb to make the module Calamares.sb.
I cannot figure out how to extract the .debs into a folder as if installed to system - I found a script on puppy forum but it doesnt seem to work...just left the .deb pkgs in /tmp/deb

Code:
#!/bin/sh

clear
mkdir -p /tmp/deb
cp -f /root/PKGS/*.deb /tmp/deb 2>/dev/null
cd /tmp/deb
dpkg-deb -x *.deb /tmp/deb
rm /tmp/deb/*.deb
echo "Done extracting:"
ls
pcmanfm /tmp/deb 2>/dev/null
I also tried using dpkg-deb -x and didnt work either
If anyone can help I'd appreciate it!

Last edited by linus72; 03-24-2019 at 02:51 PM.
 
Old 03-25-2019, 06:55 AM   #2
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
Any reason you can't do something like this?

Code:
# dpkg --root=/your/directory -i /dir/with/packages/*.deb
 
1 members found this post helpful.
Old 03-25-2019, 05:07 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
ok thanks Ill try that!
 
Old 03-25-2019, 05:27 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Ok that didnt work
Code:
root@debian:~# dpkg --root=/root/focus_writer -i /root/PKGS/*.deb
dpkg: error: unable to access dpkg status area: No such file or directory
or did I do it wrong?
BTW the status file is in /var/lib/dpkg so??
 
Old 03-26-2019, 06:46 AM   #5
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
First:

Code:
# mkdir -p /root/focus_writer/var/lib/
Now you have two options. If you want to use the packages on your base system to satisfy dependencies, you could just copy your base system dpkg data. If you want to bundle all of the dependencies in the alternate root, you could make empty dpkg data files.

Copy your base system:

Code:
# cp -Rp /var/lib/dpkg /root/focus_writer/var/lib/
Create empty files:

Code:
# mkdir -p /root/focus_writer/var/lib/dpkg
# mkdir /root/focus_writer/var/lib/dpkg/updates
# mkdir /root/focus_writer/var/lib/dpkg/info
# touch /root/focus_writer/var/lib/dpkg/status
 
1 members found this post helpful.
Old 03-26-2019, 04:10 PM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OK thank you I'll try it
 
  


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
[SOLVED] slackpkg install-new / new pkgs in mirror / kdei pkgs ahlr Slackware 4 07-01-2013 04:33 AM
[SOLVED] slackpkg says no pkgs to update after installing 14.0, but there are pkgs in /patches integrale16 Slackware 5 02-26-2013 03:48 PM
etch: will ATIs fglrx* .deb pkgs still build if I upgrade kernel? HowDoIProgramIt Debian 9 08-06-2007 10:59 AM
swaret --upgrade says my slack9 pkgs are all up to date. wazzup? dfowensby Slackware 11 02-19-2004 12:44 PM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:28 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