An Arch Linux tool based on git for the maintenance of /etc files.
Project description
etcmaint uses Git to merge the /etc configuration files installed by pacman that have been customized.
The customized configuration files in /etc are detected by etcmaint and tracked in the master branch of the Git repository. See Handling Config Files for when such a detection occurs. After a pacman upgrade, etcmaint uses Git to merge the customized configuration files with the changes introduced by the upgrade.
The configuration files in /etc that are not installed by pacman, for example netctl profiles, can be manually committed to the master branch. Changes made to those files will then be also tracked by etcmaint.
etcmaint uses a master-tmp temporary branch, that stems from master, to commit all the changes made during a session. This temporary branch is merged back into master only when the session is finalized, that is when the customized configuration files that have been merged by Git are copied back to /etc.
The changes in the current etcmaint session before finalization can be printed with:
$ git diff master...master-tmp
Install
Install etcmaint from PyPi:
$ python -m pip install etcmaint
Usage
$ etcmaint [--version] {help,create,update,sync,diff} [options]
Documentation at GitLab Pages.
Project details
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
File details
Details for the file etcmaint-0.8.tar.gz
.
File metadata
- Download URL: etcmaint-0.8.tar.gz
- Upload date:
- Size: 264.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4488f560b9376b52582d29ad6983eba15e14a0e4a9aa2139a521061143625646 |
|
MD5 | e74aba44a382b709704173e03d317b4a |
|
BLAKE2b-256 | c30a98eedfe806b3d43643ffe705e936cabae8a8ee600d79348c75c1dd9b953a |
File details
Details for the file etcmaint-0.8-py3-none-any.whl
.
File metadata
- Download URL: etcmaint-0.8-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483758b8a92ccaa40ce4e053c107f45e93b1107e0eb5e8ebbc9e9b3a32216220 |
|
MD5 | 9980636c11b1bb5398ee000bf2008e72 |
|
BLAKE2b-256 | 263f7a7d3d4c793a29377ec36297721d4ba4bb53f48328370827b074bff3f4f8 |