Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Question

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

1 Answer 1

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

 
discard

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.