I have a program that I am going to package in a .deb. Where should I put files for my program? I have had a look at the structure of things like Epoptes but I cannot figure out where I should put them. The files are .csv, bash and python files, but need to be able to run as not root for some. If you could recommend anywhere as on my testing PC I am using the home directory. Any ideas would help.

closed as too broad by John WH Smith, Anthon, andcoz, peterph, jimmij Jan 28 '15 at 23:22

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


Have a look at the Filesystem Hierachy Standard which is also the base for Debian's file system layout.

.csv and shell scripts likely go into /usr/share/<yourprogramname> if they come out of the package or /var/lib/<yourprogramname> if they're data which changes over time.

Python files are a rather special case, see Debian's Python Policy for details.

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