From owner-freebsd-pkg@FreeBSD.ORG Mon Sep 8 09:37:41 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD0AEA7F; Mon, 8 Sep 2014 09:37:41 +0000 (UTC) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (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 1B3C01FFE; Mon, 8 Sep 2014 09:37:40 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id v6so589041lbi.6 for ; Mon, 08 Sep 2014 02:37:39 -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:from:date:message-id :subject:to:cc:content-type; bh=6qUvHHC6h/bDNcJzZSa6jwtLQlKqoPnpSPMw0KriCYk=; b=ehfkJBE8LL3ZGeaP9MOC73URsjwgRSGid5z+Sufv6zh2HOrUahNn+GoDoG2VP44qYK PbWaeAzPpZcY5kPVH73n7Vm4bdjl8kOMLj1QL8vdbpHyCjCsDWERnEhg6ErkklPZudXo cGmo5qOw2P8QcW+ViDBz7478fdR1hB2UVouPAw550m2vHyhlMkgK6X3bqtXp3iitJFhB Pf9pMMUBhjDnMgUHl6KcUzmOd/z3xArld08ocUFkaE15hXWudlHQTc0t9FHwiYUZUrdD kpdrSEshI2JvntX5v7BFJRwZ8fHCwCQPMFNrnt73AbqDqg3/A9RFGyV7BKRnOO2+zYjt lRUQ== X-Received: by 10.112.167.103 with SMTP id zn7mr26376030lbb.63.1410169059037; Mon, 08 Sep 2014 02:37:39 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.25.149.205 with HTTP; Mon, 8 Sep 2014 02:36:58 -0700 (PDT) In-Reply-To: References: From: Ivan Voras Date: Mon, 8 Sep 2014 11:36:58 +0200 X-Google-Sender-Auth: ANhulCgJgSV9m8ZJ2IUs7bV0lys Message-ID: Subject: Re: pkg upgrade -f refusing to upgrade packages??? To: Craig Rodrigues Content-Type: text/plain; charset=UTF-8 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: Mon, 08 Sep 2014 09:37:41 -0000 On 8 September 2014 01:48, Craig Rodrigues wrote: > > > 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. Really? My man page says otherwise: pkg upgrade [-fInFqUy] [-r reponame] [-Cgix] [ ...] ... 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).