apt-repo-updater/README.md

43 lines
977 B
Markdown
Raw Normal View History

2023-08-04 02:51:28 +00:00
# Apt Repo Updater
2023-08-04 08:54:04 +00:00
This script will monitor an income dir and execute `reprepro` to
include the new .deb files under the income dir.
2023-08-04 02:51:28 +00:00
# Usage
2023-08-04 08:54:04 +00:00
Create a directory as WORK_DIR, take `work` as example, and cd into it.
```bash
mkdir work
cd work
```
Create `conf/distributions` with content like the follow for `reprepro`
to use, see more at [here](https://manpages.debian.org/jessie/reprepro/reprepro.1.en.html)
```bash
mkdir conf
cat << EOF > conf/distributions
Codename: bookworm
Description: An example repository
Architectures: amd64
Components: main
EOF
```
Start apt-repo-updater
```bash
/path/to/apt-repo-updater --work-dir .
2023-08-04 02:51:28 +00:00
```
2023-08-04 08:54:04 +00:00
Use another terminal to copy a .deb into the INCOME_DIR created
by apt-repo-updater, normally it will be named `income` under the WORK_DIR
```bash
cp /path/to/a/package.deb /path/to/WORK_DIR/income
2023-08-04 02:51:28 +00:00
```
2023-08-04 08:54:04 +00:00
Now the apt repository will include the .deb file just copyied.
And the .deb file will be deleted after included in the repository.