S
S
shledon2022-01-21 10:55:29
linux
shledon, 2022-01-21 10:55:29

What exactly happens when you type apt install?

What exactly happens after typing apt install "package"? how the requested package is searched, etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2022-01-21
@shledon

the package is searched in the downloaded repository listings (updated by apt update).
the cache is in /var/lib/apt/lists.
from all matching entries, the entry with the highest Version value is selected
from this entry, a link to the package is taken and downloaded.
after which the package is passed to dpkg for installation.

S
SOTVM, 2022-01-21
@sotvm

man strace
is already "chewing at a lower level" of what exactly is happening, is that what
you wanted to know?
if you don't need "system jungle", then the answer above will satisfy you :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question