libalpm_misc(3) Library Functions Manual libalpm_misc(3)

libalpm_misc - Miscellaneous Functions


typedef int64_t alpm_time_t
The time type used by libalpm.


enum alpm_caps { ALPM_CAPABILITY_NLS = (1 << 0), ALPM_CAPABILITY_DOWNLOADER = (1 << 1), ALPM_CAPABILITY_SIGNATURES = (1 << 2) }
Enum of possible compile time features.


alpm_pkg_t * alpm_sync_get_new_version (alpm_pkg_t *pkg, alpm_list_t *dbs_sync)
Check for new version of pkg in syncdbs. char * alpm_compute_md5sum (const char *filename)
Get the md5 sum of file. char * alpm_compute_sha256sum (const char *filename)
Get the sha256 sum of file. int alpm_unlock (alpm_handle_t *handle)
Remove the database lock file. const char * alpm_version (void)
Get the version of library. int alpm_capabilities (void)
Get the capabilities of the library.

Various libalpm functions

The time type used by libalpm. Represents a unix time stamp

Enum of possible compile time features.

Enumerator

localization
Ability to download.
Signature checking.

Get the capabilities of the library.

Returns

a bitmask of the capabilities

Get the md5 sum of file.

Parameters

filename name of the file

Returns

the checksum on success, NULL on error

Get the sha256 sum of file.

Parameters

filename name of the file

Returns

the checksum on success, NULL on error

alpm_pkg_t * alpm_sync_get_new_version (alpm_pkg_t * pkg, alpm_list_t * dbs_sync)

Check for new version of pkg in syncdbs. If the same package appears multiple dbs only the first will be checked

This only checks the syncdb for a newer version. It does not access the network at all. See alpm_db_update to update a database.

Remove the database lock file.

Parameters

handle the context handle

Returns

0 on success, -1 on error

Note

Safe to call from inside signal handlers.

Get the version of library.

Returns

the library version, e.g. '6.0.4'

Generated automatically by Doxygen for libalpm from the source code.

libalpm