Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 1099  / 2 Years ago, sat, august 27, 2022, 11:54:31

When I run apt update, apt reaches out to its repositories and downloads index files. How can I see the exact URL for every downloaded file?


Here's an example:


apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
108 packages can be upgraded. Run 'apt list --upgradable' to see them.

Those apt update response lines look like URLs, but they're translated behind the scenes into something else. What is that "something else"? I'm looking for the full, precise URL of every file that apt is downloading with this command.


A little background: I'm trying to proxy the artifacts.elastic.co packages. I can't find the right path to use. The artifacts.elastic.co refuses to show the contents of directories, so I'm unable to use a web browser to look around for the correct magic path/URL.


Note: even though my example uses, apt, using apt-get or any other tool which shows me the full URL would be an acceptable answer.


More From » apt

 Answers
6

Why not just ask apt or apt-get to show the URIs by adding the option --print-uris:


apt-get --print-uris update

[#536] Sunday, August 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
impisaso

Total Points: 423
Total Questions: 106
Total Answers: 104

Location: Virgin Islands (U.S.)
Member since Tue, Feb 2, 2021
3 Years ago
;