A
A
Alexander Lychangin2016-06-17 21:40:36
linux
Alexander Lychangin, 2016-06-17 21:40:36

How does apt-get work and select the repository from which to install a package?

Hello, my problem is the following. The distribution is based on debian 7 wheezy, the repositories are all added to /etc/apt/sources.list , the first repository is the distribution itself, next comes from the debian repository, and so on.
Let's say I want to update the system, apt-get upgrade, it tells me that everything is OK, there is nothing new, but as soon as I put the debian repository on the first line in the sources.list file, when updating, it immediately finds all new packages.
Therefore, I can assume that all these packages have the latest version in the original repository. How can I set up the list of repositories so that it finds the latest packages from all the repositories in the list?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Armenian Radio, 2016-06-17
@gbg

It's a bad idea to pull packages from different repositories. The way you found (rearrange the repositories) is the correct one.
If you collect packages from everywhere, you can get a glucodrome from incompatible packages instead of a working system.

S
sim3x, 2016-06-17
@sim3x

https://wiki.debian.org/AptPreferences

I
Igor Nikolaev, 2016-06-17
@nightvich

You don't have a mention of the update command.
In your case, it doesn't matter what the sequence of the repositories is.
The most recent stable versions are installed by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question