Hi,
i am trying to grab all the installed packages on linux machine,and only want to grab "Name" "Version" "Release" "Vendor" information
i am using below command to do so :
rpm -qa --info | grep -e 'Name' -e 'Version' -e 'Release' -e 'Vendor'
the output contains lot other info like below:
Name : libidn Relocations: (not relocatable)
Version : 0.6.5 Vendor: Red Hat, Inc.
Release : 1.1 Build Date: Thu 13 Jul 2006 08:20:40 AM BST
Summary : Internationalized Domain Name support library
Names (IDN) working group, used for internationalized domain
Name : libXau Relocations: (not relocatable)
can someone help me with script in extarcting just the name,version,release,vendor on a separate lines..