0

Where should I deploy application plugins? Nobody will ever use them. Does it make sense to put them in /usr/lib?

2

Yes, it makes sense to put them in /usr/lib, at least in some cases. According to the FHS, you should use an application-specific directory under /usr/lib, e.g. /usr/lib/yourapp. You can structure content there however you wish (see The Gimp, whose plugins end up in /usr/lib/gimp/2.0/plug-ins, and many other examples in your own /usr/lib).

The usual general rules for /usr apply: if the software is packaged using the system's package manager, then /usr/lib may be appropriate; otherwise it should go in /usr/local/lib (following the same pattern). (Thanks to mobileink and Barafu Albino for the reminder.)

  • why /usr/lib/<app> and not /usr/local/lib/<app>? – mobileink Oct 1 '16 at 20:29
  • 1
    It is /usr/lib for things installed with package manager and /usr/local for things installed by its own installer. – Barafu Albino Oct 2 '16 at 21:43

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.