LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 09: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, 04:06 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Rep: Reputation: 91
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-27-2017, 12:38 AM   #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-27-2017, 12:41 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,758

Rep: Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682
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 01:02 AM.
 
Old 04-27-2017, 01:01 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,758

Rep: Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682Reputation: 2682
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, 03:35 AM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,128
Blog Entries: 4

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
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


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

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

All times are GMT -5. The time now is 10:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration