Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make the switch to nginx from apache, but I am not very experienced with bash so I am having some trouble.

I am trying to install on the latest stable version of nginx, PHP 5.3.10, and MySQL 5.5 on Debian 6 squeeze.

The default repos contain outdated versions of the products, so I tried to install it all from repo. The problem is that some of the products dotdeb has, so does the default debian repo and it prompts me to install the old versions the debain repo has and not the one dotdeb has. I tried to comment out the debian repos to leave me with just the dotdeb ones, but now I can not install the requirements that the various products PHP / MySQL need (since dotdeb doesn't include them in their repos).

Is there a way to specify I want to download something from a certain repo, and to install the requirements from another repo?

share|improve this question
Please post exactly the commands you use and the output – Gabor Vincze Mar 10 '12 at 15:01
up vote 1 down vote accepted

I've figured out how to do it.

Just add

Package: *
Pin: origin ""
Pin-Priority: 999



This will make anything on dotdeb the highest prority

share|improve this answer

Perhaps you should try :

apt-get install package=version

to select the latest version of the package in the dotdeb repo. Dependencies should be correctly resolved too.

share|improve this answer

Your Answer


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.