Disclaimer: I am not a pkg tools expert, so if somebody comes along and correct me (especially espie@) then they are right.
2010/4/10 Andreas Gerdd <kryptos...@gmail.com>: > I follow stable tree, OPENBSD_4_6 branch. I'd like to update some of > my packages. > As an example, > # pkg_add -unvi tiff > gives the following message; 'No need to update tiff-3.8.2p4' This message is pkg_add searching for package matches in $PKG_PATH and not finding any that are newer than the one installed. Note that once a match for the package stem is found (the tiff- part) then the search stops at that point and it won't look for matches in the rest of the $PKG_PATH. So if you want to put your -stable ports along with a -release mirror you need to put /usr/ports/packages/i386/all first in the $PKG_PATH. > but my /usr/ports (OPENBSD_4_6) has tiff-3.8.2p5. > After running 'make package' inside ./graphics/tiff, > i got the binary file tiff-3.8.2p5.tgz from /usr/ports/packages/i386/all > and i replaced the old tiff package with that one by doing pkg_add > -rvi ./tiff-3.8.2p5.tgz > > I wonder if that would create any problem. > As the system says 'No need to update tiff-3.8.2p4'. (I know that its > already the latest one from packages) > but i still update them to higher versions with my stable ports binaries. > > I had to do the same for my php5 package too, (from php5-core-5.2.10 > to php5-core-5.2.12) > Because i was getting httpd segfault crashes (suhosin?) with the > latest stable php5 package. (php5-core-5.2.10) > > Is this a mistake? Is it ok to replace an installed package with a > higher version of it from the ports? Normally, as long as you do not use -F <something> as an option to pkg_add, everything you do with it is safe. (caveat: sometimes there are major upgrades, like for postgresql that require extra actions, but those are when you change releases) > Thanks. > Arnaud