<div dir="ltr"><div><div>Thanks Valdis and Adheer. lets try..<br><br><br></div>Thanks<br></div>Anurudh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 6:41 PM, adheer chandravanshi <span dir="ltr">&lt;<a href="mailto:adheer.c@hotmail.com" target="_blank">adheer.c@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">

Date: Tue, 3 Mar 2015 12:12:16 +0000
From: <a href="mailto:malte.vesper@postgrad.manchester.ac.uk" target="_blank">malte.vesper@postgrad.manchester.ac.uk</a>
To: <a href="mailto:anurudhtripathi@gmail.com" target="_blank">anurudhtripathi@gmail.com</a>
Subject: Re: I want to remove my current kernel after upgradtion of new kernel
CC: <a href="mailto:kernelnewbies@kernelnewbies.org" target="_blank">kernelnewbies@kernelnewbies.org</a>

Still the link applies to debian as well, look for:

&quot;.deb based distro - Debian or Ubuntu Linux&quot;

And i believe the manual steps at the bottom apply to linux in general

On 03/03/15 12:00, Anurudh Tiwari wrote:
@ Denial : I have tried with -y option. it exempt me from console confirmation but not from pop-up.

@Malte : I am not using ubuntu. Its a Debian based system.

On Tue, Mar 3, 2015 at 5:22 PM, Malte Vesper <u></u> wrote:
Wrong list I guess, try <a href="http://askubuntu.com" target="_blank">askubuntu.com</a> next

or maybe google, you know second result for &quot;linux uninstall kernel&quot; has your answers...

<a href="http://www.cyberciti.biz/faq/debian-redhat-linux-delete-kernel-command/" target="_blank">http://www.cyberciti.biz/faq/debian-redhat-linux-delete-kernel-command/</a>

You have a debian/ubuntu like system.

Also you should always keep an old kernel in case you notice something broken on your new kernel.


On 03/03/15 11:42, Anurudh Tiwari wrote:
Hi,
   
   I am upgrading my machine with new version of os which have newer version of the kernel.
I have to remove my current kernel(which is going to be old kernel in next reboot) after up-gradation because i don&#39;t want to get prompt to choose the kernel at booting time.

I tried few methods:
   1 . Try to remove using command ( sudo apt-get purge uname -r )
    -- but after it gives a pop up (dialog box) to select yes or no.(But i don&#39;t to do that because system is automated, user should not interact with system).

My intention is remove to old kernel at very first time when it reboot(so no prompt will show to select the kernel by grub)..

Please if you have any best solution for this. please share.

Thanks
Anurudh


_______________________________________________
Kernelnewbies mailing list
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>


_______________________________________________
Kernelnewbies mailing list
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>


Anurudh,

In case your only concern is that you should not wait to make a choice of kernel at boot time then you can change the grub.conf file.

In case of older grub, on installing the new kernel the boot entry for it will be on the top.
So make &quot;default=0&quot; and &quot;timeout=0&quot; in your grub.conf file.

In case of grub-2,
You may need to do some more work through grub config files in /etc and then building new grub.cfg file through grub2-mkconfig command.


Another work-around is to remove all the initrd, System.map and vmlinuz files of unwanted kernels from the /boot location and rebuild grub.conf.
 
Hope this helps!

--
Adheer


                                               </div></div>
</blockquote></div><br></div>