[−][src]Function alpm_rs::initialize
pub fn initialize(root: &str, dbpath: &str) -> Result<Handle, Box<dyn Error>>
Initializes the alpm library and retuns a handle.
///
/// # Arguments
///
/// * root
- the root path for all filesystem operations
/// * dbpath
- the absolute path to the libalpm database
///
/// # Example
///
/// /// use alpm; /// let handle = alpm::initialize("/", "/var/lib/pacman").unwrap(); ///