Date: Sun, 7 Sep 2014 16:48:44 -0700 From: Craig Rodrigues <rodrigc@freebsd.org> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-pkg@freebsd.org Subject: Re: pkg upgrade -f refusing to upgrade packages??? Message-ID: <CAG=rPVey4TKNcpAo1TgibiJy7qZqQ_aryfDmEx-j8uOALiXDbg@mail.gmail.com> In-Reply-To: <CAF-QHFVECKGaC%2BcXnuOrhQkLoz9nEJLh6U5Zjt6pstQFabGLkA@mail.gmail.com> References: <CAF-QHFVECKGaC%2BcXnuOrhQkLoz9nEJLh6U5Zjt6pstQFabGLkA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVey4TKNcpAo1TgibiJy7qZqQ_aryfDmEx-j8uOALiXDbg>