Manjaro Difference between revisions of "Manjaro Kernels/ru"

Difference between revisions of "Manjaro Kernels/ru"

From Manjaro
(Created page with "Эта команда терминала предоставит информацию о ядре вашей системы:")
(Created page with "== Идентификация используемого ядра ==")
Line 34: Line 34:
   {{UserCmd|command=mhwd-kernel -li}}
   {{UserCmd|command=mhwd-kernel -li}}


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>


{{UserCmdOutput|command=mhwd-kernel -li|result=
{{UserCmdOutput|command=mhwd-kernel -li|result=
  Currently running: 5.0.17-1-MANJARO (linux50)<br> The following kernels are installed in your system:<br>    * linux419<br>    * linux420<br>    * linux50}}
  Currently running: 5.0.17-1-MANJARO (linux50)<br> The following kernels are installed in your system:<br>    * linux419<br>    * linux420<br>    * linux50}}


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* The 5 indicates the version
* The 5 indicates the version
* The 0 indicates the major revision
* The 0 indicates the major revision
Line 46: Line 52:
* 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
</div>


== Добавление новых ядер ==
== Добавление новых ядер ==


<div lang="en" dir="ltr" class="mw-content-ltr">
{{tip| '''mhwd-kernel will automatically update a newly installed kernel with any modules currently used in your existing kernel'''. For example, if you were to update from kernel 4.14 to 4.19, mhwd-kernel would automatically update 4.19 with any and all modules present in 4.14. How about that!}}
{{tip| '''mhwd-kernel will automatically update a newly installed kernel with any modules currently used in your existing kernel'''. For example, if you were to update from kernel 4.14 to 4.19, mhwd-kernel would automatically update 4.19 with any and all modules present in 4.14. How about that!}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Manjaro not only supports the use of ''multiple'' kernels (selectable from the boot screen), but allows easy access to the '''very latest ''bleeding edge''''' kernels as well. This is undertaken through use of Manjaro's own ''MHWD-kernel'' (Manjaro Hard-Ware Detection) command. The syntax of the command is as follows:
Manjaro not only supports the use of ''multiple'' kernels (selectable from the boot screen), but allows easy access to the '''very latest ''bleeding edge''''' kernels as well. This is undertaken through use of Manjaro's own ''MHWD-kernel'' (Manjaro Hard-Ware Detection) command. The syntax of the command is as follows:
</div>


  sudo mhwd-kernel [-i] [new kernel: linux(version)] [optional - remove the current kernel: rmc]
  <div lang="en" dir="ltr" class="mw-content-ltr">
sudo mhwd-kernel [-i] [new kernel: linux(version)] [optional - remove the current kernel: rmc]
</div>




When listing a new kernel to be installed in the command, it is not necessary to write the entire version number. For example, any version of Kernel 4.19 can be listed simply as 'linux419', and any version of Kernel 4.14 can be listed as 'linux414', and so on.  
<div lang="en" dir="ltr" class="mw-content-ltr">
When listing a new kernel to be installed in the command, it is not necessary to write the entire version number. For example, any version of Kernel 4.19 can be listed simply as 'linux419', and any version of Kernel 4.14 can be listed as 'linux414', and so on.
</div>


The optional '''rmc''' ('''<u>r</u>'''e'''<u>m</u>'''ove '''<u>c</u>'''urrent) component is of vital importance. Using this will result in your existing kernel being deleted upon the installation of the new kernel. Otherwise, if it is not used, then the existing kernel will be kept, and will be selectable alongside the new kernel at the boot screen. '''It is recommended - especially if updating to the latest bleeding edge kernel - to keep your old one, even if only for a short time afterwards'''. This the safer option, and the old kernel can be easily removed when satisfied with the stability and functionality of the new one.  
<div lang="en" dir="ltr" class="mw-content-ltr">
The optional '''rmc''' ('''<u>r</u>'''e'''<u>m</u>'''ove '''<u>c</u>'''urrent) component is of vital importance. Using this will result in your existing kernel being deleted upon the installation of the new kernel. Otherwise, if it is not used, then the existing kernel will be kept, and will be selectable alongside the new kernel at the boot screen. '''It is recommended - especially if updating to the latest bleeding edge kernel - to keep your old one, even if only for a short time afterwards'''. This the safer option, and the old kernel can be easily removed when satisfied with the stability and functionality of the new one.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
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''':
</div>


  {{UserCmd|command=sudo mhwd-kernel -i linux419}}
  <div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmd|command=sudo mhwd-kernel -i linux419}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
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''':
</div>


  {{UserCmd|command=sudo mhwd-kernel -i linux510 '''rmc'''}}
  <div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmd|command=sudo mhwd-kernel -i linux510 '''rmc'''}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
