No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-22 15:12:26 +01:00
.gitignore Add .gitignore 2026-11-10 04:46:14 +01:00
apt.py Fix Missing imports 2026-11-22 15:12:26 +01:00
example.mirror.toml Add example configuration for mirror setup 2026-11-10 04:46:05 +01:00
main.py Fix package route to use debian/pool prefix and ensure package tracking occurs after file download completion 2026-11-22 12:36:06 +01:00
README.md Add basic README 2026-11-22 15:11:15 +01:00
setup-db.py Add packages_tracked table definition to db setup script. 2026-11-22 12:59:15 +01:00

Package Mirroring Tool

This is a simple tool for creating various partial package mirrors.

Setup

Copy example.mirror.toml to mirror.toml and adjust the options to your needs.

Architecture

apt mirror

The Metadata is Parsed from the upstream Mirror and stored in a MySQL database. Packages are added to a tracking list once they're retrieved at least once. Tracked packages are cached locally.

MySql Scheme: debian

distros

id distro amd64 i368 arm64 armhf riscv64 armel loong64 ppc64el s390x
INT VARCHAR(255) BOOLEAN BOOLEAN BOOLEAN BOOLEAN BOOLEAN BOOLEAN BOOLEAN BOOLEAN BOOLEAN
AUTO_INCREMENT
PRIMARY KEY
NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL

Project Structure

├── apt.py      # functions and classes for debian style mirrors
├── main.py     # Flask app
├── setup-db.py # DB setup script
└──             # 

AI Declaration

Very bad AI inline suggestions(qwen2.5-coder-0.5b) were used in this Project, also AI(deepseek-v4.1-flash) was used for researching and understanding concepts.