Re: I want to remove my current kernel after upgradtion of new kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 03, 2015 at 05:12:44PM +0530, 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'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'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

I believe you can do `apt-get -y ...` which will confirm any prompts that the user would normally be given.

Daniel

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux