To update my server I use apt-get upgrade
.
But when there are kernel updates I always need to do apt-get install linux-....
because apt-get update
does not install them.
Is there a way I can tell it to install those too? I tried -f but it does not work.
So, with regard to the comments: Sorry, you were right, I was completely mis-reading what apt-get was telling me (and I'm using the English version! :)).
After a little research, what you probably want to use is
aptitude safe-upgrade
, which does install new kernels. Really! I double checked! :)You should probably prefer
aptitude
in general toapt-get
anyway, unless you specifically need something inapt-get
.you're looking for
if you want to install
aptitude
then please go ahead - but it has its dependencies and imho you can get away quite well without it - especially if you want to keep your server install lean(er).When you run
sudo apt-get upgrade
it tells you about packages that weren't upgraded in the following way:So, if you are connected using an ssh terminal, it's just a matter of copy+paste to enter the following command:
which upgrades just the packages that were kept back. Use
uname -r
to display the kernel version before and after the reboot (necessary to refresh the running kernel) and don't forget to runpurge-old-kernels
after the reboot.