[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to ensure that old kernel does not get removed



Greg Wooledge wrote:
> On Sat, Jan 05, 2019 at 08:45:37AM -0500, songbird wrote:
>> APT::Clean-Installed "false";
>> APT::NeverAutoRemove  { "linux-image.*";  };  // packages that should never
>>                                             // considered for autoRemove
>
> Yeah, personally I'm all about that Never Auto Remove.
>
> wooledg:~$ cat /etc/apt/apt.conf.d/99local 
> APT::NeverAutoRemove ".";
>
> This completely disables that "feature" and leaves my system alone, just
> how I want it.

  i've never gone to that extreme, i just want
the previous kernel-images to not go away until
i explicitly say to do so.  this means that i do
have to go clean them out manually.


  as an aside unfortunately for a default install 
the initial packages installed and used in the apt 
cache are cleared unless you figure out how to 
prevent that (via preseeding or some other method).

  when you are trying to audit a system to know
exactly what has been installed (and then replaced
by what) it is rather annoying.  there are logs
kept during install so the information is available
but i also liked before that the cache was left
intact until i explicitly requested it be cleared
or adjusted in any way.


  songbird


Reply to: