Skip to content

Instantly share code, notes, and snippets.

@victorbrca
Created July 4, 2023 17:06
Show Gist options
  • Save victorbrca/84a8aee26e21ce67b8313e1579d4a9c4 to your computer and use it in GitHub Desktop.
Save victorbrca/84a8aee26e21ce67b8313e1579d4a9c4 to your computer and use it in GitHub Desktop.
Shows RPM packages by install date
{
printf '%-51s%s\n' 'PACKAGE NAME' 'DATE'
printf '%0.s=' $(seq 1 50)
printf ' '
printf '%0.s=' $(seq 1 32)
printf '\n'
rpm -qa --qf '%{INSTALLTIME} %-50{NAME} %{INSTALLTIME:date}\n' | sort -nr | cut -d' ' -f2-
} | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment