Add `apt autoremove`
-
I assume this feature is to
autoremove
stuff is only for removing old kernels? I have to say I have not seen the issue of boot filling up in Ubuntu 18. Has anyone hit this in bionic?Also, ubuntu security updates does not add new packages (only updates existing ones). So, AFAIK, this feature is only for removing kernels and nothing else. I am happy to add some button (instead of an automated cron).
-
@mehdi hmmm, I went back and checked and indeed the install script does not call autoremove in the end, maybe it should.
This feature request started with "As Cloudron does automatic security and system updates", so I just want to point out that neither of those require auto-remove since additional packages are not installed and the security updates are very conservative and not dramatic (like removing deps etc). So, except for this kernel stuff, we don't need autoremove, I think. I don't completely understand why ubuntu itself doesn't have a mechanism for this. Happy to be corrected here though
Wow this really exploded while I slept.
@girish That is not a correct conclusion.
@mehdi is correct above.Even with Cloudron not installing anything new, the system will over time end up with orphaned dependencies that can be removed. This includes old kernels.
It will not harm the system, only keep it less cluttered and do the
right thing
(tm).Please do the needful.
-
Even if not automatic, I think a button do to it manually would do the job.
That plus a warning for admins that the boot partition is nearly full would cover a great majority of usecases i think
@mehdi Why give the admin yet another button when it can be eliminated altogether? I'd rather do it on CLI then.
Point is, I don't want to see
autoremove
whenever I run apt or have to deal with kernels filling up for poorly planned partitions or side-effects of OS vendor releasing lots of kernels and not cleaning up. -
@mehdi Why give the admin yet another button when it can be eliminated altogether? I'd rather do it on CLI then.
Point is, I don't want to see
autoremove
whenever I run apt or have to deal with kernels filling up for poorly planned partitions or side-effects of OS vendor releasing lots of kernels and not cleaning up.@robi said in Add `apt autoremove`:
Point is, I don't want to see
autoremove
whenever I run apt or have to deal with kernels filling up for poorly planned partitions or side-effects of OS vendor releasing lots of kernels and not cleaning up.If
autoremove
gets integrated in the Cloudronapt update
routine, you wouldn't "see" it?! -
@robi said in Add `apt autoremove`:
Point is, I don't want to see
autoremove
whenever I run apt or have to deal with kernels filling up for poorly planned partitions or side-effects of OS vendor releasing lots of kernels and not cleaning up.If
autoremove
gets integrated in the Cloudronapt update
routine, you wouldn't "see" it?!@necrevistonnezr No, as it would be run regularly in the background.
Hence when I run
apt install blah
manually, it has a low chance of finding it needs to remove something viaautoremove
. -
@necrevistonnezr No, as it would be run regularly in the background.
Hence when I run
apt install blah
manually, it has a low chance of finding it needs to remove something viaautoremove
. -
@robi said in Add `apt autoremove`:
Hence when I run apt install blah manually
Aren't you not supposed to install stuff manually on cloudron?
@mehdi Exactly, we're talking about Cloudron background routines, not manual installing on the server.