update_system

Function update_system 

Source
pub fn update_system(
    package_manager: &PackageManager,
) -> Result<(), Box<dyn Error>>
Expand description

Updates the system using the specified package manager.

This function runs the appropriate update commands for the given package manager.

§Arguments

  • package_manager - A reference to the PackageManager enum representing the system’s package manager.

§Returns

Returns a Result indicating success or an error if the update process fails.