pkg upgrade -f refusing to upgrade packages???

Craig Rodrigues rodrigc at freebsd.org
Sun Sep 7 23:48:47 UTC 2014


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.

So you can either do one of the following two options:

OPTION 1:
  Type:
      pkg upgrade
       -> this will upgrade all the packages on your system to the latest
           package set.  This is preferred.

OPTION 2:
  Type:

pkg info -o -g 'cups*'

cups-client-1.7.3                 print/cups-client
cups-image-1.7.3_1             print/cups-image

Looking at the second column, type:

   pkg install print/cups-client print/cups-image

This will download the latest cups-client and cups-image and install/upgrade
them.

I found the usage of "pkg upgrade" and "pkg update" a bit confusing
at first.

--
Craig


More information about the freebsd-pkg mailing list