Home  >  Article  >  Operation and Maintenance  >  How to uninstall unused old kernel in Linux deepin

How to uninstall unused old kernel in Linux deepin

藏色散人
藏色散人forward
2020-06-15 13:55:212945browse

The following column linux tutorial will introduce to you how to uninstall the unused old kernel in Linux deepin. I hope it will be helpful to those in need!

How to uninstall unused old kernel in Linux deepin

First list the currently installed kernels

dpkg --get-selections| grep linux

How to uninstall unused old kernel in Linux deepin

##For example, if you want to uninstall linux5.1.9, execute the command:

sudo apt remove --purge linux-headers-5.1.9-050109

How to uninstall unused old kernel in Linux deepin

In addition to linux-header, you also need to uninstall linux-modules and linux-image -unsigned

Command:

sudo apt remove --purge linux-modules-5.1.9-050109-generic

This will uninstall the 5.1.9 kernel.

For more Linux technical articles, please visit

linux use Tutorial column!

The above is the detailed content of How to uninstall unused old kernel in Linux deepin. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete