pacco/README.md

34 lines
738 B
Markdown
Raw Normal View History

2024-12-26 00:37:50 +01:00
# Pacco
Pacco is an application for managing and hosting pacman repositories.
## Features
- Multiple repositories
- Multiple architectures
- Web UI for packages
- API for pushing new packages
- Smart mirroring
2024-12-27 04:28:05 +01:00
## Usage
### Package Repo
To use the packages pacco provides, add the following to `pacman.conf`:
```ini
# /etc/pacman.conf
[repo]
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"
```