Skip to content

A Rust library to parse and search the Gentoo Linux Portage Package Database

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Komplix/vardbpkg-lib

Repository files navigation

vardbpkg

github crates.io Build maintenance-status

A Rust library to parse and search the Gentoo Linux Portage Package installed database /var/db/pkg.

Usage

use vardbpkg::parse_vardb;
use std::path::Path;

fn main() {
    let packages = parse_vardb(Path::new("/var/db/pkg"));

    for pkg in packages {
        println!("{}/{}: {}", pkg.category, pkg.package, pkg.description);
    }
}

Examples

vardbpkg2json

The library includes an example tool vardbpkg2json that converts the Portage database to JSON format.

cargo run --example vardbpkg2json -- /var/db/pkg

If no directory is specified, it defaults to /var/db/pkg.

License

Licensed under either of

at your option.

About

A Rust library to parse and search the Gentoo Linux Portage Package Database

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages