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

14217 reviews 1686 hosting providers

Questions & Answers

PRM outputs in XML

May 7, 2012 by megatester
Hi
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
Thanks,

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