Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1477  / 3 Years ago, wed, june 30, 2021, 1:20:24

I know I can't install previous version without a local copy of the archive of needed version. But today I found out something surprising: I was sure that all previous archives are stored in cache. But after I upgraded firefox from v28 to v29 and checked available versions to install, result is unexpected for me:



$ apt-cache madison firefox
firefox | 29.0+build1-0ubuntu0.12.04.2 | http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
firefox | 29.0+build1-0ubuntu0.12.04.2 | http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
firefox | 11.0+build1-0ubuntu4 | http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages


There is no version 28. I checked /var/cache/apt/archives, and there is actually no archive of version 28. That is sad that it is removed.



How can I prevent it from removing old archives?


More From » apt

 Answers
0

The Apt cache is managed by a daily cron job. To modify the default settings, open (as root) /etc/apt/apt.conf.d/20archive:



APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";


To disable the automatic removal, set the three values to 0.



See the top of of /etc/cron.daily/apt for a brief documentation of these options.


[#25269] Wednesday, June 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
;