Initial commit
This commit is contained in:
28
README.md
Normal file
28
README.md
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user