Monday, August 13, 2012

RPM querry packages and there build arch

Most of the time rpm shows is the package name - version, but strips the build arch, ie. i386 or x86_64. Hence what we see are 2 similar package names and we wondering what is going on :)


$ rpm -qf /usr/bin/lsb_release
redhat-lsb-4.0-2.1.4.el5
redhat-lsb-4.0-2.1.4.el5

here is a way to see the arch use '--qf "%{n}-%{v}-%{r}-%{arch}\n"'


$ rpm -qf /usr/bin/lsb_release --qf "%{n}-%{v}-%{r}-%{arch}\n"
redhat-lsb-4.0-2.1.4.el5-x86_64
redhat-lsb-4.0-2.1.4.el5-i386






List directories via 'ls -d' - surprised me

List directories via 'ls -d' - surprised me This was one of those feelings where I was left surprised with the humble linux comm...