-
Senior Member
registered user
Dpkg default directory
Where is the default directory installed packages go if you use dpkg to install them, I assume it would be the home directory which is in the ram disk, but I want to be sure, just to be safe because I am not planning on installing on a persistant drive, I just want experience with installing a package and proof of concept
-
Senior Member
registered user
I have not tried this myself, but I think this could be the way to go:
dpkg -x /path/to/pkg.deb /some/directory # eXtract contents to /some/directory
DESTDIR=/some/directory
export MANPATH=$DESTDIR/man:$DESTDIR/usr/share/man:$MANPATH
export PATH=$DESTDIR/bin:$DESTDIR/usr/bin:$PATH #ok, sbin too, perhaps
export LD_LIBRARY_PATH=$DESTDIR/lib:$DESTDIR/usr/lib:$LD_LIBRARY_PATH
-
Senior Member
registered user
Thanks for the reply, but before I give it a try, one question the shell variables that you are exporting to be global, how does knoppix use those variables to extablish a man page link and the ability to open the application from the terminal, I'm a little rusty with how shell variables work
-
Senior Member
registered user
This has nothing to do with knoppix, it's just that the shell (bash, usually)
looks for these variables in order to know where to look for executables,
man pages, and libraries. The variables have to be "exported" so they will
be part of the environment that gets copied to children processes.
(And, to complete this mini-lesson, that is why a child process cannot hand
a changed variable back to its parent process: this is only a copy that gets
dropped when the child finishes.)
Similar Threads
-
Replies: 1
Last Post: 01-07-2007, 11:20 AM
-
By Nitromethane1261 in forum General Support
Replies: 2
Last Post: 09-15-2004, 12:09 AM
-
By jackren in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 01-14-2004, 08:37 PM
-
By ktheking in forum Networking
Replies: 3
Last Post: 11-09-2003, 06:34 PM
-
By FelixDzerzhinsky in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 08-10-2003, 04:50 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

Samsung 860 PRO 2TB 2.5" SATA III V- NAND SSD MZ-76P2T0 86%-90% Health
$187.00

Samsung 24" S3 Essential IPS 100Hz Monitor | Sealed | Fast shipping
$50.00

Samsung Galaxy Tab Active 3/ 64 gig/WIFI
$85.00

Samsung Odyssey Neo G95NA - OEM Stand - BN96-51632B
$125.00

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2
$81.99

RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro
$81.99

RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4
$93.99

Cell Phone Smartphone Computer repair banner poster sign iphone Samsung
$89.99

Samsung Galaxy View Tablet 18.4 SM-T670/677A Charging Port 100% Original Oem
$98.99

Samsung PM9C1A 256GB m.2 2280 SSD GEN4X4 NVME MZVL8256HDJD new Laptop PC
$34.99