pkg vs. port tree install
freebsd at edvax.de
Fri Jul 10 20:22:25 UTC 2015
On Fri, 10 Jul 2015 22:11:29 +0200, Lev wrote:
> I installed git from the ports tree, to get git gui and gitk.
> However, when I upgrade my binary packages, pkg wants to reinstall git
> from the binary package, after doing it I lose gitk.
> git-2.4.5_1 (options changed)
> Is this the intentional?
Yes. The binary packages that pkg will use for installing
and updating are based on the _default_ compile time options
set by the maintainer. If you chose to use different options
and your package is "out of date", it will be updated with
the current version, _missing_ your options.
In order to avoid it, see "pkg lock" and "pkg unlock" to
protect your ("custom") version of Git from being updated.
To update it, update your /usr/ports tree and use the typical
"make install" method (or for example portmaster, if you're
using a port management tool).
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions