Results 1 to 4 of 4

Thread: Where do I install a new application ?

  1. #1
    Join Date
    Feb 2005
    Beans
    13

    Unhappy Where do I install a new application ?

    I wrote a gnome application made by one executable file,
    some text files, some pixmaps and some wave files.
    I have now to decide where to install the application
    I read the document FHS Filesystem Hierarchy Standard
    (http://www.pathname.com/fhs/ ) but I have not understood
    where to put my files:

    /opt/myapp/bin
    /opt/myapp/pixmaps
    /opt/myapp/data
    /opt/myapp/audio

    or
    /usr/share/myapp/pixmaps
    /usr/share/myapp/data
    /usr/share/myapp/audio

    or
    /usr/local/usr/

    or ???

    Can someone resolve my doubts ?
    Thanks for any help.

  2. #2
    Join Date
    Aug 2005
    Location
    New Hamster
    Beans
    Hidden!

    Re: Where do I install a new application ?

    According to http://www.pathname.com/fhs/

    I think /usr/local is the appropriate place.

    but whether it belongs in a tree that includes share (/usr/local/share) depends on the nature of the code - architecture independent or not...
    Last edited by bsussman; September 23rd, 2005 at 02:25 PM.

  3. #3
    Join Date
    Feb 2005
    Beans
    13

    Re: Where do I install a new application ?

    Ok : /usr/local

    Option 1

    but if I want to keep different parts of application together so:
    Have I to make a subdirectory under /usr/local ?
    /usr/local/myapp
    and under this ?
    /usr/local/myapp/pixmap
    /usr/local/myapp/data
    /usr/local/myapp/audio

    but under /usr/local there are not any subdir like myapp !

    Option 2

    So I have to put the executable in /usr/local/bin

    and the other file which are platform indipendent in
    /usr/local/share/myapp/pixmap
    /usr/local/share/myapp/data
    /usr/local/share/myapp/audio

    Is this last one the right option ?


    Thanks!


    Michele

  4. #4
    Join Date
    Aug 2005
    Location
    New Hamster
    Beans
    Hidden!

    Re: Where do I install a new application ?

    First glance, your conclusion seems right.

    If this app is for distribution, this matters.


    If it is your own tool or toy, just for yourself, consistency is more important than actual name.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •