-
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

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW
$13.89

LEVOIT Cordless Vacuum Cleaner, Stick Vac with Tangle-Resistant Design, Up to...
$162.04

2-in-1 Compressed Air Duster & Vacuum, Brushless Motor, 320000RPM
$37.99

Mini Computer Vacuum Cleaner & Compressed Air Duster 14500Pa, 110000RPM, Cordles
$53.99

US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits
$13.89

Mini Cordless Electric Keyboard Car Vacuum Cleaner Cleaning Duster Rechargeable
$9.97

2 in 1 Compressed Air Duster Air Blower & Vacuum Cleaner Cordless Duster Blower
$16.99

Multifunctional Handheld Vacuum Cleaner & Blower for Keyboard/PC US SELLER
$39.99

Cordless Air Duster & Vacuum Cleaner for Keyboard & PC Cleaning - 110000RPM Powe
$53.99

Cordless Vacuum Cleaner for 20V Battery, 7-in-1 Lightweight Stick Vacu...
$149.15