Archive for the ‘yum’ tag
Centos: querying installed packages and versions
Here is a command that lists all packages installed on centos (or any linux using yum package management system):
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n"
The beauty about this protocol is the output is formatted to display version architecture stuff in one line – great for grepping…