You are not logged in.
https://wiki.archlinux.org/title/Arch_p … _etiquette
Last edited by followait (2021-09-08 14:06:45)
Offline
Because it's the wrong place for them.
Read up on the FHS.
Offline
See hier.7.en and file-hierarchy.7
Offline
I think this means: Don't install a pakcage made by you to other's local place.
So I think it's ok to install my private package to /usr/local on my mahcine, right?
Last edited by followait (2021-09-08 11:59:41)
Offline
It's your machine, you can do whatever you want with it, but why would you? A package that installs to /usr/local/ makes no sense.
Offline
I think this means: Don't install a pakcage made by you to other's local place.
So I think it's ok to install my private package to /usr/local on my mahcine, right?
Pretty much, yes. /usr/local/ is absolutely the right place for you to install software that is not tracked by pacman on your own machine (e.g., with `make PREFIX=/usr/local install`). But these aren't packages. If you write a PKGBUILD for your software, there should be no reason for it to be in /usr/local as it will be tracked by pacman. Of course it's still your system and you can do whatever you want.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
If you write a PKGBUILD for your software, there should be no reason for it to be in /usr/local as it will be tracked by pacman. Of course it's still your system and you can do whatever you want.
Now installed to /opt, it is still tracked by pacman.
Being tracked by pacman or not depends on if it is installed by pacman, right?
Last edited by followait (2021-09-08 14:05:43)
Offline
Being tracked by pacman or not depends on if it is installed by pacman, right?
Yes. But not on whether or not it was installed from a repository. If you build/install with PKGBUILD via makepkg, the resulting package is tracked by pacman.
Under /opt is an appropriate place if the packaged software that might either conflict with content under /usr or has one of those everything-in-one-directory layouts. But if that's not the case, there's no reason you couldn't install your own software with a PKGBUILD under /usr - this really should be the default unless you have good reason to do otherwise.
Last edited by Trilby (2021-09-08 14:31:51)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline