LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-04-2004, 12:06 PM   #1
paultaylor
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.
/usr/bin,
/bin,
/opt,
/home/user

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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you don't need to worry about where files go, instead you need to wirte a technically comptent (and potentially tiiny) makefile.am and configure.in 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
karlan
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:20 PM.

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