I keep an updated copy of /var/cache/apt/archives on a usb stick. When I bring up a new machine
I copy these files to that same directory and apt update. Then the update manager installs the packages
from the archive without having to re-download.
Is there a way to get update manager search for packages directly from the usb stick, or on a different hd partition?
Thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
Everything in life was difficult before it became easy.
Since I keep updated backups of the archives anyway my thinking is to reduce write cycles to ssd.
Plus saving metered data and download time. Also not needing to apt clean to recover storage space.
Thanks again.
Everything in life was difficult before it became easy.
all41 wrote: ⤴Mon Dec 17, 2018 8:21 pm
I know it's Christmas time--I keep getting new toys.
Heh, if you want to play around a bit more, have a good read through man apt.conf to see what's possible and apt-config dump to see your current aggregate apt configuration. The package management system is wonderfully flexible.
all41 wrote: ⤴Mon Dec 17, 2018 8:21 pm
I know it's Christmas time--I keep getting new toys.
Heh, if you want to play around a bit more, have a good read through man apt.conf to see what's possible and apt-config dump to see your current aggregate apt configuration. The package management system is wonderfully flexible.
It will still be Christmas in July (the July following Mint 21 release)
Also thanks to the mod team for modifying the subject of this topic to elicit such excellent replies.
Everything in life was difficult before it became easy.
WharfRat wrote: ⤴Tue Dec 18, 2018 9:35 am
With dpkg the -E option prevents the installation of the package if the same version of the package is already installed
And the -G option will not install a package if a newer version of the same package is already installed.
So using dpkg -E -R -G -i /path/to/debfiles/* should provide what you're attempting to accomplish.
Excellent--I will try this out today.
Thank you
Everything in life was difficult before it became easy.
@WharfRat
this definitely works--installed every remote package-- the whole enchilada--not just the updates.
Almost like a Timeshift restore--but better. Thanks for expanding my knowledge.
But for my immediate needs I have scripted the /etc/apt/apt.conf.d file suggestion and that works perfectly for my needs.
Thank you WharfRat and gm10,
Merry Christmas.
Everything in life was difficult before it became easy.