libalpm_misc(3)
okay bestie, welcome to libalpm_misc(3) from the Library Functions Manual β the miscellaneous-functions page, and the way itβs literally just a little grab bag of libalpm helpers is highkey iconic π
β¨
πΈ NAME πΈ
libalpm_misc β Miscellaneous Functions
- Various libalpm functions
π¦ SYNOPSIS π¦
Okay so hereβs the shape of everything, no cap π«Ά
π Typedefs π
typedef int64_t alpm_time_tβ The time type used by libalpm.
π§ Enumerations π§
enum alpm_caps { ALPM_CAPABILITY_NLS = (1 << 0),
ALPM_CAPABILITY_DOWNLOADER = (1 << 1), ALPM_CAPABILITY_SIGNATURES =
(1 << 2) }
Enum of possible compile time features.
π₯ Functions π₯
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.int alpm_sandbox_setup_child (alpm_handle_t *handle, const char *sandboxuser, const char *sandbox_path)β Drop privileges by switching to a different user.
π Detailed Description π
Various libalpm functions β thatβs the whole plot, and honestly it ate β¨
β¨ Typedef Documentation β¨
π«Ά typedef int64_t alpm_time_t π«Ά
The time type used by libalpm. Represents a unix time stamp
π Enumeration Type Documentation π
π
enum alpm_caps π
Enum of possible compile time features.
π Enumerator π
ALPM_CAPABILITY_NLSβ localizationALPM_CAPABILITY_DOWNLOADERβ Ability to download.ALPM_CAPABILITY_SIGNATURESβ Signature checking.
π Function Documentation π
π₯ int alpm_capabilities (void ) π₯
Get the capabilities of the library.
Returns: a bitmask of the capabilities
π char * alpm_compute_md5sum (const char * filename) π
Get the md5 sum of file.
Parameters:
filenameβ name of the file
Returns: the checksum on success, NULL on error
π char * alpm_compute_sha256sum (const char * filename) π
Get the sha256 sum of file.
Parameters:
filenameβ name of the file
Returns: the checksum on success, NULL on error
π¦ int alpm_sandbox_setup_child (alpm_handle_t * handle, const char * sandboxuser, const char * sandbox_path) π¦
Drop privileges by switching to a different user.
Parameters:
handleβ the context handlesandboxuserβ the user to switch tosandbox_pathβ if non-NULL, restrict writes to this filesystem path
Returns: 0 on success, -1 on failure
π 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.
π int alpm_unlock (alpm_handle_t * handle) π
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.
β const char * alpm_version (void ) β
Get the version of library.
Returns: the library version, e.g. "6.0.4"
π Author π
Generated automatically by Doxygen for libalpm from the source code.
okay bestie, we made it π«Ά β footer shoutout: source/version libalpm, page libalpm_misc(3), and the date is not printed anywhere, so weβre respectfully calling it timeless π
β¨
π¦ where this page comes from
- epel 10: libalpm-devel 7.0.0-5.el10_2 Β· GPL-2.0-or-later
- fedora 43: libalpm-devel 7.0.0-5.fc43 Β· GPL-2.0-or-later
- fedora 43: libalpm-devel 7.0.0-5.fc43 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms