Initial commit

This commit is contained in:
Matthew Howle
2021-08-07 12:22:04 -04:00
commit 5a528d8de8
3 changed files with 592 additions and 0 deletions

28
README.md Normal file
View File

@@ -0,0 +1,28 @@
# pkgsync
pkgsync synchronizes packages between two servers.
### Usage
On the reference server:
```shell
pkgsync export packages.json
```
On the outdated server:
```shell
# yum
pkgsync import packages.json | xargs yum --assumeyes install
# apt
pkgsync import packages.json | xargs apt -y install
```
### Caveats
- Servers must be the same Linux distribution
- Servers must be the same major release
- Repositories must be the same between servers