update
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2024-12-27 04:28:05 +01:00
parent fcd3d6ffca
commit ac07105bf7
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
6 changed files with 87 additions and 29 deletions

View file

@ -7,3 +7,35 @@ Pacco is an application for managing and hosting pacman repositories.
- Web UI for packages
- API for pushing new packages
- Smart mirroring
## Usage
### Package Repo
To use the packages pacco provides, add the following to `pacman.conf`:
```ini
# /etc/pacman.conf
[repo]
Include = /etc/pacman.d/mirrorlist_pacco
```
Add `/etc/pacman.d/mirrorlist_pacco`:
```
# /etc/pacman.d/mirrorlist_pacco
Server = https://example.com/pkg/$repo/$arch
```
### Add a new package
To upload a package you created with `makepkg` to a repo use curl:
```sh
curl -X POST \
-F "pkg=@./<pkg_name>-<version>-<rel>-<arch>.pkg.tar.zst" \
-F "sig=@./<pkg_name>-<version>-<rel>-<arch>.pkg.tar.zst.sig" \
-F "name=<pkg_name>" \
-F "arch=<arch>" \
-F "version=<version>" \
"https://<domain>/pkg/<repo>/upload"
```