Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Oct 2010 14:59:51 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        FreeBSD Ports Mailing List <ports@freebsd.org>
Subject:   Re: Portmaster 3.1 upgrade
Message-ID:  <AANLkTik_OrT7oN20RYQ3B9E5TFRfSHq8-o5dAPC=KQf5@mail.gmail.com>
In-Reply-To: <4CCDBC20.10102@infracaninophile.co.uk>
References:  <AANLkTimKKVeR_EsoDQv_3r%2B8hdh%2Ba9K_bAxWx4qi_cgW@mail.gmail.com> <AANLkTim75-0AoGuTaptR5MRChbXWFpe0kgmXieKFxY6X@mail.gmail.com> <4CCDBC20.10102@infracaninophile.co.uk>

index | next in thread | previous in thread | raw e-mail

On Sun, Oct 31, 2010 at 11:57 AM, Matthew Seaman
<m.seaman@infracaninophile.co.uk> wrote:
> On 31/10/2010 17:56, Freddie Cash wrote:
>> The correct command is:  pkg_delete -xf portmaster
>>
>> -x does name globbing internally to pkg_delete, and should be used
>> over any shell globbing (like *).
>
> So dogmatic.  '-x' is one alternative.  A globbing expression is
> another.  Either can be useful, and either should be used at will and as
> circumstances warrant.
>
> Also note that
>
>   pkg_delete -xf portmaster
>
> is technically not equivalent to
>
>   pkg_delete -f portmaster\*
>
> Instead it's equivalent to
>
>   pkg_delete -f \*portmaster\*

Which is why I mentioned the "more safe" alternative, which you
snipped out of your reply:
  pkg_delete -xif portmaster

Note the extra "i" in the middle, which makes the pkg_delete call
interactive, showing the package name to be deleted, and asking the
user whether that's the correct package to be deleted.

-- 
Freddie Cash
fjwcash@gmail.com


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik_OrT7oN20RYQ3B9E5TFRfSHq8-o5dAPC=KQf5>