Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 exlcude a repository when performing this ?

share|improve this question
    
Can you use synaptic and disable the percona repository? Or mark all upgrade and deselect percona? –  Victor Apr 5 '13 at 14:23
    
I need to leave the repository active as the client will be upgrading it them selves from the repository. I was hoping there was a switch i can use when running apt-get upgrade to exclude the repository ? –  Tim Lassie Freeborn Apr 5 '13 at 14:40
add comment

1 Answer 1

up vote 2 down vote accepted

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

share|improve this answer
    
This would work but i would then need to uncomment it afterwards as the client requires the repository to be active for when they choose upgrade it. –  Tim Lassie Freeborn Apr 5 '13 at 14:42
    
I don't understand!! you should have repo to upgrade and uncomment/uncheck to deactivate it. what do you really want? –  Hojat Taheri Apr 5 '13 at 14:44
    
I was hoping to find a switch i could use with apt-get upgrade to exclude the repository from being included so i can apply security patches while not upgrading anything pulled from that repo while leaving it present so the customer can perform the updates themselves. –  Tim Lassie Freeborn Apr 5 '13 at 15:21
    
Yes that is exactly what i was looking for :-) –  Tim Lassie Freeborn Apr 5 '13 at 18:10
add comment

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.