Remove Kernell Lama

Posted: Oktober 31, 2011 in Linux
Mungkin ada yang lupa.
ne script untuk menghapus kernel lama…😀
#/bin/bash
ls /boot/ | grep vmlinuz | sed ‘s@vmlinuz-@linux-image-@g’ | grep -v `uname -r` > /tmp/kernelList
for I in `cat /tmp/kernelList`
do
aptitude remove $I
done
rm -f /tmp/kernelList
update-grub
Kemudian simpan dengan nama (misalnya) “clean.sh” dan jalankan perintah berikut di Terminal:
view plainprint?

1. chmod +x clean.sh
2. sudo ./clean.sh
Keep learning bro….😀
atau kalau kalau gak mau repot repot buat script bisa dengan cara ini

dpkg -l ‘linux-*’ | sed ‘/^ii/!d;/'”$(uname -r | sed “s/\(.*\)-\([^0-9]\+\)/\1/”)”‘/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d’ | xargs sudo apt-get -y purge 

explore your brain by Oemar Lateev
Komentar
  1. Celesta mengatakan:

    I found the info on this site beneficial.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s