From owner-freebsd-pkg@FreeBSD.ORG Sun Sep 7 23:48:47 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9644A27E; Sun, 7 Sep 2014 23:48:47 +0000 (UTC) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E66EE1C69; Sun, 7 Sep 2014 23:48:46 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id z11so2586278lbi.26 for ; Sun, 07 Sep 2014 16:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=a0Us1RlhEi/9Cxh3rLoC5I9B9w9cwWO06UCHC9rvEMI=; b=QFvjKD4g5jxCzLvXUPquBVH2WgfdxS61tLND3iNhHZ7TPl+2YuNT3IFe8j+318Ef31 xcXOaf2tuRYqScKv1VByGTM9LGLCRp28VkBU1SAVegA40gcEdcqv21L9iwMUOqHwIKZo G3fuYIoM8/j457DsHnHaaUE8cT6QU2/UWJkHvQy8Fr+pQul6KDdTOJl8J1hjD5G572O1 dFAfCrTP5+/WyOW6o0dcIVofweitq1hIWewImVF8ZvyK7TNfd05/sH23/L5TC2Je8x28 zpB1zeErjlMvbING+XVNpLFdzox9jXIEPqOnxNAjqsbX3ezsa+NAXgvk8CWxYM8XsQMJ oCzA== MIME-Version: 1.0 X-Received: by 10.112.205.200 with SMTP id li8mr23947103lbc.70.1410133724800; Sun, 07 Sep 2014 16:48:44 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.22.72 with HTTP; Sun, 7 Sep 2014 16:48:44 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Sep 2014 16:48:44 -0700 X-Google-Sender-Auth: UTL_qxCD7YqsOqDdYJStP9HU4Fs Message-ID: Subject: Re: pkg upgrade -f refusing to upgrade packages??? From: Craig Rodrigues To: Ivan Voras Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 23:48:47 -0000 On Fri, Sep 5, 2014 at 7:36 AM, Ivan Voras 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