Showing posts with label rpm. Show all posts
Showing posts with label rpm. Show all posts

Tuesday, 7 January 2014

View what the spec file does on an RPM

This can be done using the following command:-

 rpm --scripts -qp rpmname.rpm  

Tuesday, 3 September 2013

Show vendor when searching through installed RPMs

This is done using the %{VENDOR} tag. For example:-

rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE} %{VENDOR}\n'

Monday, 2 September 2013

Rebuild RPM DB

This may need to be done in instances where simple commands such as rpm -qa hang. Steps:-
  1. Kill all rpm and yum processes
  2. yum clean all
  3. rm -f /var/lib/rpm/__db*
  4. rpm -v --rebuilddb
  5. yum makecache