mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-11-29 19:37:53 +00:00
Merge branch '13-document-upgrading-linux-kernel' into 'master'
Resolve "Document Upgrading Linux Kernel" Closes #13 See merge request !8
This commit is contained in:
commit
e7c97198a1
34
chapter/linux.tex
Normal file
34
chapter/linux.tex
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
\chapter{Linux}
|
||||||
|
|
||||||
|
\section{Kernel Upgrades}
|
||||||
|
|
||||||
|
\begin{txt}
|
||||||
|
# LIST KERNELS ON /boot PARTITION
|
||||||
|
|
||||||
|
dpkg --list | grep linux-image
|
||||||
|
dpkg --list | grep linux-headers
|
||||||
|
\end{txt}
|
||||||
|
|
||||||
|
\begin{txt}
|
||||||
|
# REMOVE SELECTED KERNEL VERSIONS FROM BOOT PARTITION
|
||||||
|
|
||||||
|
sudo apt-get purge linux-image-4.4.0-{75,78,79}
|
||||||
|
sudo apt-get purge linux-image-extra-4.4.0-{75,78,79}
|
||||||
|
sudo apt-get purge linux-headers-4.4.0-{75,78,79}
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
sudo apt autoremove [-f]
|
||||||
|
\end{txt}
|
||||||
|
|
||||||
|
\begin{txt}
|
||||||
|
# My one-liner to remove old kernels (this also frees up disk space)
|
||||||
|
# https://askubuntu.com/a/254585
|
||||||
|
|
||||||
|
dpkg --list | grep linux-image | awk '{ print \$2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge
|
||||||
|
\end{txt}
|
||||||
|
|
||||||
|
\begin{txt}
|
||||||
|
# Remember to update grub2 configuration
|
||||||
|
sudo update-grub2
|
||||||
|
\end{txt}
|
1
main.tex
1
main.tex
|
@ -33,6 +33,7 @@
|
||||||
\include{chapter/wireless}
|
\include{chapter/wireless}
|
||||||
\include{chapter/voip}
|
\include{chapter/voip}
|
||||||
\include{chapter/baseconf}
|
\include{chapter/baseconf}
|
||||||
|
\include{chapter/linux}
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% %
|
% %
|
||||||
|
|
Loading…
Reference in a new issue