LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2017, 07:48 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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.

Last edited by eantoranz; 11-10-2017 at 07:50 PM.
 
Old 11-11-2017, 02:14 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,421

Rep: Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103
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.
 
Old 11-11-2017, 02:16 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,229
Blog Entries: 9

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
fwiw, on my debian jessie packages are stored in /var/cache/apt/archives/.
there's been no extra configuration of apt at any point.
 
Old 11-11-2017, 03:58 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,423

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
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.
 
Old 11-13-2017, 11:36 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
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.
 
Old 11-16-2017, 09:32 AM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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.
 
Old 11-16-2017, 03:20 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,423

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
Thanks for the update and solution.
 
Old 11-18-2017, 02:51 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,229
Blog Entries: 9

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


Reply

Tags
apt, dpkg, live, livecd, liveusb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using downloaded packages rng Debian 6 01-11-2013 12:31 PM
location of downloaded packages avee137 Linux - Newbie 2 10-07-2010 10:33 PM
Unetbootin doesn't readily create Live USB from downloaded ISO PaulFXH Linux - Software 7 09-21-2010 01:58 AM
Use konstruct with already downloaded packages Danny Beaudoin Linux - Software 2 04-13-2004 01:32 PM
Help using installing downloaded packages. troycus Linux - Newbie 1 09-22-2003 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration