Crate librpm[][src]

Rust binding for librpm: the RPM Package Manager library

This crate contains idiomatic Rust bindings which aim to expose a safe API to librpm. The low-level unsafe bindings are located in the librpm-sys crate, which is automatically generated by bindgen.

Make sure to call librpm::read_config to load rpmrc configuration.

See the librpm::db::Database type for examples of how to interact with the RPM database.

Re-exports

pub use db::Index;
pub use error::Error;
pub use license::License;
pub use macro_context::MacroContext;
pub use package::Package;
pub use version::Version;

Modules

config

RPM configuration (i.e. rpmrc) Support for configuring RPM, i.e. reading configuration files

db

RPM database access RPM database access

error

Error types (defined first due to macros) librpm error types

license

Package licenses RPM licenses

macro_context

Macros are RPM's configuration system RPM macros are configuration parameters that have largely replaced the previous rpmrc system.

package

RPM packages RPM package type: represents .rpm files or entries in the RPM database

version

Package versions RPM versions