portupgrading only certain ports
Duane Whitty
duane at greenmeadow.ca
Wed Feb 22 21:44:25 PST 2006
Peter wrote:
> --- "Steve P." <rczero at mail.com> wrote:
>
>> I am trying to avoid upgrading two ports: kde and X.
>>
>> What are the command line options to portupgrade to accomplish this?
>>
>> For instance, I tried this and it failed:
>> #portupgrade -a -x 'kde*' -x 'x*'
>>
>> Where am I going wrong?
>>
>> I've read the pertinent handbook ports section, and did man portupgrade,
>> but still I can not get it to work. Maybe it has something to do with
>> pkg_glob, I don't know.
>
> I never tried this feature but from the man page it seems you do not need
> the single quotes. You probably can also just type the package names
> (with no glob characters) with or without version numbers.
>
>
Hi,
portupgrade -a upgrades all installed ports. Try
portupgrade -rR -x 'kde*' -x 'x*' *
Maybe use the -n option with the above to see what
would happen without doing anything.
With a regex maybe this would work
portupgrade -rRx :[kde|x] or something along
these lines. -n is a good safety valve I think
hth,
--Duane
More information about the freebsd-questions
mailing list