How to get all installed Desktop Applications with Licence info using Linux command

Linux Lover

New Member
Joined
May 28, 2019
Messages
4
Reaction score
0
Credits
0
I want to get all Desktop Applications info with License and other basic Details using command. Which Command I can use to get it?
 


OP
L

Linux Lover

New Member
Joined
May 28, 2019
Messages
4
Reaction score
0
Credits
0
Because I want to create an application to get all such information. please help me if you know any commands
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,653
Reaction score
1,265
Credits
10,750
I'm not sure there is a "one size fits all" command for this.
For example on Redhat/Fedora/CentOS you could do something like "dnf info tree | grep License"
If you wanted to list everything, you could do something like..
#!/bin/bash
for i in `dnf list installed | cut -f1 -d.`; do
dnf info $i | grep License
done

I suspect this would take a pretty long time to run because of the recursions.

I'm not familiar enough with apt to get the equivalent, but I'm sure there is a way to do it.
 

atanere

Well-Known Member
Joined
Apr 6, 2017
Messages
2,628
Reaction score
2,781
Credits
41
These articles (here and here) are a bit outdated but may help you get started with Debian/Ubuntu systems.

Cheers
 
OP
L

Linux Lover

New Member
Joined
May 28, 2019
Messages
4
Reaction score
0
Credits
0
I'm not sure there is a "one size fits all" command for this.
For example on Redhat/Fedora/CentOS you could do something like "dnf info tree | grep License"
If you wanted to list everything, you could do something like..
#!/bin/bash
for i in `dnf list installed | cut -f1 -d.`; do
dnf info $i | grep License
done

I suspect this would take a pretty long time to run because of the recursions.

I'm not familiar enough with apt to get the equivalent, but I'm sure there is a way to do it.
Thank you. But it doesn't work for me. Is there any other way to get the result.
 

atanere

Well-Known Member
Joined
Apr 6, 2017
Messages
2,628
Reaction score
2,781
Credits
41
Thank you.But unfortunately it doesn't worked for me. Any other way ?

1. Which steps did you try?
2. What errors did you get?
3. What distro are you using?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online


Top