Skip to content

Instantly share code, notes, and snippets.

@khaije1
Last active September 29, 2015 19:27
Show Gist options
  • Save khaije1/1653703 to your computer and use it in GitHub Desktop.
Save khaije1/1653703 to your computer and use it in GitHub Desktop.
debian aptitude setup
# /etc/apt/preferences
#experimental
package: *
pin: release a=experimental
pin-priority: -300
#unstable
package: *
pin: release a=unstable
pin-priority: -1
#testing
package: *
pin: release a=testing
pin-priority: 600
#stable
package: *
pin: release a=stable
pin-priority: 600
#
#replace '$(lsb_release -r)' with the appropriate release, 'squeeze' in my case
echo "deb http://packages.devstructure.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/devstructure.list
wget -O - http://packages.devstructure.com/keyring.gpg | sudo apt-key add -
sudo aptitude update && sudo aptitude install blueprint
#
#pull blueprint.git to $(pwd) ;; only works after ~/.blueprint created (after first blueprint create)
mkdir blueprint-admin
mv ~/.blueprint ./blueprint-admin/.git #to be of use, set bare = false in .git/config
ln -s .blueprint-admin/.git
mv .git ~/.blueprints.git
#
# deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official amd64 NETINST Binary-1 20120930-15:53]/ squeeze main
deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official amd64 NETINST Binary-1 20120930-15:53]/ squeeze main
deb http://ftp.us.debian.org/debian stable main contrib non-free
deb-src http://ftp.us.debian.org/debian stable main contrib non-free
deb http://ftp.us.debian.org/debian squeeze-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian squeeze-updates main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free
deb http://ftp.us.debian.org/debian testing main contrib non-free
deb-src http://ftp.us.debian.org/debian testing main contrib non-free
deb http://ftp.us.debian.org/debian testing-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian testing-updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
deb http://ftp.us.debian.org/debian experimental main contrib non-free
deb-src http://ftp.us.debian.org/debian experimental main contrib non-free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment