LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2006, 08:47 PM   #1
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
Question /usr/lib vs /usr/libexec


I just installed nagios 1.2 & nagios 1.4 plugins from packages on linuxpackages. Interesting where different things were installed

nagios executable /usr/bin
nagios plugins /usr/lib/nagios/plugins
nagios cgi scripts /usr/libexec/nagios

While I assume the location for these files was in part decided by the package builder, can anyone shed light on general use of the various /usr directories?
 
Old 01-24-2006, 03:06 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
http://www.pathname.com/fhs/pub/fhs-2.3.html
I'm not sure you'll find exactly want you want, but it can help.
 
Old 04-26-2017, 11:38 PM   #3
negatratoron
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
It would appear that /usr/libexec is an instance of the /usr/lib<qual> directory. What does <qual> mean there?
 
Old 04-26-2017, 11:41 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
http://refspecs.linuxfoundation.org/...fhs/index.html

PS Bear in mind that Linux distributions (including Slackware) sometimes may deviate from the FHS, that can be considered as a guideline more than a strict specification. This is especially true below the top level directories and usage vary upon distribution. For instance, documentation sub directories often are stored in /usr/share/doc in many distributions but in /usr/doc in Slackware and derivatives.

Last edited by Didier Spaier; 04-27-2017 at 12:02 AM.
 
Old 04-27-2017, 12:01 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by negatratoron View Post
It would appear that /usr/libexec is an instance of the /usr/lib<qual> directory. What does <qual> mean there?
Not really. An example of <qual> would be 64, i.e. the 64 bit shared libraries are stored under /usr/lib64.

Instead, /usr/libexec usually stores binaries (and shell scripts in practice).
 
Old 04-27-2017, 02:35 AM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
negatratoron, this is an eleven year old thread that you stumbled across. There are many bad things about that, and one of them is that you looked at a 13 year old standard that was superseded long ago.

Here's the up-to-date version: http://refspecs.linuxfoundation.org/...s/ch04s07.html

Quote:
/usr/libexec includes internal binaries that are not intended to be executed directly by users or shell scripts. Applications may use a single subdirectory under /usr/libexec.

Applications which use /usr/libexec in this way must not also use /usr/lib to store internal binaries, though they may use /usr/lib for the other purposes documented here.
Rationale

Some previous versions of this document did not support /usr/libexec, despite it being standard practice in a number of environments. [26] To accomodate this restriction, it became common practice to use /usr/lib instead. Either practice is now acceptable, but each application must choose one way or the other to organize itself.

[26] See, for example, the "GNU Coding Standards" from the Free Software Foundation.
 
1 members found this post helpful.
  


Reply



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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
Relationship between /usr/bin and /usr/lib glume Linux - Newbie 4 04-16-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration