Expand description
§Alpm
See Alpm
as the base type to interact with alpm.
§alpm.rs - rust bindings for libalpm
alpm.rs provides complete, safe, ergonomic bindings to the libalpm API, the package management library used by pacman and other tools.
§Features
- mtree - enables the alpm_pkg_mtree_* functions
- generate - generate the raw alpm-sys bindings at build time
- checkver - check that the version of libalpm installed is compatible with alpm.rs
- git - target the git master API
- static - statically link to libalpm
Note: checkver does not work with the git feature. You can instead use the generate feature to ensure alpm.rs builds against a compatible libalpm version.
§libalpm compatibility
alpm.rs always targets the latest version of libalpm. It may also support previous versions if the API was not changed.
alpm.rs also supports the pacman git master via the git feature.
Currently alpm.rs supports libalpm v15.x.x.
Note: When using the git feature, alpm.rs is updated against the libalpm git master as commits happen. As the git version is not considered stable software, this is done without bumping the major version.
§Documentation
This crate just provides bindings for libalpm and hence does not document libalpm. You can find documentation for libalpm in the libalpm (3) man page or in alpm.h.
There are also examples on how to use the alpm crate in alpm/examples.
§alpm-sys
This repo also contains the alpm-sys crate, providing raw bindings for libalpm. Although you probably just want to use the alpm crate instead.
Macros§
- log_
action - Logs a formatted message.
Structs§
- AddError
- Alpm
- Alpm
List - Alpm
List Mut - AnyDownload
Event - AnyEvent
- AnyQuestion
- Backup
- Capabilities
- Change
Log - Checksum
Error - Commit
Error - Conflict
- Conflict
Question - Corrupted
Question - Database
Missing Event - Db
- DbMut
- Dep
- DepMissing
- Depend
- Depend
Missing - Download
Event Completed - Download
Event Init - Download
Event Progress - Download
Event Retry - File
- File
Conflict - File
List - Group
- Hook
Event - Hook
RunEvent - Import
KeyQuestion - Install
Ignorepkg Question - Into
Iter - Iter
- Loaded
Package - LogLevel
- OptDep
Removal Event - Owned
Conflict - Owned
File Conflict - Package
- Package
Operation Event - Package
Validation - Pacnew
Created Event - Pacsave
Created Event - PgpKey
- Pkg
- PkgDownload
Event - PkgRetrieve
Event - Prepare
Error - RawDlCb
- RawEvent
Cb - RawFetch
Cb - RawLog
Cb - RawProgress
Cb - RawQuestion
Cb - Release
Error - Remove
Pkgs Question - Replace
Question - Scriptlet
Info Event - Select
Provider Question - SigLevel
- SigList
- SigResult
- Signature
- Signature
Decode Error - Trans
Flag - Usage
- Ver
- Version
Enums§
- Commit
Data - DepMod
- DepMod
Ver - Download
Event - Download
Event Type - Download
Result - Error
- Event
- Event
Type - Fetch
Result - File
Conflict Type - Hook
When - Match
- Package
From - Package
Operation - Package
Reason - Prepare
Data - Progress
- Question
- Question
Type - SigStatus
- SigValidity