8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 32: | Line 32: | ||
This terminal command will give your system's kernel information: | This terminal command will give your system's kernel information: | ||
{{UserCmd|command=mhwd-kernel -li}} | |||
The above command not only shows which kernel is being used, it also lists any other kernels that are also installed, as shown in the following example Terminal output: | The above command not only shows which kernel is being used, it also lists any other kernels that are also installed, as shown in the following example Terminal output: | ||
{{UserCmdOutput|command=mhwd-kernel -li|result= | |||
Currently running: 5.0.17-1-MANJARO (linux50) | Currently running: 5.0.17-1-MANJARO (linux50)<br> The following kernels are installed in your system:<br> * linux419<br> * linux420<br> * linux50}} | ||
As seen in the above example, Manjaro is running kernel 5.0.17-1-MANJARO. The information given here is not arbitrary; each part of the kernel name identifies something about that kernel: | As seen in the above example, Manjaro is running kernel 5.0.17-1-MANJARO. The information given here is not arbitrary; each part of the kernel name identifies something about that kernel: | ||
Line 50: | Line 46: | ||
* The 1 indicates the revision of the Manjaro package | * The 1 indicates the revision of the Manjaro package | ||
* MANJARO indicates the specific distribution it is used for | * MANJARO indicates the specific distribution it is used for | ||
== Adding New Kernels == | == Adding New Kernels == | ||
Line 68: | Line 63: | ||
As an example, once the terminal is opened, the following command will install a new kernel (4.19) '''without deleting the existing kernel currently being used''': | As an example, once the terminal is opened, the following command will install a new kernel (4.19) '''without deleting the existing kernel currently being used''': | ||
sudo mhwd-kernel -i linux419 | {{UserCmd|command=sudo mhwd-kernel -i linux419}} | ||
Otherwise, the following command will install a new kernel (5.10) to replace the existing kernel, '''which will be deleted''': | Otherwise, the following command will install a new kernel (5.10) to replace the existing kernel, '''which will be deleted''': | ||
sudo mhwd-kernel -i linux510 '''rmc''' | {{UserCmd|command=sudo mhwd-kernel -i linux510 '''rmc'''}} | ||
Line 92: | Line 87: | ||
1. '''To remove a kernel''' use the following syntax: | 1. '''To remove a kernel''' use the following syntax: | ||
sudo mhwd-kernel -r linux[version] | |||
Here is an example for removing kernel 5.0.17-1 | Here is an example for removing kernel 5.0.17-1 | ||
sudo mhwd-kernel -r linux50 | {{UserCmd|command=sudo mhwd-kernel -r linux50}} | ||
Line 105: | Line 100: | ||
For example, to delete the headers of kernel version 5.0.x from the system, the following command would be entered: | For example, to delete the headers of kernel version 5.0.x from the system, the following command would be entered: | ||
sudo pacman -R linux50-headers | {{UserCmd|command=sudo pacman -R linux50-headers}} | ||
Line 113: | Line 108: | ||
For example, to delete the extra modules of kernel version 5.0.x from the system, the following command would be entered: | For example, to delete the extra modules of kernel version 5.0.x from the system, the following command would be entered: | ||
sudo pacman -R linux50-extramodules | {{UserCmd|command=sudo pacman -R linux50-extramodules}} | ||
Line 121: | Line 116: | ||
For example, to completely remove all elements of kernel version 5.0.x, the following command would be entered: | For example, to completely remove all elements of kernel version 5.0.x, the following command would be entered: | ||
sudo pacman -R linux50 linux50-headers linux50-extramodules | {{UserCmd|command=sudo pacman -R linux50 linux50-headers linux50-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. | ||
== Don't forget the mhwd-kernel -h command == | == Don't forget the mhwd-kernel -h command == |