#interface #command #apt

nightly apt-cache

A rust crate to interface the apt-cache command

4 releases

0.1.3 Feb 1, 2020
0.1.2 Feb 1, 2020
0.1.1 Jan 31, 2020
0.1.0 Jan 31, 2020

#38 in #apt

MIT license

7KB
133 lines

apt-cache Build Status

Rust crate to interface the apt-cache command.


lib.rs:

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))

Dependencies

~0.4–1MB
~24K SLoC