Hi All
If I install a package with apt, then it deletes the .deb file immediately after it installs the package. If I install the package with apt-get or aptitude then the .deb file is kept.
How do I change this? I would like apt to keep the .deb file for a bit, until I run an apt autoclean every few weeks.
Thanks in advance
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[solved] How do I keep deb files after installing a package
[solved] How do I keep deb files after installing a package
Last edited by gi1242 on 2018-03-12 15:18, edited 1 time in total.
Re: [apt] How do I keep ".deb" files after installing a pack
from /usr/share/doc/apt/NEWS.Debian.gz
[ Automatic removal of debs after install ]
After packages are successfully installed by apt(8),
the corresponding .deb package files will be
removed from the /var/cache/apt/archives cache directory.
This can be changed by setting the apt configuration option
"Binary::apt::APT::Keep-Downloaded-Packages" to "true". E.g:
# echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
> /etc/apt/apt.conf.d/01keep-debs
Please note that the behavior of apt-get is unchanged. The
downloaded debs will be kept in the cache directory after they
are installed. To enable the behavior for other tools, you can set
"APT::Keep-Downloaded-Packages" to false.
resigned by AI ChatGPT
Re: [solved] How do I keep deb files after installing a pack
Glad to know that you got solved your issue.
bw123 forgot to paste the date of that changelog, though.
Keep in mind that one can also grab previous versions of packages using the Snapshot system.
http://snapshot.debian.org/
bw123 forgot to paste the date of that changelog, though.
Code: Select all
-- Michael Vogt <mvo@debian.org> Tue, 05 Jan 2016 19:22:16 +0100
http://snapshot.debian.org/