If you are looking for a command to see the disk usage by each of the rpm‘s then you can use this command:
1 | rpm -q --queryformat "%10{SIZE}\t%{NAME}\n" |
And if you use this command very regularly then you can create an alias like
1 | alias rpm_size='rpm -q --queryformat "%10{SIZE}\t%{NAME}\n" ' |
and use it like
1 | rpm_size <package name> |
and if you wish to see all the packages then you can use the following:
1 | rpm -qa -–queryformat=”%10{SIZE}\t%{NAME}\n” | sort -k1,1n |
Related articles
- imabonehead: Fix a totally broken rpm database on rhel4 ” On the third side (ingvar.blog.linpro.no)
- Hyundai Avante Car Features and Specification Review,Price Detail (hamarasathi.blogspot.com)
- List all the rpms by size – quick way to find out what is eating your disk space in root partition (amit-agarwal.co.in)
Link to this post!
You must log in to post a comment.