Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9142831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:52:29+00:00 2026-06-17T09:52:29+00:00

I have a Python application that is currently installed following Linux Filesystem Standard Hierarchy

  • 0

I have a Python application that is currently installed following Linux Filesystem Standard Hierarchy (FHS). It is installed in:

  • /usr/bin/ (executable)
  • /usr/lib/python2.x/site-packages/{appname}/ (Python libs)
  • /etc/{appname}/ (conf files)
  • /usr/share/man/ (manual files)

Now, it is desired that a non-root user installing this application could install it without root powers and that only this user could run the app. We thought the best would be to install the app in user home directory.
We already have a .{appname} directory in user home to keep per-user configuration files, as the app installed configuration files in /etc.
I think that using the .{appname} dir to keep all application files is not a good idea, as directories pre-appended with . only keeps configuration files. Probably I’ll remove the .{appname} dir, as the entire application will be installed per-user now.

2 ideas:

  • Create a {appname} dir and create subdirs bin, etc, lib and share/man.
  • Replicate Linux FHS under home and create a {app-name} subdir under lib and etc
    • ~/bin/
    • ~/lib/{appname}
    • ~/share/man/
    • ~/etc/{appname}

Which one of these is more often used and more recommended? Pros and cons of each alternative are welcome. Maybe a third option?

I’ve seen people recommend /home/usr/bin and /home/usr/local/bin, but I don’t understand the need to include the usr here as there is no need to differentiate between essential and non-essential binaries/libraries. I’d prefer to be minimalist.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:52:30+00:00Added an answer on June 17, 2026 at 9:52 am

    The first option is the most common. A third option is to create (or fill out) the structure under ~/.local/ (which reflects /usr) that is already used by a number of applications for share/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses Django 1.3 installed in python's site-packages. I want
I have inherited a windows Python application that communicates with linux RabbitMQ. I need
We have a Linux application that makes use of OpenSSL's Python bindings and I
I have a small GTK python application that imports a package (Twisted) that may
I have a Python application in the bottle web-server that accesses a C shared-object
I have a multi-process python application (processes are spawned by uwsgi) that needs to
I have a web application build in Django + Python that interact with web
Background : I have a small Python application that makes life for developers releasing
I have an application that reads test scripts in python and sends them across
I'm currently supporting a legacy python application that generates all the html through creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.