command mudah ngilangin linux kernel

Tempat nongkrong. Diskusi bebas di luar topik.
Post Reply
User avatar
prongsx
Posts: 316
Joined: 24 Jul 2010, 16:16

command mudah ngilangin linux kernel

Post by prongsx » 14 Feb 2012, 04:16

sorry klo dopost

pertamax updet dolo kernel ente

keduax reboot kompienya trus pilih kernel paling baroe

ketigax tekan tombol Cltrl+Alt+T paste command dibawah

[spoiler]

Code: Select all

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
[/spoiler]

bis itu reboot kompie ente thx...


User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Post by thrvers » 14 Feb 2012, 05:03

'
ini efeknya, apakah akan menghapus kernel lain (ysng tidak sedang dipakai)??

THX kak prongsx


User avatar
prongsx
Posts: 316
Joined: 24 Jul 2010, 16:16

Post by prongsx » 14 Feb 2012, 10:48

command ini lgs menghapus semua kernel yang ga dipake. jadi gak usah ngliat kernel apa yg dipake ama yg ga.


User avatar
sipelaut
Posts: 1965
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Post by sipelaut » 14 Feb 2012, 12:55

ane bookmark dulu ah...


User avatar
buzzing_bee
Posts: 1971
Joined: 29 Dec 2010, 21:53
Location: /home/buzzing_bee
Contact:

Post by buzzing_bee » 14 Feb 2012, 13:03

sory OOT:

bro prongsx, tanya, itu pemakaian command sed gimana sih?? saya belum mudeng, saya ngertinya sed itu untuk motong/filter string..tapi nda tau gimana makenya plus syntax nya :D


User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Post by Sudoers » 14 Feb 2012, 13:11

Nge-REGEX tuh..
Huhuuu..

Wah asyik neh klo bahas ini di kelas belajar online.
Yang belajar ama yang mengajar bisa2 KO semua.


User avatar
buzzing_bee
Posts: 1971
Joined: 29 Dec 2010, 21:53
Location: /home/buzzing_bee
Contact:

Post by buzzing_bee » 14 Feb 2012, 13:24

REGular EXpression :D

kalo syntaxnya gimana mas?? :D
itu yg dikasih mas prongsx maksudnya gimana? :grin:


User avatar
prongsx
Posts: 316
Joined: 24 Jul 2010, 16:16

Post by prongsx » 23 Feb 2012, 03:05

wew aku dapet command ini dari net. sorry bro aku juga ga ngerti cara kerjanya. :grin tanya pak lurah aja


User avatar
prongsx
Posts: 316
Joined: 24 Jul 2010, 16:16

Post by prongsx » 09 Mar 2012, 12:46

dopost dopost

[spoiler]

Code: Select all

prongs@the-matrix:~$ 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
[sudo] password for prongs: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-2.6.32-33* linux-headers-2.6.32-33-generic*
  linux-image-2.6.32-33-generic*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 214MB disk space will be freed.
(Reading database ... 149854 files and directories currently installed.)
Removing linux-headers-2.6.32-33-generic ...
Removing linux-headers-2.6.32-33 ...
Removing linux-image-2.6.32-33-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 2.6.32-33-generic /boot/vmlinuz-2.6.32-33-generic
Uninstalling: nvidia-current 195.36.24 (2.6.32-33-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 195.36.24
Kernel:  2.6.32-33-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
 - Uninstallation
   - Deleting from: /lib/modules/2.6.32-33-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod.........

DKMS: uninstall Completed.
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-39-generic
Found initrd image: /boot/initrd.img-2.6.32-39-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows XP Professional x64 Edition on /dev/sda1
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old 
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old 
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.32-33-generic ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-39-generic
Found initrd image: /boot/initrd.img-2.6.32-39-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows XP Professional x64 Edition on /dev/sda1
done
prongs@the-matrix:~$ ^C
prongs@the-matrix:~$ 
[/spoiler]


User avatar
Sudoers
Site Admin
Posts: 1
Joined: 03 Nov 2009, 17:43

Post by Sudoers » 21 Mar 2012, 18:12

Aku juga ngak ngerti reGEx, nunggu rekan2 yg lebih ahli..
Munkin ada yg bs menjelaskan lebih detail..

Klo liat perintah diatas urutannya kurang lebih..
Ngecek semua versi kernel yg telah diinstall + Ambil versi kernel yang aktif + remove yang lama

Ya begitulah kira2 dari sudut pandang awan melihatnya :D


User avatar
prongsx
Posts: 316
Joined: 24 Jul 2010, 16:16

Post by prongsx » 07 Aug 2012, 18:56

Bump......

sorry klo necro tapi coomand yang bagus nih


User avatar
masdana
Posts: 718
Joined: 08 Jun 2010, 13:09
Location: East Borneo
Contact:

Post by masdana » 07 Aug 2012, 20:44

nah sy setuju jg dengan pendapatnya pak lurah :grin:


User avatar
Nexus
Posts: 2957
Joined: 26 Feb 2011, 12:39
Location: Ujung dunia

Post by Nexus » 08 Aug 2012, 18:20

cukup pakai cara si nexus aja, lebih mudah, gak ribet, gak mbikin pusisng & praktis. yaitu:

Ubuntu tweak > Janitor > centang Old Kernel > clean.

Mudah mana coba???. :laugh:


User avatar
prongsx
Posts: 316
Joined: 24 Jul 2010, 16:16

Post by prongsx » 08 Aug 2012, 23:15

klo cara yang aku posting tinggal copy paste.. dan selama ini dijamin aman. semua kernel yang ga kepake ilang smua. tergantung user sih. Lewat GUI bisa lewat terminal juga bisa. semua cara adalah mudah tergantung User lebih nyaman pake yang mana.

:D tul ga??


User avatar
belthsazar
Posts: 1300
Joined: 02 Jul 2011, 04:38
Location: Surabaya, Indonesia

Post by belthsazar » 08 Aug 2012, 23:24

betul. setuju. kalo emang nyaman GUI ya silakan pake Ubuntu Tweak yang bener2 gampang. kalo kebiasaan pake terminal ya silakan pake. tergantung selera masing2. namanya juga FREEDOM in Open Source.


Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests