pub fn get_foreign_packages() -> HashSet<String>Expand description
What: Enumerate foreign (locally installed, not in any sync repo) packages.
Inputs:
- (none): Invokes
pacman -Qqmto list foreign package names.
Output:
- Set of package names whose repository is
local(AUR builds, manual installs); empty set on failure (graceful degradation).
Details:
- Equivalent to checking
pacman -QiRepository: localper package, but in a single subprocess — use for batch local-package filtering. - Sets
LC_ALL=CandLANG=Cfor consistent locale-independent output.
§Example
use arch_toolkit::deps::get_foreign_packages;
let foreign = get_foreign_packages();
println!("{} foreign packages installed", foreign.len());