I mostly use packages on FreeBSD, because most of them suit me just fine. Some don't suit me, however, like the vim
package, which does not include a graphical gvim
.
No problem. I can install the port instead, using portmaster editors/vim
and selecting the GTK2
option. This works fine.
However, when I run pkg upgrade
after a while, I am presented with the following:
Reinstalling vim-7.4.110_3 (options changed)
What gives? I didn't change any options, and there is no new version (not in ports, either). Is it comparing my installed port to the remote version without GTK2
?
Of course I can let pkg upgrade
do its work and install the port again afterward, but this is stupid. What is the recommended way to update a mix of packages and ports?
pkg lock
the recommended solution? It works, but I would hope something as simple as this could be handled automatically.pkg lock
is the solution designed for that: from the man page: “pkg lock is used to lock packages against reinstallation, modification or deletion.”.