Where should an FHS-compliant program ideally place all its files? Announcing the arrival of...
Can you force honesty by using the Speak with Dead and Zone of Truth spells together?
How can god fight other gods?
Why weren't discrete x86 CPUs ever used in game hardware?
Moving a wrapfig vertically to encroach partially on a subsection title
Random body shuffle every night—can we still function?
What is the "studentd" process?
Why is the change of basis formula counter-intuitive? [See details]
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
GDP with Intermediate Production
Mounting TV on a weird wall that has some material between the drywall and stud
Asymptotics question
Is it possible for SQL statements to execute concurrently within a single session in SQL Server?
Why is it faster to reheat something than it is to cook it?
The test team as an enemy of development? And how can this be avoided?
Flight departed from the gate 5 min before scheduled departure time. Refund options
How to write capital alpha?
Special flights
Why are vacuum tubes still used in amateur radios?
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
How can I prevent/balance waiting and turtling as a response to cooldown mechanics
Tips to organize LaTeX presentations for a semester
Did pre-Columbian Americans know the spherical shape of the Earth?
New Order #6: Easter Egg
Where should an FHS-compliant program ideally place all its files?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionWhy is “dir-or-file-in-usr-local” an error rather than a warning?Where should Steam install game data on linux, to be FHS-compliant?Installing JDK in a FHS-compliant wayInstalling files in ~/.localR configure file error: C compiler cannot create executablesWhat are the FHS compliant mount points?Why isn't the var directory user-specific?Should I install programs directly into /usr/local or a subdirectory in usr/local or into /opt?Script cannot find Perl module, but module exists in local subdirectorydoubts about the Linux filesystem hierarchy
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
After reading the FHS, I have concluded on the following table:
+----------------+-------------------+---------------------------------+-----------------------+
| Part | Sofware in /opt | Installed by package manager/OS | User local software |
+----------------+-------------------+---------------------------------+-----------------------+
| executable | /opt/X/bin/ | /usr/bin/ | /usr/local/bin/ |
| read only data | /usr/share/X/ | /usr/share/X/ | /usr/local/share/X/ |
| global rw data | /var/opt/X/ | /var/lib/X/ | /var/lib/X/ |
| global config | /etc/opt/X/ | /etc/X/ | /etc/X/ |
| user data | ~/X/ | ~/X/ | ~/X/ |
| man page | /opt/X/share/man/ | /usr/share/man/ | /usr/local/share/man/ |
| source code | /opt/X/src/X/ | /usr/src/X/ | /usr/local/src/X |
+----------------+-------------------+---------------------------------+-----------------------+
Is this table correct for all software to use?
Also, how does a program, when being installed, "know" whether it is placed in /opt or /usr/local/bin, in order to place its files in the correct place?
filesystems software-installation fhs
New contributor
add a comment |
After reading the FHS, I have concluded on the following table:
+----------------+-------------------+---------------------------------+-----------------------+
| Part | Sofware in /opt | Installed by package manager/OS | User local software |
+----------------+-------------------+---------------------------------+-----------------------+
| executable | /opt/X/bin/ | /usr/bin/ | /usr/local/bin/ |
| read only data | /usr/share/X/ | /usr/share/X/ | /usr/local/share/X/ |
| global rw data | /var/opt/X/ | /var/lib/X/ | /var/lib/X/ |
| global config | /etc/opt/X/ | /etc/X/ | /etc/X/ |
| user data | ~/X/ | ~/X/ | ~/X/ |
| man page | /opt/X/share/man/ | /usr/share/man/ | /usr/local/share/man/ |
| source code | /opt/X/src/X/ | /usr/src/X/ | /usr/local/src/X |
+----------------+-------------------+---------------------------------+-----------------------+
Is this table correct for all software to use?
Also, how does a program, when being installed, "know" whether it is placed in /opt or /usr/local/bin, in order to place its files in the correct place?
filesystems software-installation fhs
New contributor
add a comment |
After reading the FHS, I have concluded on the following table:
+----------------+-------------------+---------------------------------+-----------------------+
| Part | Sofware in /opt | Installed by package manager/OS | User local software |
+----------------+-------------------+---------------------------------+-----------------------+
| executable | /opt/X/bin/ | /usr/bin/ | /usr/local/bin/ |
| read only data | /usr/share/X/ | /usr/share/X/ | /usr/local/share/X/ |
| global rw data | /var/opt/X/ | /var/lib/X/ | /var/lib/X/ |
| global config | /etc/opt/X/ | /etc/X/ | /etc/X/ |
| user data | ~/X/ | ~/X/ | ~/X/ |
| man page | /opt/X/share/man/ | /usr/share/man/ | /usr/local/share/man/ |
| source code | /opt/X/src/X/ | /usr/src/X/ | /usr/local/src/X |
+----------------+-------------------+---------------------------------+-----------------------+
Is this table correct for all software to use?
Also, how does a program, when being installed, "know" whether it is placed in /opt or /usr/local/bin, in order to place its files in the correct place?
filesystems software-installation fhs
New contributor
After reading the FHS, I have concluded on the following table:
+----------------+-------------------+---------------------------------+-----------------------+
| Part | Sofware in /opt | Installed by package manager/OS | User local software |
+----------------+-------------------+---------------------------------+-----------------------+
| executable | /opt/X/bin/ | /usr/bin/ | /usr/local/bin/ |
| read only data | /usr/share/X/ | /usr/share/X/ | /usr/local/share/X/ |
| global rw data | /var/opt/X/ | /var/lib/X/ | /var/lib/X/ |
| global config | /etc/opt/X/ | /etc/X/ | /etc/X/ |
| user data | ~/X/ | ~/X/ | ~/X/ |
| man page | /opt/X/share/man/ | /usr/share/man/ | /usr/local/share/man/ |
| source code | /opt/X/src/X/ | /usr/src/X/ | /usr/local/src/X |
+----------------+-------------------+---------------------------------+-----------------------+
Is this table correct for all software to use?
Also, how does a program, when being installed, "know" whether it is placed in /opt or /usr/local/bin, in order to place its files in the correct place?
filesystems software-installation fhs
filesystems software-installation fhs
New contributor
New contributor
New contributor
asked 11 mins ago
KaiJKaiJ
1011
1011
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
KaiJ is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513625%2fwhere-should-an-fhs-compliant-program-ideally-place-all-its-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
KaiJ is a new contributor. Be nice, and check out our Code of Conduct.
KaiJ is a new contributor. Be nice, and check out our Code of Conduct.
KaiJ is a new contributor. Be nice, and check out our Code of Conduct.
KaiJ is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513625%2fwhere-should-an-fhs-compliant-program-ideally-place-all-its-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown