I want to check a package's license before installing with apt and flatpak.
This would be particularly useful in PPAs / custom repositories that allow non-FLOSS licenses, and may have non-FLOSS dependencies too.

It has to be possible, since Discover can apparently do it, at least for official packages (though maybe it's impossible for custom repos, since they aren't on Launchpad?). At least Flathub does have license info on package's pages.
But I want to check it via command-line.

  • snap info $PKG_NAME can be used to check license of uninstalled snap packages - OK
  • apt info $PKG_NAME / apt-cache show $PKG_NAME doesn't (always?) have license information
  • flatpak info $PKG_ID only works for installed packages
  • flatpak search $PKG_NAME -vv took way too long to show basically no information

Ideally there should be an easy way to check privacy policies too, but I suppose that's asking too much...



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.