[SOLVED] apt autoremove - safe to use?

tessus

Active Member
Oct 5, 2020
39
4
28
Toronto, Canada
I've read a few threads on this forum about removing old kernels. At one point the autoremove feature was mentioned, but in other threads it was suggested it was not safe to use. Another thread mention apt purge and update-grub. I couldn't find a definitive answer.

Bash:
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils pve-kernel-5.11.22-1-pve pve-kernel-5.4.106-1-pve pve-kernel-5.4.114-1-pve pve-kernel-5.4.119-1-pve
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Is it safe to use apt autoremove and will it really clean up all the data?