<div dir="ltr">Hi All.<div><br></div><div>Is there way I can generate the output list of the softwares installed in centos 6?</div><div><br></div><div>So I am trying to find out how to display this rpm list into cpe format</div><div><br></div><div><div>$ rpm -qa --queryformat '%{NAME} %{VERSION}-%{RELEASE}\n'<br></div><div>....</div><div><div>perl-Image-ExifTool 10.20-1.el6</div><div>fipscheck-lib 1.2.0-7.el6</div><div>rpm-libs 4.8.0-55.el6</div><div>live555 0-0.27.2012.02.04.el6.rf</div><div>libsoup 2.34.3-5.el6</div><div>dirac-libs 1.0.2-4.el6</div><div>perl-Convert-ASN1 0.22-1.el6</div><div>gamin 0.1.10-9.el6</div></div><div>....</div><div><br></div><div>I do have oscap installed on this same box</div><div><br></div><div><div>$ oscap --version</div><div>OpenSCAP command line tool (oscap) 1.2.8</div><div>Copyright 2009--2016 Red Hat Inc., Durham, North Carolina.</div><div><br></div><div>==== Supported specifications ====</div><div>XCCDF Version: 1.2</div><div>OVAL Version: 5.11.1</div><div>CPE Version: 2.3</div><div>CVSS Version: 2.0</div><div>CVE Version: 2.0</div><div>Asset Identification Version: 1.1</div><div>Asset Reporting Format Version: 1.1</div><div><br></div><div>==== Capabilities added by auto-loaded plugins ====</div><div>No plugins have been auto-loaded...</div><div><br></div><div>==== Paths ====</div><div>Schema files: /usr/share/openscap/schemas</div><div>Default CPE files: /usr/share/openscap/cpe</div><div>Probes: /usr/libexec/openscap</div><div><br></div><div>==== Inbuilt CPE names ====</div><div>Red Hat Enterprise Linux - cpe:/o:redhat:enterprise_linux</div><div>Red Hat Enterprise Linux 5 - cpe:/o:redhat:enterprise_linux:5</div><div>Red Hat Enterprise Linux 6 - cpe:/o:redhat:enterprise_linux:6</div><div>Red Hat Enterprise Linux 7 - cpe:/o:redhat:enterprise_linux:7</div><div>Community Enterprise Operating System 5 - cpe:/o:centos:centos:5</div><div>Community Enterprise Operating System 6 - cpe:/o:centos:centos:6</div><div>Community Enterprise Operating System 7 - cpe:/o:centos:centos:7</div><div>Scientific Linux 5 - cpe:/o:scientificlinux:scientificlinux:5</div><div>Scientific Linux 6 - cpe:/o:scientificlinux:scientificlinux:6</div><div>Scientific Linux 7 - cpe:/o:scientificlinux:scientificlinux:7</div><div>Fedora 16 - cpe:/o:fedoraproject:fedora:16</div><div>Fedora 17 - cpe:/o:fedoraproject:fedora:17</div><div>Fedora 18 - cpe:/o:fedoraproject:fedora:18</div><div>Fedora 19 - cpe:/o:fedoraproject:fedora:19</div><div>Fedora 20 - cpe:/o:fedoraproject:fedora:20</div><div>Fedora 21 - cpe:/o:fedoraproject:fedora:21</div><div>Fedora 22 - cpe:/o:fedoraproject:fedora:22</div><div>Fedora 23 - cpe:/o:fedoraproject:fedora:23</div><div>Fedora 24 - cpe:/o:fedoraproject:fedora:24</div><div>SUSE Linux Enterprise all versions - cpe:/o:suse:sle</div><div>SUSE Linux Enterprise Server 10 - cpe:/o:suse:sles:10</div><div>SUSE Linux Enterprise Desktop 10 - cpe:/o:suse:sled:10</div><div>SUSE Linux Enterprise Server 11 - cpe:/o:suse:sles:11</div><div>SUSE Linux Enterprise Desktop 11 - cpe:/o:suse:sled:11</div><div>SUSE Linux Enterprise Server 12 - cpe:/o:suse:sles:12</div><div>SUSE Linux Enterprise Desktop 12 - cpe:/o:suse:sled:12</div><div>openSUSE 11.4 - cpe:/o:opensuse:opensuse:11.4</div><div>openSUSE 13.1 - cpe:/o:opensuse:opensuse:13.1</div><div>openSUSE 13.2 - cpe:/o:opensuse:opensuse:13.2</div><div>openSUSE All Versions - cpe:/o:opensuse:opensuse</div><div>CentOS 5 - cpe:/o:centos:centos:5</div><div>CentOS 6 - cpe:/o:centos:centos:6</div><div>CentOS 7 - cpe:/o:centos:centos:7</div><div>Red Hat Enterprise Linux Optional Productivity Applications - cpe:/a:redhat:rhel_productivity</div><div>Red Hat Enterprise Linux Optional Productivity Applications 5 - cpe:/a:redhat:rhel_productivity:5</div><div><br></div><div>==== Supported OVAL objects and associated OpenSCAP probes ====</div><div>system_info                  probe_system_info           </div><div>family                       probe_family                </div><div>filehash                     probe_filehash              </div><div>environmentvariable          probe_environmentvariable   </div><div>textfilecontent54            probe_textfilecontent54     </div><div>textfilecontent              probe_textfilecontent       </div><div>variable                     probe_variable              </div><div>xmlfilecontent               probe_xmlfilecontent        </div><div>environmentvariable58        probe_environmentvariable58 </div><div>filehash58                   probe_filehash58            </div><div>inetlisteningservers         probe_inetlisteningservers  </div><div>rpminfo                      probe_rpminfo               </div><div>partition                    probe_partition             </div><div>iflisteners                  probe_iflisteners           </div><div>rpmverify                    probe_rpmverify             </div><div>rpmverifyfile                probe_rpmverifyfile         </div><div>rpmverifypackage             probe_rpmverifypackage      </div><div>selinuxboolean               probe_selinuxboolean        </div><div>selinuxsecuritycontext       probe_selinuxsecuritycontext</div><div>file                         probe_file                  </div><div>interface                    probe_interface             </div><div>password                     probe_password              </div><div>process                      probe_process               </div><div>runlevel                     probe_runlevel              </div><div>shadow                       probe_shadow                </div><div>uname                        probe_uname                 </div><div>xinetd                       probe_xinetd                </div><div>sysctl                       probe_sysctl                </div><div>process58                    probe_process58             </div><div>fileextendedattribute        probe_fileextendedattribute </div><div>routingtable                 probe_routingtable          </div><div>symlink                      probe_symlink               </div></div><div><br></div><div>-- <br></div><div><div class="gmail_signature">Asif Iqbal<br><br><br></div>
</div></div></div>