Debian apt mirror setup


















Ubuntu provides apt-mirror package to synchronize local cache with official Ubuntu repositories, mirror that can be configured through a HTTP or FTP server to share its software packages with local system clients. For a complete mirror cache your server needs at least G free space reserved for local repositories. If your country provides more mirrors you should identify mirror address and do some tests based on ping or traceroute results.

The next step is to install required software for setting up local mirror repository. Install apt-mirror and proftpd packages and configure proftpd as standalone system daemon.

Also you can uncomment or add other source list before clean directive — including Debian sources — depending on what Ubuntu versions your clients use. You can add sources from All you need to do now is, just create path directory and run apt-mirror command to synchronize official Ubuntu repositories with our local mirror. As you can see apt-mirror proceeds with indexing and downloading archives presenting total number of downloaded packages and their size.

As we can imagine GB is large enough to take some time to download. You can run ls command to view directory content. There are many public mirrors which support rsync and that are good to mirror from. Please use one that is close to you network-wise. You should avoid mirroring from any service name that resolves to more than one address such as ftp. Also note that HTTP is the only service that we guarantee to exist on ftp. If you want to mirror using rsync using ftpsync as recommended , we suggest you pick the proper site name for the machine that currently provides the ftp.

How to mirror The recommended method of mirroring is with the ftpsync scriptset, available in two forms:. Do not use your own scripts, and do not just use single-pass rsyncs. Using ftpsync ensures updates are done in a way so that apt does not get confused. In particular, ftpsync processes translations, contents, and other metadata files in an order such that apt is not running into validation errors should a user update the package list while a mirror-run is in progress.

Furthermore, it also produces trace files that contain more information that is useful for determining whether a mirror works, what architectures it carries, and where it syncs from.

Considering the already large size of Debian archive , it might be advisable to only mirror parts of the archive. Public mirrors should carry all suites testing, unstable, etc.

The main archive gets updated four times a day. The mirrors commonly start updating around , , and all times UTC , but these are never fixed times and you should not fixate your mirror on them. Your mirror should update a few hours after one of the main archive mirror pulses. Download: git repository. Sites using it: unofficial Debian ports mini-dak. Pros: Strict checking of what comes in, no database server needed. Cons: Lots of different options and commands, difficult to use for beginners.

The link is rather outdated, but still contains some useful information. Small footprint Cons:? This guides you to setup mini-dinstall on people. With -l , or --list-mirrors , you will get example output from Travis CI U. Ubuntu server :. One problem with netselect is that the fastest download can change over time and you need to run it periodically. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 4 years, 11 months ago.

Active 2 years, 3 months ago. Viewed 25k times. Improve this question.



0コメント

  • 1000 / 1000