Escolar Documentos
Profissional Documentos
Cultura Documentos
Remover Kernel Velho S
Remover Kernel Velho S
com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/
TESTAR:
dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"`
| grep -e [0-9] | xargs sudo apt-get --dry-run remove
dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"`
| grep -e [0-9] | xargs sudo apt-get -y purge
dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"`
| grep -e [0-9] | awk '{ print "apt-get -y purge " $0;}' > temp.sh
EDITAR temp.sh tirando a(s) última(s) versão(ões), assim será mantida mais de uma
versão do kernel. Importante: o arquivo nao estará ordenado portanto as linhas
referentes a(s) última(s) versão(ões) não estarão necessariamente na sequência.