Ubuntu – How to package an application that contains a binary that needs to be in $PATH

application-developmentapplication-submissionbinarypackagingpaths

I am packaging an application that contains binaries that would normally go in /usr/bin and a shared library that would go in /usr/lib.

However, the package guidelines for submitting applications to the software center suggest that binaries should go into /opt.

What is the proper way of putting these files into /opt yet making sure they are in the $PATH?


For clarification, the page I'm referring to is here: http://developer.ubuntu.com/publish/my-apps-packages/ and it states:

"Be able to be installed into /opt/…."

Best Answer

Packages that are submitted for extras.ubuntu.com cannot install binaries that are intended to be accessible from the default $PATH - they are meant to be relatively lightweight GUI applications. This excludes installing Upstart services or other files into /etc.

The restrictions on files were made for security reasons when the ARB process was written up.

For applications such as these, you can still submit them to the Ubuntu archive (main, universe) & request a backport to the stable release.