Hello,
I’m new Debian user. I was using Fedora, this week i switched to Debian Stretch. I have question how backports work.
I'm using Debian Stretch, i wanted to install VirtualBox. I fallowed instructions on Debian Wiki and i added stretch backports (contrib) to /etc/apt/sources.list
I did apt-get update and apt-get install virtualbox. And virtualbox is installed on my system. But now i have question.
How my system knows when to use backports when not ? To install virtaulbox i didn't specify anything, i just did "apt-get install". So when i do apt-get install chromium how system decides from where to pick that package ? from backports or from regular repo. Virtualbox is understandable, it not exist in regular repo, so it's picked from backports, but what about other packages which exist in both, regular and backports repos ?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Explain me backports situation
Re: Explain me backports situation
You can always check which package is going to be installed with the command:
For example libreoffice:
As you can see I'm using the libreoffice of the stable repository. When I purge libreoffice and try to install it again without specifiying the repository, I would get also the libreoffice from the stable repository. apt chooses the repository based on there priorities (500 for stable and just 100 for backports). Each repository has it's priority which you can check with apt-cache policy. You can modify the priority of a package or a whole repository with apt-pinning. Check
for further information.
Code: Select all
apt-cache policy PACKAGE
Code: Select all
apt-cache policy libreoffice
libreoffice:
Installed: 1:5.2.7-1+deb9u4
Candidate: 1:5.2.7-1+deb9u4
Version table:
1:6.1.3~rc1-1~bpo9+1 100
100 http://ftp.de.debian.org/debian stretch-backports/main amd64 Packages
*** 1:5.2.7-1+deb9u4 500
500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
100 /var/lib/dpkg/status
Code: Select all
man apt_pinning
Have a nice day!
Re: Explain me backports situation
since virtualbox isn't in stable's repos, there's no ambiguity - the backports package is the only 1 to install.
-
- Posts: 300
- Joined: 2015-06-07 14:38
- Has thanked: 11 times
- Been thanked: 33 times
Re: Explain me backports situation
Also, for packages that are in both you need to specify which repo to pull from like so
Code: Select all
apt install -t stretch-backports $PACKAGE