Crate apt_cache

Source
Expand description

§apt-cache

A rust crate to interface the apt-cache command.

Warning: Will only work on machines with apt installed!

§Exmaple

use apt_cache::Package;

let git = Package::new("git").unwrap();
let libc = Package::new("libc6").unwrap();
assert!(git.depends().unwrap().contains(&libc))

Modules§

apt

Structs§

Package