Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-04-2004, 12:06 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 24

Rep: Reputation: 15
Where should I install my application

II have developed a deskttop app on Windows, Im now testing it on Linux (Red Hat Fedura 2)
It some time since I used unix in any form and I was wondering what the current practise was for installing applications.

all seem to me to be possible locations

I used to use something called pkgadd but it doesnt seem to exist anymore I guess this has been replaced by RPM, although nothing Ive installed with RPM has turned up in the desktops Add/Remove Programs yet.

There also the issue of wheher the user need to be logged on as root or not.

Also unix used to install progs in /usr/bin and config files in /etc. But my prog is currently installed as one thing, does this matter.

If someone could point me in the right direction ?
Old 11-04-2004, 02:25 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you don't need to worry about where files go, instead you need to wirte a technically comptent (and potentially tiiny) and to allow automake and autoconf to generate all teh configuartion scripts which will control where the files actually get placed. there are a few really good guides about these programs dotted around. going this way means that your app will be able to be installed in the standard source route of ./configre, make, make install. of course once built you also have the option of packaging for RPM or such like.
Old 11-04-2004, 09:36 PM   #3
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
/bin and /sbin are for system/boot utilities
/usr/sbin /usr/bin are for general tools/applications

while /usr/local/sbin and /usr/local/bin are where you install applications which
didn't come with your distro, but this is mostly for people who mount /usr/local onto the filesystem.

config files should be kept in etc if formaly installed, and more per-user config files should be stored at /home/user/.configfile

Also, linux lacks a centrel database for installed programs.
This has since been fixed (kinda) by programs such as rpm.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where do u install any Application? jared78 Linux - Newbie 8 05-20-2005 03:22 AM
How-EXACTLY-can someone install an application georgeks Linux - Newbie 2 11-17-2003 10:05 PM
how to install application like this jeson_515 Linux - Newbie 4 08-06-2003 07:57 AM
Where to install application A? mad_ady Linux - Newbie 2 03-15-2003 09:04 AM
New Application install cap_tan Linux - Software 0 10-24-2002 08:51 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration