Update php from 5.4 to 5.5 ?
Jim Trigg
jtrigg at spamcop.net
Thu Jun 19 07:28:17 UTC 2014
Quoting "Matthew D. Fuller" <fullermd at over-yonder.net>:
> 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).
That sounds clever, but I've been trying to come up with a syntax that
actually works. What I think will work (once my current portmaster
-aRf finishes -- don't ask) is:
pkg query -e '%o ~ */php5-*' '%o'|while read origin; do \
new_origin=`echo ${origin} | sed -e 's/php5-/php55-/'`
echo y | pkg -o ${origin}:${new_origin}; done
But I'm not completely sure.
Jim Trigg
More information about the freebsd-ports
mailing list