RPM: List all installed packages by size (Megabytes) $ rpm -qa --qf '%{SIZE} %{NAME}\n' | awk '{printf("%sMb %s\n", $1 / 1000 / 1000, $2)}' | sort -k1 -n
You could append it a bit for those times when disk is full: $ rpm -qa –queryformat ‘%10{SIZE}\t%{NAME}\n’ | sort -k1,1n | tail | cut -f 2 | xargs rpm -e
You could append it a bit for those times when disk is full:
$ rpm -qa –queryformat ‘%10{SIZE}\t%{NAME}\n’ | sort -k1,1n | tail | cut -f 2 | xargs rpm -e