Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

sort installed packages by size

// sort installed packages by size

rpm -qa --queryformat="%{size} %{name}-%{version}-%{release}\n" | sort -rn | less

How to extract all the files from an RPM package

rpm2cpio filename | cpio -i --make-directories