[xubuntu-users] Keeping *.deb in the archive (Ubuntu 16.04.2)
Ralf Mardorf
silver.bullet at zoho.com
Wed May 3 04:28:31 UTC 2017
On Wed, 2017-05-03 at 05:40 +0200, Ralf Mardorf wrote:
> On Tue, 2 May 2017 16:24:27 +0200, François P. Rotzinger wrote:
> > Sorry, I have sent the message below using the wrong account. Now, it
> > should be OK.
> > -----------------------------------------------------------------------------------------------------------------------
> > Greetings,
> > After the installation of software or updates, the cache
> > /var/cache/apt/archives is purged immediately. I tried without success
> > to get information, which file in /etc/apt/apt.conf.d should be
> > modified or added... Could you please give me a hint, what to do to
> > keep the files in /var/cache/apt/archives?
> > Many thanks! Best regards,
> > François
>
> You did not say how you upgraded or installed software
>
> By default "apt-get" behaves different, than "apt" does, you temporarily
> could change the default by adding "-o APT::Keep-Downloaded-Packages=1"
> or permanently change the behaviour by editing the apt settings. I
> don't have at hand how to permanently edit the settings, Google is your
> friend.
>
> IOW running
>
> sudo apt full-upgrade -o APT::Keep-Downloaded-Packages=1
> sudo apt install -o APT::Keep-Downloaded-Packages=1 <package>
>
> does the same as
>
> sudo apt-get dist-upgrade
> sudo apt-get install <package>
I don't know if Ubuntu suffered/suffers from this bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812111
More information about the xubuntu-users
mailing list