A CLI tool to manage mirror sources for various Linux distributions.
Project description
Mirror Man
Mirror Man is a command-line tool to manage software mirror sources for your Linux distribution. It simplifies the process of switching between different mirror sources, helping you to get faster package downloads.
Features
- Backup your current mirror sources before making changes.
- Switch to Aliyun mirror sources for Ubuntu and CentOS.
- Planned support for Huawei Cloud and other mirror sources.
- Dynamic versioning for easier maintenance.
- Uses
uvfor faster builds and dependency management.
Installation
Using pip
pip install mirror-man
Using uv (Recommended)
uv pip install mirror-man
Development Installation
To install the package in development mode using uv:
uv pip install -e .
Usage
To switch to the Aliyun mirror source, run the following command:
mirror-man aliyun
This will automatically detect your operating system and configure the appropriate Aliyun mirror source. Your existing sources file will be backed up with a timestamp.
Version
To check the version of mirror-man:
mirror-man --version
Supported Operating Systems
- Ubuntu 22.04
- Ubuntu 24.04
- CentOS 7
Development
Using Makefile
The project includes a Makefile to simplify common development tasks:
make clean: Remove build artifacts.make build: Build the package (sdist and wheel).make install: Install the package in the current environment.make uninstall: Uninstall the package from the current environment.make dev-install: Install the package in editable mode for development.make publish: Publish the package to PyPI (requires twine).
These commands use uv for faster builds and dependency management.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mirror_man-0.2.0.tar.gz.
File metadata
- Download URL: mirror_man-0.2.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb46ef38e5933b8f663e5894dd705de4106aad3348fa1bb76e46ce315233743c
|
|
| MD5 |
39aff08ebf1fc8e9843e61177ea3260d
|
|
| BLAKE2b-256 |
92f9d22fd57c7b319a9084e42b4a0cd8d6d96422ac994e2b67b23b1c89b90971
|
File details
Details for the file mirror_man-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mirror_man-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d47cd4550d6964f5af0609ce7f49a13cdcf8008bf8ff99ffc2bdf0da144cae17
|
|
| MD5 |
b4aff12ce9365e1f780204b213c43de9
|
|
| BLAKE2b-256 |
05c233195654f147598d01d4349a41081ff1c8cfea5986d9bcc79b437f82bd10
|