pkg_manager 0.1.1

Wrapper to Linux Package Managers
Documentation
  • Coverage
  • 0%
    0 out of 15 items documented0 out of 11 items with examples
  • Size
  • Source code size: 8.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Pietro222222

Pkg Manager

pkg manager is a crate that provides a user friendly wrapper to linux package managers.

Support Package Managers

there are currently 2 supported package managers, apt and pacman

what can i do?

with this crate, you can install and remove packages!

Starting

use pkg_manager::PkgWrapper;
fn main() {
    let pkg = PkgWrapper::new(); //will autodetect your package manager
} 

Installing Packages

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();
} 

Uninstalling Packages

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();
}