Skip to content

Instantly share code, notes, and snippets.

@frengky
Created August 9, 2023 04:07
Show Gist options
  • Save frengky/363a32333c5c23f73952dff9d0b1c016 to your computer and use it in GitHub Desktop.
Save frengky/363a32333c5c23f73952dff9d0b1c016 to your computer and use it in GitHub Desktop.
Linux command snippets

List rpm order by size

rpm -qa --queryformat '%10{size} - %-25{name} \t %{version} \t %{os} \n' | sort -rh | head -25 | awk '{print $1/1024/1024, $2, $3, $4}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment