![]() Registered Member ![]()
|
What is the command to remove unwanted kernels. I get an error message of no space on device when I try to remove it from Synaptics, and I have plenty of space. There is a command that removes all old kernels, but I can't remember what the command was!
![]()
Last edited by fredhoud on Fri Jun 23, 2017 3:27 pm, edited 1 time in total.
|
![]() Global Moderator ![]()
|
Hi there,
it all depends on the distro! In general though ncdu is a great tool find out where spacehoggers lurk. Usually it is downloaded updates which tend to accumulate and fill up /. Have a look at the https://wiki.archlinux.org/index.php/Pacman/Rosetta from archlinux to find out which command you're looking for for your distro. HTH ![]() PS.: Just noticed you're on Neon. Do a
Debian testing
|
![]() Registered Member ![]()
|
Nope, "sudo apt autoclean" didn't do anything. There's another command that removes the old kernels, but I can't remember what it was.
Never mind, I found it. it's "sudo apt-get autoremove" |
![]() Global Moderator ![]()
|
Here an excerpt from the man page so you know what does what
![]() clean clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. autoclean (and the auto-clean alias since 1.1) Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off. autoremove (and the auto-remove alias since 1.1) autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
Debian testing
|
![]() Registered Member ![]()
|
One solution that seems to work great for myself and others overt at the Kubuntu Forums is UCareSystem. You can read about it here: http://www.kdigest.com/2016/08/uCareSystem-Core-An-Easy-And-Efficient-Way-To-Keep-Your-System-In-Top-Shape.html.
The code is on GitHub and it's really just a script to automate system maintenance. Works like a champ. |
Registered users: Bing [Bot], Evergrowing, Google [Bot]