Replacing base commands with pkg versions

Lorenzo Salvadore phascolarctos at protonmail.ch
Tue Jan 29 12:31:16 UTC 2019


> What is the recommended way of dealing with the base versions of
> commands when installing a package version instead? Should I chmod -x
> the base executable(s), delete them or rename them? What happens if I
> subsequently do a freebsd-update - do the base executables get
> reinstated or are they ignored?
>
> The specific case I'm interested in is unbound under 11.2, but this
> applies to a variety of programs (CUPS vs base lpr, or base vs pkg llvm
> come to mind) and if there's any official guidance on this I've missed it.

I cannot give you an official answer, but if you always want to have the pkg
version getting precedence on the base version, I would reorder the PATH
variable.

If instead you want to mix versions, I would not change the base system, I
would rather create aliases for the shell.

Lorenzo Salvadore.


More information about the freebsd-questions mailing list