Si en algún momento necesitáis actualizar el kernel de Ubuntu a una versión más reciente, podéis hacerlo desde kernel.ubuntu.com.
Para instalar el nuevo kernel de una forma sencilla desde la línea de comandos, podéis usar el script ubuntu-mainline-kernel.sh.
Obtener el script es muy sencillo:
wget -O /usr/local/bin/ubuntu-mainline-kernel.sh https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
Una vez descargado y colocado en /usr/local/bin/, le damos permisos de ejecución:
chmod +x /usr/local/bin/ubuntu-mainline-kernel.sh
Y ya podremos utilizarlo.
Este script tiene una serie de parámetros. Si lo iniciáis sin parámetros, os mostrará la ayuda:
ubuntu-mainline-kernel.sh
Usage: /usr/local/bin/ubuntu-mainline-kernel.sh -c|-l|-r|-u
Download & install the latest kernel available from kernel.ubuntu.com
Arguments:
-c Check if a newer kernel version is available
-i [VERSION] Install kernel VERSION, see -l for list. You don't have to prefix
with v. E.g. -i 4.9 is the same as -i v4.9. If version is
omitted the latest available version will be installed
-l [SEARCH] List locally installed kernel versions. If an argument to this
option is supplied it will search for that
-r [SEARCH] List available kernel versions. If an argument to this option
is supplied it will search for that
-u [VERSION] Uninstall the specified kernel version. If version is omitted,
a list of max 10 installed kernel versions is displayed
-h Show this message
Optional:
-s, --signed Only install signed kernel packages (not implemented)
-p, --path DIR The working directory, .deb files will be downloaded into
this folder. If omitted, the folder /tmp/ubuntu-mainline-kernel.sh/
is used. Path is relative from $PWD
-ll, --low-latency Use the low-latency version of the kernel, only for amd64 & i386
-lpae, --lpae Use the Large Physical Address Extension kernel, only for armhf
--snapdragon Use the Snapdragon kernel, only for arm64
-do, --download-only Only download the deb files, do not install them
-ns, --no-signature Do not check the gpg signature of the checksums file
-nc, --no-checksum Do not check the sha checksums of the .deb files
-d, --debug Show debug information, all internal command's echo their output
--rc Also include release candidates
--yes Assume yes on all questions (use with caution!)
Si queréis obtener una lista de las versiones del kernel que hay en el repositorio, tan sólo tenéis que utilizar el parámetro -r:
ubuntu-mainline-kernel.sh -r
Si queréis comprobar qué versiones del kernel del repositorio kernel.ubuntu.com tenéis ya instaladas localmente, podéis utilizar el parámetro -l:
ubuntu-mainline-kernel.sh -l
Para instalar una versión del kernel, lo que tenéis que hacer es usar el parámetro -i junto con el número de versión. Por ejemplo, si queremos instalar la versión 5.9.0:
ubuntu-mainline-kernel.sh -i 5.9.0
Y si lo que queremos es instalar la última versión del kernel, simplemente escribimos el parámetro -i sin especificar ningún número de versión:
ubuntu-mainline-kernel.sh -i
Para desinstalar una versión del kernel, usamos el parámetro -u junto con el número de versión. Por ejemplo:
ubuntu-mainline-kernel.sh -u 5.9.0
Be the first to comment