install software from stable, testing, unstable, experimental [raspberrypi,debian,ubuntu]

based on:
http://serverfault.com/questions/22414/how-can-i-run-debian-stable-but-install-some-packages-from-testing
https://www.canox.net/2016/05/debian-pakete-aus-sid-installieren/

edit the source.list file:
sudo nano /etc/apt/sources.list

#
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

#testing
deb http://ftp.us.debian.org/debian/ stretch-updates main
deb-src http://ftp.us.debian.org/debian/ stretch-updates main
deb http://http.debian.net/debian/ stretch main contrib non-free

#stable.list
#deb http://ftp.de.debian.org/debian/ stable main contrib non-free
#deb-src http://ftp.de.debian.org/debian/ stable 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
#testing.list
deb http://ftp.de.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.de.debian.org/debian/ testing 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
#unstable.list
deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
#experimental.list
deb http://ftp.de.debian.org/debian/ experimental main contrib non-free
deb-src http://ftp.de.debian.org/debian/ experimental main contrib non-free

#backport.list
deb http://ftp.de.debian.org/debian/ jessie-backports main contrib non-free

after adding:
test for clean:
sudo apt-get -s clean

clean:
sudo apt-get clean

update:
sudo apt-get update

install from stable:
sudo apt-get install some_program

install from testing:
sudo apt-get -t testing install some_program

install from unstable:
sudo apt-get -t unstable install some_program

install from experimental:
sudo apt-get -t experimental install some_program

install from backport:
sudo apt-get -t jessie-backports install some_program

from sid:
sudo nano /etc/apt/sources.list

deb http://ftp.de.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib

sudo nano /etc/apt/apt.conf.d/99myDefaultRelease

APT::Default-Release "jessie";

sudo apt update

sudo apt search -t sid paketname
sudo apt install -t sid paketname

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s