All articles
Last comments
kardamom
Jesús, for "libpackagekit" run: sudo apt-get install packagekit-backend-aptcc
Guest Michael
This is my favorite GUI text editor for Linux, I use the Windows version all the time too. I also covered this topic here.
Andrii
I'm using Mint Cinnamone installed on virtual machine VMWare. The instruction helped me to adjust my mouse scroll wheel speed. I set the value to 6. Now it's comfortable to use the mouse. Thanks a lot!
Shekin
Cecilieaux Bois de Murier, 1. Silentcast 2. I haven't checked, but I think that it is possible to do in the program SimpleScreenRecorder
Cecilieaux Bois de Murier
Is there an application that imports stills into a GIF?
Archive
«    January 2017    »
MonTueWedThuFriSatSun
 1
2345678
9101112131415
16171819202122
23242526272829
3031 
» » purge-old-kernels - safe way to remove old kernels

purge-old-kernels - safe way to remove old kernels

purge-old-kernels - safe way to remove old kernels

Every month are new kernel updates, bug fixes and patches security system. If you regularly update your system, then your system gradually accumulates more the number of unused old kernels.

Sorry for the spelling and phonetic errors in the text.
Owner and main writer of MintGuide.org is not a native English speaker.


Thus, it is likely that the boot partition /boot on the hard drive will be filled in a certain period of time. If your /boot partition is full, you will not be able to upgrade, or can't even do a kernel upgrade to any latest available version. In this case, it is very important to regularly update the kernel and software. For this you must have enough free space in the /boot partition. To system to function correctly, you must have enough free space on the /boot and /root partitions.

We can easily remove the accumulated system cache, unwanted packages and dependencies using the following commands:

sudo apt-get autoremove
sudo apt-get autoclean

But the problem is that this works only if the kernel was installed automatically, or if you installed them using the Update Manager. Using these commands will not delete the kernel manually installed. However, you can use some third-party programs such as Ubuntu Tweak (This project is no longer under maintenance) for the safe disposal of unused cores, packages and their dependencies that are no longer needed. But Ubuntu Tweak is a graphical program which cannot be used on servers without a graphical mode.
One of the developers of Ubuntu, Dustin Kirkland, responsible for the development and the product strategy was created utility purge-old-kernels, which is the safest way removes from the system the unused kernel packages of desktop and server systems, Ubuntu and therefore Linux Mint.


Installation latest version into Linux Mint:

sudo apt-get install -y bikeshed byobu

Now, to remove old, unused kernels, run in terminal the following command:

sudo purge-old-kernels

purge-old-kernels - safe way to remove old kernelspurge-old-kernels - safe way to remove old kernels

If there is no older kernels in your system, this utility will display the following message:

purge-old-kernels - safe way to remove old kernelspurge-old-kernels - safe way to remove old kernels

The safety of the use of this utility is that it will never remove the last installed kernel, or rather, utility purge-old-kernels removes all the unused kernels, except for the last TWO - the current and the previous. But the user can override this value using the option --keep.
For example, to remove all old kernels except the 3 last, run the following command:

sudo purge-old-kernels --keep 3 -qy

For more information about purge-old-kernels, see the user manual:

man purge-old-kernels

Good Luck!!!

Source

Tags: kernel

Related Articles

Add a comment

  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent
Login via
32-11
Up