Answer the question
In order to leave comments, you need to log in
Installing Debian packages?
Hello, there was a question how to install packages from different versions from stable and not stable versions of packages. So that the system remains stable, and some packages are steadily updated from the test version.
Here is an example /etc/apt/sources.list.
# Основное хранилище пакетов и обновления для основного хранилища пакетов.
deb http://ftp.debian.org/debian/ jessie main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb http://ftp.debian.org/debian/ jessie-proposed-updates contrib main non-free
# Основное хранилище пакетов и обновления для основного хранилища пакетов.
deb http://ftp.debian.org/debian/ sid 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
# Паравиртуализатор VirtualBox
deb http://download.virtualbox.org/virtualbox/debian jessie contrib non-free
# Backports
deb http://http.debian.net/debian jessie-backports main non-free contrib
apt-get -t unstable install "имя пакета"
Answer the question
In order to leave comments, you need to log in
there was a question how to install packages from different versions from stable and not stable versions of packages.
Hello, there was a question how to install packages from different versions from stable and not stable versions of packages.No way. You will end up with broken circular dependencies sooner or later.
A new version of Apache2 from the repositories may well want a new version of glibc, and that one wants a new kernel version. So you will inevitably turn the system into unstable. It's easier then to install Ubuntu Server - at least more or less run-in versions of packages are fixed there.
And it’s not worth having the freshest on the server at all, you quit these Windows habits. If your server is somehow dear to you, you are unlikely to want to provide it for beta testing of the same Apache.
This is done via APT preferences - https://wiki.debian.org/AptPreferences
Each repository has its own weight, with preferences you can assign a high weight to jessie and a low sid, and apt-get will pull new versions from jessie if they are there is. You can make preferences for a separate package. Still, preferences are a hack, and sooner or later you will run into a situation where apt-get update will break your system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question