Quote:
Originally Posted by muhammad ammar
Is there anyway to get names of all the packages on a system and their license types?
|
Yes:
To your terminal:
Code:
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{VENDOR}.%{License}\n"|sort -d|cat -b
To a file [packages.txt]
Code:
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{VENDOR}.%{License}\n"|sort -d|cat -b >> /home/username/packages.txt