Verified Commit 36016990 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Describe pacman syncdb database format

parent fc611a53
Pipeline #4765 passed with stage
in 10 seconds
......@@ -21,3 +21,68 @@ Installing is as simple as e.g.
```
pip install pytest-pacman
```
## Pacman syncdb structure
Pacman syncdb databases are usually stored in '/var/lib/pacman/sync' as gzip'd
tar archives. The structure in the archive is as following:
```
$pkgname-$pkgver-$pkgrel/
$pkgname-$pkgver-$pkgrel/desc
$pkgname-$epoch:$pkgver-$pkgrel/
$pkgname-$epoch:$pkgver-$pkgrel/desc
```
The desc file is formatted as following:
```
%FILENAME%
$pkgname-$pkgver-$pkgrel-$arch.pkg.tar.$ext
%NAME%
$pkgname
%BASE%
$pkgbase
%VERSION%
$pkgver-$pkgrel
%DESC%
My awesome package
%CSIZE%
671256
%ISIZE%
3460513
%MD5SUM%
c9f6e74471bce4b07d0f54b75e65b27c
%SHA256SUM%
c5af2664d994671a61b5038c468e6b4dae5dde71785dd687216f67f28df956d3
%URL%
https://archlinux.org
%LICENSE%
BSD
%ARCH%
$arch
%BUILDDATE%
$epoch
%PACKAGER%
John Doe <package@archlinux.org>
%DEPENDS%
zlib
xz
%MAKEDEPENDS%
systemd
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment