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 looking for a script that would enable debian backports for debian squeeze, something that I could just run and will enable me to install new packages like a decent version of mercurial after, just by doing apt-get upgrade mercurial.

share|improve this question
up vote 0 down vote accepted

Read this and put the instructions there in a script. What's the problem with it?

echo "deb squeeze-backports(-sloppy) main" >> /etc/apt/sources.list
apt-get update

And then you can do

 apt-get -t squeeze-backports install "mercurial"
share|improve this answer
Is there a way to activate mercurial from backports so you can install it without having to specify the -t ? – sorin Apr 19 '13 at 12:58

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.