Skip to content

Working with /opt #1038

Answered by cgwalters
cgwalters asked this question in Q&A
Discussion options

You must be logged in to vote

This of course heavily relates to an old issue: coreos/rpm-ostree#233

Some systems like FCOS make /opt a symlink to /var/opt - it's a writable, persistent directory. This means that one can install software there per-machine, and manage it out of band. But management and updates of the app are up to the admin - and trying to install it as e.g. an RPM will run into conflicts around things like the RPM database being readonly as it's in /usr.

For bootc systems that are derivation points like fedora bootc we ship /opt as a regular directory. This has the opposite tradeoff!

By shipping such content in a derived container build it will "just work" in general to install RPMs that install to /opt

Replies: 4 comments

Comment options

cgwalters
Jan 16, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by cgwalters
Comment options

cgwalters
Jan 17, 2025
Maintainer Author

You must be logged in to vote
0 replies
Comment options

cgwalters
Jan 20, 2025
Maintainer Author

You must be logged in to vote
0 replies
Comment options

cgwalters
Jan 24, 2025
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant