pub struct Dnf;Expand description
Package manager implementation for Fedora-family systems.
Trait Implementations§
Source§impl PackageManager for Dnf
impl PackageManager for Dnf
Source§fn exists(&self, runner: &dyn Runner, pkg: &str) -> Result<bool, PackageError>
fn exists(&self, runner: &dyn Runner, pkg: &str) -> Result<bool, PackageError>
dnf repoquery --whatprovides matches package names, virtual provides
(Fedora’s nodejs is provided by nodejs22) and file paths, as
dnf install does; it exits 0 with no output when nothing matches. A
@group is looked up with dnf group info.
Source§fn is_installed(
&self,
runner: &dyn Runner,
pkg: &str,
) -> Result<bool, PackageError>
fn is_installed( &self, runner: &dyn Runner, pkg: &str, ) -> Result<bool, PackageError>
rpm -q --whatprovides, so a name that another package provides counts
once dnf install has resolved it (Fedora’s wget is wget2-wget).
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Returns
true when the manager’s binary is on PATH.Auto Trait Implementations§
impl Freeze for Dnf
impl RefUnwindSafe for Dnf
impl Send for Dnf
impl Sync for Dnf
impl Unpin for Dnf
impl UnsafeUnpin for Dnf
impl UnwindSafe for Dnf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more