Update php from 5.4 to 5.5 ?

Matthew D. Fuller fullermd at over-yonder.net
Wed Jun 18 22:03:22 UTC 2014


On Wed, Jun 18, 2014 at 10:05:46PM +0200 I heard the voice of
Melvyn Sopacua, and lo! it spake thus:
> 
> You can do the following:
> pkg query -e '%o ~ */php5-*' '%o'| while read origin; do \
> new_origin=`echo ${origin} | sed -e 's/php5-/php55-/'`
> echo portmaster -o ${new_origin} ${origin}; done > update.sh

You could just use 'pkg set -o' on these instead to shuffle the origin
in the pkgdb, then just a regular round of
portmaster/portupgrade/whatever will look at versions in the new
place.  That's equivalent to how I've done such migrations in the past
with pkgog (creepy sed'ery through /var/db/pkg).


-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.


More information about the freebsd-ports mailing list