LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   live cd/usb: where are packages downloaded to these days? (https://www.linuxquestions.org/questions/linux-software-2/live-cd-usb-where-are-packages-downloaded-to-these-days-4175617377/)

eantoranz 11-10-2017 07:48 PM

live cd/usb: where are packages downloaded to these days?
 
Hi!

I want to save the packages that were downloaded by apt for installation so that I can install them with dpkg directly instead of downloading them again with apt when I reboot the live cd/usb session (purposefully avoiding casper-rw, I'll use a hand-mounted sdcard to save information). But when I went to look in /var/cache/apt I was not able to find a single file there. Where are they saved now?

Thanks in advance.

michaelk 11-11-2017 02:14 PM

What distribution are you running?

Since the system runs from RAM my guess is that the live version maybe automatically configured to clean the cache. You can download any package without installing and save to the SD card.

ondoho 11-11-2017 02:16 PM

fwiw, on my debian jessie packages are stored in /var/cache/apt/archives/.
there's been no extra configuration of apt at any point.

jefro 11-11-2017 03:58 PM

https://askubuntu.com/questions/4086...how-do-i-do-it

You may have an issue while running apt on a live cd as the fuse or other ram blending software tends to make odd file management.

AwesomeMachine 11-13-2017 11:36 PM

I had that problem once. I just wrote scripts and stored them on the hard drive. The scripts would edit sources.list and reinstall the software I needed after each reboot. But you could install mlocate and use updatedb and locate to find where the .deb files are. Or you could use find, which might be slow.

eantoranz 11-16-2017 09:32 AM

I was able to pull of the trick (getting the packages downloaded and not disappear) by first downloading them with apt install -d. If I then ran apt install normally, they would get installed and they would not get deleted.

jefro 11-16-2017 03:20 PM

Thanks for the update and solution.

ondoho 11-18-2017 02:51 AM

some graphical software managers have a setting to delete all archives after installing - maybe that had something to do with it.


All times are GMT -5. The time now is 06:00 PM.