4

I am packaging my own application into .deb. According to this, my compiled application should be installed in /opt/my-package. However, the tool Lintian reports such error:

E: dir-or-file-in-opt opt/my-package

The explanation is here.

What should I do? Where do you install your own application?

Could anyone help me?

muru
  • 207,228
wking
  • 173

1 Answers1

3

A package to be uploaded to the Debian repositories should avoid /opt and /usr/local - these directories are reserved for the local system administrator, as per the Filesystem Hierarchy Standard. The lintian tags reflect this. You should, instead, structure your package so that:

  • executables go in /usr/bin (or /usr/sbin, as the case maybe)
  • libraries go in /usr/lib or an appropriate subfolder thereof
  • architecture-independent shared data in a subfolder in /usr/share, etc.

Consult the Debian Policy for more information.

If your package is for local use, you can go ahead and ignore that tag. You can create a lintian override to stop lintian from generating that error.

muru
  • 207,228