Ubuntu – exclude certain repositories from apt-get upgrade


I have installed percona extra backup by adding their repository. This worked and I was able to install the software successfully.

However now I am trying to run apt-get upgrade and it is trying to update percona. Our client does not wish for this to be included in the regular updates as they wish to control this personally.

Is it possible to exclude a repository when performing this ?

Best Answer

You can comment those repositories in /etc/apt/sources.list by putting # at first of lines. also you can disable them in synaptic > setting > repositories > other software.

more information is available at:

Ubuntu repositories help

you can hold a package using

sudo apt-mark hold package_name

and remove the hold with

sudo apt-mark unhold package_name

and also this link will help:


Related Question