Install a self-contained vendor application named acme independently of the operating system's standard packages.
Place the vendor's package under its own subdirectory.
Which location is most appropriate?
/opt is intended for add-on application software packages, commonly using a subdirectory named for the package.
Detailed explanation
/etc/acmeIncorrect. /etc/acme is for configuration, not the complete application package.
Incorrect. /etc/acme is for configuration, not the complete application package.
/var/acmeIncorrect. /var/acme would be variable application data.
Incorrect. /var/acme would be variable application data.
/run/acmeIncorrect. /run/acme is transient runtime state.
Incorrect. /run/acme is transient runtime state.
/opt/acmeCorrect. /opt/acme is the conventional location for a self-contained add-on package.
Correct. /opt/acme is the conventional location for a self-contained add-on package.
Try it yourself
An example you can run in a temporary verification environment.
find /opt -maxdepth 1 -type d -printExpected result
導入済み追加パッケージのディレクトリ。空の場合もあるKey points
- Add-on package
- Self-contained
- /opt/name
Notes
- Environment: FHS 3.0/Linux
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.