You are not logged in.

#1 2021-09-08 10:25:15

followait
Banned
Registered: 2019-11-01
Posts: 58

[SOLVED] Why "Packages should never be installed to /usr/local/"?

https://wiki.archlinux.org/title/Arch_p … _etiquette

Last edited by followait (2021-09-08 14:06:45)

Offline

#2 2021-09-08 10:34:26

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,624

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

Because it's the wrong place for them.

Read up on the FHS.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-09-08 10:38:21

loqs
Member
Registered: 2014-03-06
Posts: 13,871

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

Offline

#4 2021-09-08 11:59:06

followait
Banned
Registered: 2019-11-01
Posts: 58

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

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

#5 2021-09-08 12:08:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,637

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

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

#6 2021-09-08 12:11:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,631
Website

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

followait wrote:

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

#7 2021-09-08 13:55:25

followait
Banned
Registered: 2019-11-01
Posts: 58

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

Trilby wrote:

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

#8 2021-09-08 14:29:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,631
Website

Re: [SOLVED] Why "Packages should never be installed to /usr/local/"?

followait wrote:

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

Board footer

Powered by FluxBB