Skip to content

Instantly share code, notes, and snippets.

@cupracer
Created November 17, 2020 13:23
Show Gist options
  • Save cupracer/59b9af99c97f0c87119e2e27b912829e to your computer and use it in GitHub Desktop.
Save cupracer/59b9af99c97f0c87119e2e27b912829e to your computer and use it in GitHub Desktop.
List all installed RPM packages which were installed without docs
for i in $(rpm -qa);
do
rpm -qs $i | grep -q "not installed" && test $(rpm -qlc $i | wc -l) -ne 0 && echo $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment