pub fn get_installed_required_by(name: &str) -> Vec<String>Expand description
What: Get the list of installed packages that depend on a package.
Inputs:
name: Package name to check.
Output:
- Returns a vector of package names that are installed and depend on the package, or an empty vector on failure.
Details:
- Runs
pacman -Qito query package information and parses the “Required By” field. - Filters the “Required By” list to only include installed packages.
- Returns an empty vector if the package is not installed or if querying fails.