29 lines
460 B
Markdown
29 lines
460 B
Markdown
# 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
|
|
|