Basically, I usually do something like this:

# portsnap fetch
# portsnap update

# portmaster -L | grep -B1 "New version"
    ===>>> php5-5.2.11
    ===>>> New version available: php5-5.2.12
# portmaster php5-5.2.11

But with PHP I've got about 40 modules and have to them one by one. Is there a better (and safe) way to do this?

Edit: well it turns out that this is what's needed:

# portmaster php5-extensions

It's amazing how hard that was to find out!

link|improve this question
feedback

3 Answers

up vote 3 down vote accepted
portmaster -db php5*
link|improve this answer
feedback

Firstly I should say that I don't use portmaster, I use portupgrade, but then I build ports rather than use packages!

Portupgrade allows you to put:

portupgrade php\*

which will upgrade all the php ports. Portmaster may do the same thing.

Also you can give portsnap multiple commands in one go, so you can put

portsnap fetch update
link|improve this answer
I can just install portupgrade and use that then. There's no problem with using them together? – Gazzer Jan 24 '10 at 19:22
I don't know, as I've never used portmaster! If you use portupgrade then you can use the -P switch to use packages rather than ports where possible. – hmallett Jan 24 '10 at 19:42
feedback

I rebuild/update all packages depending on php5 for safety. You need to specify the full pkg-name including version. Find out the exact version with pkg_info:

# pkg_info|grep php
php5-5.3.8          PHP Scripting Language

Then rebuild/update php and all ports depending on it with:

# portmaster -r php5-5.3.8
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.