<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi,<br>   <br></div>   I am upgrading my machine with new version of os which have newer version of the kernel.<br>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.<br></div><br></div>I tried few methods:<br></div>   1 . Try to remove using command ( sudo apt-get purge uname -r )<br></div>    -- 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).<br><br></div>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)..<br><br></div>Please if you have any best solution for this. please share.<br><br></div>Thanks<br></div>Anurudh<br></div>