Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How might one download the entire directory http://ports.ubuntu.com/ubuntu-ports to an external drive using a Windows computer? After a good deal of looking, no solution has been found.

The intention here is to set up an exact mirror of http://ports.ubuntu.com/ubuntu-ports on an intranet web server. This should eliminate any need to get individual packages and enable all of the machines on said intranet to update themselves automatically any time a newer version of http://ports.ubuntu.com/ubuntu-ports is copied to the web server. Storage space is not an issue.

My organization works on a closed network with several different kinds of computers running Ubuntu. This causes headaches when installing new deb packages. Currently, a computer that isn't attached to the intranet has to be used to manually download deb packages one by one, then copy the packages to an external drive, after which they're moved to our intranet's web server (currently xampp, soon to be migrated to IIS). The DNS is sent to map http://ports.ubuntu.com to the IP address of our web server and use apt-get as normal to install the packages without having to change the /etc/apt/sources.list file on every one of the Ubuntu machines.

Apt-offline does not seem to work as an alternative. After copying the sig file from a Windows computer, the next step eluded us. Besides, this solution isn't ideal, as it would need to be done on more than 50 machines of various makes and models.

Finally, is any of this possible for other repositories or directories such as the one used by snap (the snap store)?

What I have tried:

Apt-offline does not seem to work as an alternative. After copying the sig file from a Windows computer, the next step eluded us. Besides, this solution isn't ideal, as it would need to be done on more than 50 machines of various makes and models.
Posted
Updated 7-Sep-23 5:30am
v2
Comments
Dave Kreskowiak 6-Sep-23 19:08pm    
Well, first you contact the owners of that site and ASK PERMISSION to do that. They might even give you something that's a better solution. Why? Because just blindly copying the entire contents of their server can very easily get you slapped with a "cease and desist" order.

1 solution

This may help to achieve what you want: Mirrors - Ubuntu Wiki[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900