update_system

Function update_system 

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

Updates the system using the appropriate package manager for the Linux distribution.

This function runs system update commands specific to Ubuntu, CentOS, or Fedora.

§Arguments

  • config - A reference to the Config struct containing the Linux distribution information

§Returns

Returns Ok(()) if the system is updated successfully, or an error if the update fails.