alpm_sys

Type Alias alpm_db_t

Source
pub type alpm_db_t = u8;
Expand description

A database.

A database is a container that stores metadata about packages.

A database can be located on the local filesystem or on a remote server.

To use a database, it must first be registered via \link alpm_register_syncdb \endlink. If the database is already present in dbpath then it will be usable. Otherwise, the database needs to be downloaded using \link alpm_db_update \endlink. Even if the source of the database is the local filesystem.

After this, the database can be used to query packages and groups. Any packages or groups from the database will continue to be owned by the database and do not need to be freed by the user. They will be freed when the database is unregistered.

Databases are automatically unregistered when the \link alpm_handle_t \endlink is released. @ingroup libalpm_databases