Difference between revisions of "Manjaro Kernels"
→Removing Kernels
imported>Handy |
imported>Handy |
||
Line 57: | Line 57: | ||
= Removing Kernels = | = Removing Kernels = | ||
{{warning|DO NOT attempt to delete an existing kernel while it is actually being used by Manjaro at the time. You can first identify what kernel is running on your system by using the command ''' | {{warning|DO NOT attempt to delete an existing kernel while it is actually being used by Manjaro at the time. You can first identify what kernel is running on your system by using the command '''mhwd-kernel -li''' in the terminal (see above).}} | ||
Where multiple kernels are present on your system, ''pacman'' can be used to remove them in the terminal. It may be necessary to delete a total of three elements of the kernel in total to completely remove it: | Where multiple kernels are present on your system, ''pacman'' can be used to remove them in the terminal. It may be necessary to delete a total of three elements of the kernel in total to completely remove it: | ||
Line 65: | Line 65: | ||
# The kernel's extra modules | # The kernel's extra modules | ||
Whether or not the headers and extra modules must be deleted depends on whether or not they have been installed. | Whether or not the headers and extra modules must be deleted depends on whether or not they have been installed. | ||
1. '''To | 1. '''To remove a kernel''' use the following syntax: | ||
sudo | sudo mhwd-kernel -R linux[version] | ||
Here is an example for removing kernel 3.9.10-1 | |||
sudo | |||
sudo mhwd-kernel -R linux39 | |||
Line 80: | Line 81: | ||
For example, to delete the headers of kernel version 3. | For example, to delete the headers of kernel version 3.9 from the system, the following command would be entered: | ||
sudo pacman -R | sudo pacman -R linux39-headers | ||
Line 88: | Line 89: | ||
For example, to delete the extra modules of kernel version 3. | For example, to delete the extra modules of kernel version 3.9 from the system, the following command would be entered: | ||
sudo pacman -R | sudo pacman -R linux39-extramodules | ||
Line 96: | Line 97: | ||
For example, to completely remove all elements of kernel version 3. | For example, to completely remove all elements of kernel version 3.9, the following command would be entered: | ||
sudo pacman -R | sudo pacman -R linux39 linux39-headers linux39-extramodules | ||
Please note however, that attempting to delete multiple elements at once if they are not present on your system will result in an error message before the operation itself is aborted. It is also worthwhile noting if Manjaro is being run in a virtual machine (e.g. Oracle Virtualbox), you may not be able to delete certain kernels if they contain elements important to the virtualisation process itself. | Please note however, that attempting to delete multiple elements at once if they are not present on your system will result in an error message before the operation itself is aborted. It is also worthwhile noting if Manjaro is being run in a virtual machine (e.g. Oracle Virtualbox), you may not be able to delete certain kernels if they contain elements important to the virtualisation process itself. | ||
= Selecting Kernels = | = Selecting Kernels = |