Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2014 11:36:58 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        Craig Rodrigues <rodrigc@freebsd.org>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: pkg upgrade -f refusing to upgrade packages???
Message-ID:  <CAF-QHFVNgBM6qJ8a%2BkbbSx6LBH7naot8kX6Tj7sP0EnjDfpuNg@mail.gmail.com>
In-Reply-To: <CAG=rPVey4TKNcpAo1TgibiJy7qZqQ_aryfDmEx-j8uOALiXDbg@mail.gmail.com>
References:  <CAF-QHFVECKGaC%2BcXnuOrhQkLoz9nEJLh6U5Zjt6pstQFabGLkA@mail.gmail.com> <CAG=rPVey4TKNcpAo1TgibiJy7qZqQ_aryfDmEx-j8uOALiXDbg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8 September 2014 01:48, Craig Rodrigues <rodrigc@freebsd.org> wrote:
>
>
> On Fri, Sep 5, 2014 at 7:36 AM, Ivan Voras <ivoras@freebsd.org> wrote:
>>
>> Hello,
>>
>> I seem to keep either finding problems in pkg or completely missing
>> the point of it :(
>>
>> Here's another issue:
>>
>> # pkg info -g 'cups*'
>> cups-1.7.3
>> cups-base-1.7.3_1
>> cups-client-1.7.3
>> cups-filters-1.0.55
>> cups-image-1.7.2
>> cups-pstoraster-8.15.4_8
>>
>> Right, so my interpretation of the output above is that I have that
>> set of packages installed on this system. Now, I would like to
>> force-upgrade them all:
>>
>> # pkg upgrade -f `pkg info -g 'cups*'`
>
>
> That invocation is wrong.
>
> If you type:
>
> pkg help upgrade
>
> You will see:
>
>     "pkg upgrade is used for upgrading packaged software distributions."
>
> If you read the man page, you will see that pkg upgrade does not take
> individual package names as arguments.


Really?

My man page says otherwise:

     pkg upgrade [-fInFqUy] [-r reponame] [-Cgix]
         [<pkg-origin|pkg-name|pkg-name-version> ...]

...

     pkg upgrade compares the versions of all or specific packages installed
     on the system to what is available in the configured package reposito-
     ries.  Any out-of-date packages are added to a work list for processing.

Note the "...or specific packages...".

I think what you say was true for early versions of pkg, but sometime
recently this has changed (for the better).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF-QHFVNgBM6qJ8a%2BkbbSx6LBH7naot8kX6Tj7sP0EnjDfpuNg>