List all installed rpm packages and it’s size
Virtual Private Server disk space are usually limited so it’s always good to know how much space on the hard drive takes some rpm package. You can delete it later – you will save your disk space and of course some bandwidth if updates are released later on.
rpm -qa –qf ‘%10{SIZE}\t%{NAME}\n’ | sort -k1,1n
This applies to Linux environment servers only.
Filed under: Tips by Linux Admin
3 Responses to “List all installed rpm packages and it’s size”
1.
David Bennett, on March 30th, 2009 at 9:21 am Said:
This command should be:
rpm -qa –queryformat=”%10{SIZE}\t%{NAME}\n” | sort -k1,1n
2.
David Bennett, on March 30th, 2009 at 9:23 am Said:
NOTE: blog is editing entries, the parameter queryformat as two dashes in front. The queryformat value is encapsulated in standard double quotes.
Nenhum comentário:
Postar um comentário