The HPE physical server has Ubuntu 22.04 installed and the server is running offline.
Due to offline environment, the package cannot be installed and the latest package deb file must be hardened with tar in advance. (All files below)
https://packages.ubuntu.com/lunar/allpackages
If I download the above package files one by one, I feel faint, so is there any way to download all packages efficiently?
As a thought, I tried to bring it from the repository site with the wget command, but it didn't work because I downloaded the package index.html instead of downloading it.
https://mirrors.edge.kernel.org/ubuntu/
I would appreciate it if you could let me know if there is any efficient way.
ubuntu
Ubuntu/Debian provides the apt-mirror command to mirror the package repository.
Copy the package locally and make it accessible to the client via HTTP (web server).You will need some disk space to download everything.
Ubuntu provides an apt-mirror package to synchronize the local cache with the official Ubuntu repository.You can configure and share mirrors through an HTTP or FTP server.Software package containing local system clients.
The server must have at least 120G free space reserved for the local repository for full mirror cache.
reference:
Configure the local repository using "apt-mirror" on Ubuntu and Debian systems
How To Create A Local Debian/Ubuntu Mirror With apt-mirror
© 2024 OneMinuteCode. All rights reserved.