Skip to main content

get_installed_version

Function get_installed_version 

Source
pub fn get_installed_version(name: &str) -> Result<String, String>
Expand description

What: Query one installed package version through arch-toolkit.

Inputs:

  • name: Package name.

Output:

  • Installed version or a user-facing string error.

ยงErrors

Returns an error when pacman is unavailable, the package is missing, or output cannot be parsed.

Details:

  • Preserves the pre-migration result shape used by preflight call sites.