Skip to main content
Easton's stuff

Main navigation

  • Code
  • SnackLinux
  • Home

Breadcrumb

  1. Home

Find the largest installed packages in CentOS

Find the largest installed packages in CentOS

By Easton , 24 March, 2012

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

 

The option -k2 sorts the second column (size) and the -n option sorts it numerically. I also found out that sort -h doesn't work under CentOS 5 since it has coreutils 5.97, as it requires coreutils >= 7.5.

Tags
centos
rpm
yum
  • Add new comment

Navigation

  • GitHub Profile
  • SnackLinux
  • Popular pages
    • Restoring a Macintosh Plus
    • Getting root access on a $10 Aliexpress Wifi repeater
    • Remote code execution on no-name wifi repeaters: Part 2
    • Building your own handheld GPS with an ESP32
    • Remote code execution with Hitron CGNM-2250
    • NES controller and a RaspberryPi
    • 4000 series CMOS 24 hour clock
  • Toyota Overland
RSS feed



 

Powered by Drupal