LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-22-2005, 12:41 AM   #1
lexersrp
LQ Newbie
 
Registered: Jan 2005
Posts: 8

Rep: Reputation: 0
help me out to the three questions plz? its urgent


hi guys,

iam doin a project in linux and the title is inetwork inventory system. i totally new to linux. so if u guys can plz help me out to the following questions

1. i want the exact location where the softwares get installed in linux
2. exact location for hardware installed in linux
3. exact location of rpm
 
Old 01-22-2005, 12:56 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
First you should read the "How to post a question" as your title doesn't tell us anything about what you are asking.

Second, it will depend from distro to distro as to when stuff goes. So with that, here is a generic answer to your questions.

1. Software generally gets installed under either /opt or /usr. It will be installed to the directory that the RPM, DEB, Tgz, or whatever package was made to. If you compile the source of the app you can usually specify the location yourself and therefore it can go anywhere. Some don't allow you to do this, but I'd say that those are rare.

2. Devices are mapped to /dev/devicename. Drivers can go to several places like, /lib/modules

3. the actual RPM you download can go wherever the hell you want it to. Installing that rpm will unpack and install the application to the answer in number 1.

This probably doesn't help much, but if you want to post a more specific question, I'll try to answer better. Someone else may have a better answer for you too.
Just for kicks, was there a certain distrobution we are talking about
 
Old 01-22-2005, 02:28 AM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
http://www.pathname.com/fhs/pub/fhs-2.3.txt.gz

the FHS (filesystem hierarchy standard) is the standard most distros obey, the naming conventions answer at least 1 first questions, basically software gets installed in 3 main places

fir theres the main dirs

bin - were the programs are
sbin - restricted programs go here, mostly ones that usually root would us
lib - libraries

and were this all goes (the above 3 dirs go into each one, along with some others (maybe.. depends on the distro)

/ - root dir, this place is only for system files needed for the system to work, boot, and mount other file systems
/usr - this is for regular programs the distributions would install, this is split to allow it to be on a separate partition, and for organization
/usr/local - for user installed programs, like ones you compile yourself, this way they dont get mixed in with system/distro programs

there also

/usr/games - some distro put games into its own separate place

you can easly enough add places of your own, X takes /usr/X11R6, gcc goes for /usr/gcc-[system arch] ..... buts its best to play along with what your distro provides so things don't get messed up

so for #1, it can be any of 3 places, usually only 2, then there X, gcc, and quite a few distros put games into there own dir... also /opt , is another place (in gentoo it seams its mainly used for big softwares, like blackhawk (java), open office, and some binary games

for 2, drivers is such a relative term, kernel drivers can be compiled into the kernel and not "installed", drivers for printer, X, or other devices can be for separate programs, and the programs would say were they go ... (kernel "modules" (may be drivers, or serve some other purpose) go into /lib/modules/[full kernel name, and version]

so its a bit messy if you want them all to be in 1 place ... anyways, just adding to what
musicman_ace said
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ITS URGENT plz helppppp maruthi4u Programming 2 08-14-2004 03:21 PM
Help on modprobe URGENT PLZ!! Doomhammer Linux - Hardware 4 07-07-2004 10:51 AM
How to connect to the internet- URGENT PLZ ! vwal_13 Slackware 9 04-11-2004 04:15 AM
p2p urgent help plz g33k Linux - Games 1 11-11-2003 10:09 PM
Plz help, urgent sunil_lc Linux - Networking 4 10-28-2003 01:30 PM


All times are GMT -5. The time now is 10:30 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