Crates.io | pkg_manager |
lib.rs | pkg_manager |
version | 0.1.1 |
source | src |
created_at | 2022-04-12 20:01:18.230055 |
updated_at | 2022-04-12 20:02:22.196614 |
description | Wrapper to Linux Package Managers |
homepage | |
repository | |
max_upload_size | |
id | 566602 |
size | 6,549 |
pkg manager
is a crate that provides a user friendly wrapper to linux package managers.
there are currently 2 supported package managers, apt
and pacman
with this crate, you can install and remove packages!
use pkg_manager::PkgWrapper;
fn main() {
let pkg = PkgWrapper::new(); //will autodetect your package manager
}
use pkg_manager::PkgWrapper;
fn main() {
let pkg = PkgWrapper::new(true).unwrap(); //will autodetect your package manager, takes a boolean as argument (no_confirm)
pkg.install_pkg("pkgname").unwrap();
}
use pkg_manager::PkgWrapper;
fn main() {
let pkg = PkgWrapper::new(true).unwrap(); //will autodetect your package manager, takes a boolean as argument (no_confirm)
pkg.uninstall_pkg("pkgname").unwrap();
}