Module librpm::db[][src]

RPM database access RPM database access

The database used is whichever one is configured as the _dbpath in the in the global macro context. By default this is unset: you will need to call librpm::config::read_file(None) to read the default "rpmrc" configuration.

Example

Finding the "rpm-devel" RPM in the database:

use librpm::Index;

librpm::config::read_file(None).unwrap();

let mut matches = Index::Name.find("rpm-devel");
let package = matches.next().unwrap();

println!("package name: {}", package.name);
println!("package summary: {}", package.summary);
println!("package version: {}", package.version);

Structs

Iter

Iterator over the RPM database which returns Package structs.

Enums

Index

Searchable fields in the RPM package headers.

Functions

find

Find installed packages with a search key that exactly matches the given tag.

installed_packages

Find all packages installed on the local system.