Skip to content

Instantly share code, notes, and snippets.

@timofurrer
Last active August 29, 2015 14:10
Show Gist options
  • Save timofurrer/24aedd54ed55452462df to your computer and use it in GitHub Desktop.
Save timofurrer/24aedd54ed55452462df to your computer and use it in GitHub Desktop.
debian: install vim from testing when using stable

debian: install vim from testing when using stable

Add the following line to /etc/apt/sources.list:

deb http://ftp.ch.debian.org/debian testing main

Or execute the following command (as superuser):

echo "deb http://ftp.ch.debian.org/debian testing main" >> /etc/apt/sources.list

And add the following lines to /etc/apt/preferences:

Package: *
Pin: release a=stable
Pin-Priority: 990

Package: *
Pin: release a=testing
Pin-Priority: 900

Now you can update your apt cache and install vim from the debian testing repository:

 apt-get update
 apt-get -t testing install vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment