Bug #10958
Disable automatic removal of debs after install
100%
Description
apt (1.2~exp1) experimental; urgency=medium
[ 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
"APT::Keep-Downloaded-Packages" to "true". E.g:
# echo '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.
Disabling this would be nice for users who use apt
to preseed their persistent APT cache.
Subtasks
History
#1 Updated by intrigeri 2016-08-24 07:09:49
- Status changed from Confirmed to In Progress
- Assignee set to intrigeri
- % Done changed from 0 to 10
Fixed locally, needs to be tested.
#2 Updated by intrigeri 2016-08-24 08:08:15
Works.
#3 Updated by intrigeri 2016-08-24 11:21:54
- Status changed from In Progress to Resolved
- % Done changed from 10 to 100
Applied in changeset commit:55674b5dc7c75d4394ed3a25731aed58fdc53e36.
#4 Updated by sajolida 2017-11-23 19:17:46
- Status changed from Resolved to In Progress
- Target version changed from Tails_3.0 to Tails_3.5
- % Done changed from 100 to 70
- QA Check set to Ready for QA
- Feature Branch set to bugfix/10958-disable-automatic-removal-of-debs
Since 3.0 I had trouble with this and finally got to debug it.
I think that the configuration changed since you pasted the Changelog for apt 1.2~expr1. See https://anonscm.debian.org/git/apt/apt.git/tree/debian/NEWS.
I prepared a branch. I tested the change locally but didn’t built or test a full ISO.
I tested this by doing from Tails 3.3:
apt install sl
(very important utility!)ls -1 /var/cache/apt/archives/ | grep ^sl
gives nothingecho 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/14keep-debs
apt remove sl ; apt install sl
ls -1 /var/cache/apt/archives/ | grep ^sl
givessl_3.03-17+b2_amd64.deb
#5 Updated by intrigeri 2017-11-24 07:44:15
Thanks!
#6 Updated by intrigeri 2017-11-24 20:00:25
- Assignee changed from intrigeri to anonym
(Reassigning to the current RM.)
#7 Updated by anonym 2017-12-04 14:33:48
- Status changed from In Progress to Fix committed
- Assignee deleted (
anonym) - % Done changed from 70 to 100
- QA Check changed from Ready for QA to Pass
Merged!
In passing, I wonder if it wouldn’t be nice to revert this perference (by removing this config file) when booting from DVD…
#8 Updated by intrigeri 2017-12-14 12:33:05
- Affected tool set to Additional Software Packages
- Deliverable for set to 299
(See https://tails.boum.org/blueprint/additional_software_packages_offline_mode/)
#9 Updated by intrigeri 2017-12-14 12:33:27
- Parent task set to
Feature #14570
#10 Updated by intrigeri 2018-01-04 18:26:36
- Target version changed from Tails_3.5 to Tails_3.4
#11 Updated by anonym 2018-01-09 20:51:31
- Status changed from Fix committed to Resolved