Hi Guys,
I'm trying to write a script which can give me a list of installed packages in csv format.
In windows I can query registry keys or ask wmi for installed products.
I'm using CentOS so I thought of usning
yum info installed
its gr8 gives all the info but it gives info in its own format...like given below..
=======================
Name : ConsoleKit
Arch : x86_64
Version : 0.4.1
Release : 3.el6
Size : 263 k
Repo : installed
From repo : anaconda-CentOS-201311272149.x86_64
Summary : System daemon for tracking users, sessions and seats
URL :
http://www.freedesktop.org/wiki/Software/ConsoleKit
License : GPLv2+
Description : ConsoleKit is a system daemon for tracking what users are logged
: into the system and how they interact with the computer (e.g.
: which keyboard and mouse they use).
:
: It provides asynchronous notification via the system message bus.
=======================
Is there any way possible to get only Name, Version, Release, Size, Repo, Summary, URL,Licence in a csv file...???
Probably with combination of awk, sed, grep...??
Or should I use any other approach to get software inventory...??
--
Thanks & Regards,
jaykbvt