I want to compile some 3rd party software and install it on a bootable usb drive...there are several packages that I need to install with apt-get before I compile it.
How could I store the apt-get packages on the thumb drive so that the 3rd party application I compile will work on the usb drive?
The majority of the time the dependencies are only needed at compile time, and not usually after the application is compiled. If there are libraries that it is looking for, and is not on the usb drive, and hang with me for this one I know it sounds crazy, but I create a replica of the directory structure for the install, and move the libraries into it. IE: /usr/local/{bin,include,lib,sbin,share} Depending on what you set the prefix of the application to be (./configure --prefix=$usbMountPoint/usr/local )or if your past that point, you can do the good old DESTDIR reference. (make install DESTDIR=$usbMountPoint )