List all installed rpm packages and it’s size
If you are looking for a command to see the disk usage by each of the rpm‘s then you can use this command:
<td>
<div class="text codecolorer">
rpm -q --queryformat "%10{SIZE}\t%{NAME}\n"
</div>
</td>
</tr>
1
|
And if you use this command very regularly then you can create an alias like
<td>
<div class="text codecolorer">
alias rpm_size='rpm -q --queryformat "%10{SIZE}\t%{NAME}\n" '
</div>
</td>
</tr>
1
|
and use it like
<td>
<div class="text codecolorer">
rpm_size <package name>
</div>
</td>
</tr>
1
|
and if you wish to see all the packages then you can use the following:
<td>
<div class="text codecolorer">
rpm -qa -–queryformat=”%10{SIZE}\t%{NAME}\n” | sort -k1,1n
</div>
</td>
</tr>
1
|
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)
Related Articles:
- 2010/10/08 http://ninite.com/linux/makeuseof – very good collection of utilities for .deb based distro’s
- 2010/09/04 Remove some path from the PATH variable temporarily.
- 2010/08/28 Zabbix error\’d — just for fun
- 2010/08/11 gphotoframe Free digital photo frame for your desk.
- 2010/07/31 Auto Key press fill forms through simulating key presses | Linux.com

Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.