monitor a dir and execute reprepro to include new .deb files
Find a file
leafee98 6baca3da57 Listen event move_to and close_write
Since dufs 0.36.0, when uploading files, there will be multi modify
event, one create, one open, and one close_write
2023-09-28 18:58:43 +08:00
apt-repo-updater Listen event move_to and close_write 2023-09-28 18:58:43 +08:00
README.md update README 2023-08-04 16:54:04 +08:00

Apt Repo Updater

This script will monitor an income dir and execute reprepro to include the new .deb files under the income dir.

Usage

Create a directory as WORK_DIR, take work as example, and cd into it.

mkdir work
cd work

Create conf/distributions with content like the follow for reprepro to use, see more at here

mkdir conf
cat << EOF > conf/distributions
Codename: bookworm
Description: An example repository
Architectures: amd64
Components: main
EOF

Start apt-repo-updater

/path/to/apt-repo-updater --work-dir .

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

cp /path/to/a/package.deb /path/to/WORK_DIR/income

Now the apt repository will include the .deb file just copyied. And the .deb file will be deleted after included in the repository.