Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using a Linux kernel from a PPA on Ubuntu Server.

Ideally should the PPA kernel have a higher version number, but I don't trust it.


Is it possible to have the kernel excluded from being updated when doing apt-get upgrade?

Or even better: never overwrite the PPA kernel with an Ubuntu kernel?

share|improve this question
up vote 3 down vote accepted

You can prevent any package from getting upgraded using the following command:

$ echo "package-name hold" | sudo dpkg --set-selections

You can include the package again in the upgrade list using:

$ echo "package-name install" | sudo dpkg --set-selections

To check the status, you can use

$ dpkg --get-selections | grep package-name
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.