Where to put program license? (linux)

Discussion in 'Computer Programming, Emulation, and Game Modding' started by StackMasher, Jan 3, 2017.

  1. StackMasher

    StackMasher GBAtemp Regular

    Nov 29, 2016
    Is there a specific directory in usr/ where you're supposed to put licenses or should I just put it in usr/share?
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    Nov 21, 2005
    United Kingdom
    Do you mean the text files that come with source code, and typically in general for linux software, and says something like "this is GPLv2, have a copy of it below." or have you paid for a bit of software and need to put the code to have it run somewhere?

    For the former then /usr/share/doc/[whatever program or lib or whatever it is]/ will have a file called copyright in it, you can feed this to cat or your chosen text viewer.
    For the latter then case by case basis.