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.

This question already has an answer here:

Consider a situation like this:

I am going to install Ubuntu on an UEFI system (dual boot with Windows) where I need to install boot-repair. When I run sudo apt-get update it will update cache for all the repos. I need to update only a particular ppa (yannubuntu/boot- repair) to install boot-repair.

Many times I had to update all the repos when I think updating a single ppa is enough.

Questions

  1. Is there any problem/harm if I update only one repo? Can it affect the software installation in any way?
  2. If the answer is No then how could I update a particular repo?
share|improve this question

marked as duplicate by Braiam, guntbert, Warren Hill, Eric Carvalho, Jorge Castro Nov 25 '13 at 15:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 1 down vote accepted

Is there any problem/harm if I update only one repo? Can it affect the software installation in any way?

No, well yes, if your package requires a version that is only available from certain repository apt will refuse to install the package.

If the answer is No then how could I update a particular repo?

You must create the .list file where the description of the repository will be, ie:

deb http://download.virtualbox.org/virtualbox/debian raring contrib

Then save it somewhere. Now you only have to do:

sudo apt-get update -o Dir::Etc::sourcelist="mysources.list"

Done.

share|improve this answer

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