rpm --scripts -qp rpmname.rpm
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:-
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'
rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE} %{VENDOR}\n'
Labels:
rpm
Monday, 2 September 2013
Rebuild RPM DB
This may need to be done in instances where simple commands such as rpm -qa hang. Steps:-
- Kill all rpm and yum processes
- yum clean all
- rm -f /var/lib/rpm/__db*
- rpm -v --rebuilddb
- yum makecache
Labels:
rpm
Subscribe to:
Posts (Atom)