pub fn get_installed_packages() -> HashSet<String>Expand description
What: Enumerate all currently installed packages on the system.
Inputs:
- (none): Invokes
pacman -Qqto query the local database.
Output:
- Returns a set of package names installed on the machine; empty on failure.
Details:
- Uses pacman’s quiet format to obtain trimmed names and logs errors where available for diagnostics.