Find the largest installed packages in CentOS
Submitted by Easton on Sat, 03/24/2012 - 22:17
I recently bought a VPS to host a Counter Strike server. WIthout having any choice, I was stuck with CentOS 5. After getting everything set up, I wasn't left with much disk space left. So, I read the man page for sort and used the following RPM command to find the largest packages installed:
rpm -qa --queryformat '%{name} %{size}\n' | sort -k2n
Â