pkg upgrade -f refusing to upgrade packages???

Ivan Voras ivoras at freebsd.org
Mon Sep 8 09:37:41 UTC 2014


On 8 September 2014 01:48, Craig Rodrigues <rodrigc at freebsd.org> wrote:
>
>
> On Fri, Sep 5, 2014 at 7:36 AM, Ivan Voras <ivoras at 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).


More information about the freebsd-pkg mailing list