Skip to main content

Module db

Module db 

Source
Expand description

The pacman local database.

Each installed package is a directory <name>-<version> under var/lib/pacman/local, holding a desc file of %SECTION% blocks and a files file listing what the package owns. Both are plain text. Dependency names carry version constraints and soname suffixes (glibc>=2.39, libfoo.so=1-64); only the name is kept, since the sysroot is pinned and what is installed is what there is.

Structs§

Database
Every installed package, with indexes by provided name and by file.
Package
One installed package.

Constants§

LOCAL_DB
Where the database sits under a root.

Functions§

dependency_name
The bare name of a dependency, provision or optional dependency entry: glibc>=2.39 is glibc, libfoo.so=1-64 is libfoo.so, and mesa: OpenGL support is mesa.