The release of the apt-mirror2 4 toolkit has been published, designed for setting up local mirrors of apt repositories for Debian and Ubuntu-based distributions. Apt-mirror2 can serve as a transparent replacement for the apt-mirror utility, which has not been updated since 2017. The key difference from apt-mirror2 is the use of Python with the asyncio library (the original apt-mirror code was written in Perl), as well as the implementation of integrity checks at all stages of mirroring to prevent disruption of the mirror's functionality. The code is released under the GPLv3 license.
In the new version:
- Support for apt-mirror compatible file lists (ALL, NEW, MD5, SHA256, SHA512) has been implemented.
- Support for Prometheus metrics for monitoring has been added.
- Integrity checks of release files have been added along with retry attempts for downloading in case of failures.
- Improved prediction of downloaded data sizes.
- Logging has been enhanced.
- Issues with creating FTP server mirrors have been resolved.
Source: opennet.ru
