S
S
Sergey Vyvolokin2016-01-10 10:08:12
linux
Sergey Vyvolokin, 2016-01-10 10:08:12

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

I install the package from the test version like this ->
apt-get -t unstable install "имя пакета"
But when I want to update all the stable packages in the system, it wants to install all the packages from the SID branch.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Oleg Tsilyurik, 2016-01-10
@Olej

there was a question how to install packages from different versions from stable and not stable versions of packages.

Linux package systems (not only Debian, but also RPM distributions) are not designed to pull packages from wherever you want ... "play here, don't play here - they wrapped herring here" ;-)
Then install the latest versions of any projects - but from the source.
Package systems have been developed and tweaked over the years for just what you want to overcome so that packages install from a consistent subset.

O
OnYourLips, 2016-01-10
@OnYourLips

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.
If you want certain packages of certain versions, then include third-party repositories (as you have done with virtualbox), designed for your system, and not the unstable branch.

A
Adamos, 2016-01-10
@Adamos

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.

L
lovecraft, 2016-01-11
@lovecraft

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 question

Ask a Question

731 491 924 answers to any question