Results 1 to 4 of 4

Thread: Dpkg default directory

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Jan 2006
    Location
    California, USA
    Posts
    122

    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

  2. #2
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    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

  3. #3
    Senior Member registered user
    Join Date
    Jan 2006
    Location
    California, USA
    Posts
    122
    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

  4. #4
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    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

  1. Replies: 1
    Last Post: 01-07-2007, 11:20 AM
  2. apt-get / dpkg error: unable to access dpkg status area
    By Nitromethane1261 in forum General Support
    Replies: 2
    Last Post: 09-15-2004, 12:09 AM
  3. qt-x11-free dpkg apt-get
    By jackren in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 01-14-2004, 08:37 PM
  4. Logon to active directory or NT directory ......
    By ktheking in forum Networking
    Replies: 3
    Last Post: 11-09-2003, 06:34 PM
  5. X-Chat Default download directory home?
    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
  •  


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

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... picture

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

$162.04



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

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

$37.99



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

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 picture

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 picture

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 picture

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  picture

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

$39.99



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

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... picture

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

$149.15