Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 997  / 1 Year ago, thu, march 23, 2023, 3:34:53

When a long list of new updates are available, I prefer to use a download manager in another computer to download .deb files of updates. Is there any easy way to get the direct download link of .deb files of all updates (from an update manager) in Ubuntu 12.10?


More From » updates

 Answers
6

On the command line:



apt-get update
apt-get --print-uris upgrade


To extract the URLs from the output:



apt-get --print-uris --yes upgrade | awk '/^'''/ {sub(/^./,"",$1); sub(/.$/,"",$1); print $1, $2}'


This snippet prints the URL for each package followed by the local file name. The local file name is usually the same as in the URL, but occasionally differs (I think only for packages whose version has an epoch).



If you can run wget on the computer with the network connection, use apt-zip Install apt-zip which automates this task: it provides a tool that generates a shell script to perform the download, and a tool to import the downloaded packages. You can use that script even on a Windows machine, with a port of Unix tools such as Cygwin.


[#31578] Friday, March 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
losbu

Total Points: 71
Total Questions: 124
Total Answers: 106

Location: Honduras
Member since Sat, Jul 24, 2021
3 Years ago
losbu questions
Mon, Jan 31, 22, 21:41, 2 Years ago
Tue, Nov 22, 22, 01:27, 1 Year ago
Wed, Jan 25, 23, 00:28, 1 Year ago
Wed, May 11, 22, 08:41, 2 Years ago
;