Function alpm_sys::alpm_pkg_free

source ·
pub unsafe extern "C" fn alpm_pkg_free(pkg: *mut alpm_pkg_t) -> c_int
Expand description

Free a package. Only packages loaded with \link alpm_pkg_load \endlink can be freed. Packages from databases will be freed by libalpm when they are unregistered. @param pkg package pointer to free @return 0 on success, -1 on error (pm_errno is set accordingly)