Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

PRM outputs in XML

May 7, 2012 by megatester
On the main page of rpm, it’s mentioned that it supports option '--xml' to the query format switch that will wrap the results in simple XML. I am not able to find the right syntax.
How do I get the output of an rpm call in XML via the '--xml' option? What is the syntax?
Please help

1 Answer

0 votes
May 7, 2012 by lightSpeed
This is the syntax that you're looking for

rpm -q --xml --qf '%{name}\n' httpd