Can I 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 ?

2

1 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:

Pinning

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like