After a snap
has been installed with sudo snap install [package]
how can I list all packages on my box which have a proprietary license? For deciding what is Open Source and what not I like Debian Free Software Guidelines.
For example spotify
Details for Spotify
License
Proprietary
To get all snap packages:
To get details (including the license):
So something as
would list the license for each snap, and then you could filter that at will. Now, the parameter
license
in the few snaps I have isunset
. Except forsnapd
, which hasGPL-3.0
, versusGPL-3.0+
shown here.So, apparently, to get the actual license for each snap you would have to write a script that retrieves the info from
https://snapcraft.io/<package name>
, or, better, fromsnap info <package name> | grep store-url
(likely the same in all cases, but I would not bet on it). Not a big deal, but not expected either probably.Adding a script as commented by @Xosrov