Either way, Manjaro will automatically configure the new kernel for you, ready for immediate use. Once completed, close the terminal and re-boot the system for the change to take effect.
Either way, Manjaro will automatically configure the new kernel for you, ready for immediate use. Once completed, close the terminal and re-boot the system for the change to take effect.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== Removing Kernels ==
== Removing Kernels ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{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).}}
{{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).}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
# The kernel itself
# The kernel itself
# The kernel's headers
# The kernel's headers
# The kernel's extra modules
# The kernel's extra modules
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
1. '''To remove a kernel''' use the following syntax:
1. '''To remove a kernel''' use the following syntax:
sudo mhwd-kernel -r linux[version]
sudo mhwd-kernel -r linux[version]
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
Here is an example for removing kernel 5.0.17-1
Here is an example for removing kernel 5.0.17-1
</div>


  {{UserCmd|command=sudo mhwd-kernel -r linux50}}
  <div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmd|command=sudo mhwd-kernel -r linux50}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
2. '''To delete a kernel's headers''', the syntax is:
2. '''To delete a kernel's headers''', the syntax is:
{{UserCmd|command=sudo pacman -R linux[version]-headers}}
{{UserCmd|command=sudo pacman -R linux[version]-headers}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
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:
  {{UserCmd|command=sudo pacman -R linux50-headers}}
  {{UserCmd|command=sudo pacman -R linux50-headers}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
3. '''To delete a kernel's extra modules''', the syntax is:
3. '''To delete a kernel's extra modules''', the syntax is:
  {{UserCmd|command=sudo pacman -R linux[version]-extramodules}}
  {{UserCmd|command=sudo pacman -R linux[version]-extramodules}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
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:
  {{UserCmd|command=sudo pacman -R linux50-extramodules}}
  {{UserCmd|command=sudo pacman -R linux50-extramodules}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
4. '''To delete all elements of a kernel at the same time'''  - where they are all present on your system - the syntax is:
4. '''To delete all elements of a kernel at the same time'''  - where they are all present on your system - the syntax is:
{{UserCmd|command=sudo pacman -R linux[version] linux[version]-headers linux[version]-extramodules}}
{{UserCmd|command=sudo pacman -R linux[version] linux[version]-headers linux[version]-extramodules}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
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:
  {{UserCmd|command=sudo pacman -R linux50 linux50-headers linux50-extramodules}}
  {{UserCmd|command=sudo pacman -R linux50 linux50-headers linux50-extramodules}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== Don't forget the mhwd-kernel -h command ==
== Don't forget the mhwd-kernel -h command ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
As with most Linux commands that can be entered into the Terminal, typing the command followed by either '''-h''' or '''--help''' will print out the usage & available options to the Terminal for your reference. Here is the output of the '''mhwd-kernel -h''' command:
As with most Linux commands that can be entered into the Terminal, typing the command followed by either '''-h''' or '''--help''' will print out the usage & available options to the Terminal for your reference. Here is the output of the '''mhwd-kernel -h''' command:
</div>


  {{UserCmdOutput|command=mhwd-kernel -h|result=<pre>
  <div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmdOutput|command=mhwd-kernel -h|result=<pre>
Usage: mhwd-kernel [option]
Usage: mhwd-kernel [option]
     -h  --help              Show this help message
     -h  --help              Show this help message
Line 132: Line 194:
     -r  --remove            Remove a kernel            [kernel(s)]
     -r  --remove            Remove a kernel            [kernel(s)]
</pre>}}
</pre>}}
</div>


= Выбор ядер =
= Выбор ядер =
Line 142: Line 205:


<br clear="all"/>
<br clear="all"/>
<div lang="en" dir="ltr" class="mw-content-ltr">
<br clear="all"/>
</div>




[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]
[[Category:Kernel{{#translation:}}]]
[[Category:Kernel{{#translation:}}]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.