From owner-freebsd-pkg@FreeBSD.ORG Fri Sep 5 14:36:49 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 E9CD21E9 for ; Fri, 5 Sep 2014 14:36:49 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (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 766B11D0E for ; Fri, 5 Sep 2014 14:36:49 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id s18so2975984lam.14 for ; Fri, 05 Sep 2014 07:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=hdRqZuu1g1sdi2gW1iMmlFv4+zsWiUYNU6w9LbrS0tc=; b=IivZS159azZmgTlH/WCdZbeObK4FDZ4pd4Ka2ukNneZCyFu5xpVIOI5Ezsokf50IrN lsnlo2Bjg62NUOdXq4eG4C1mr4pnjm+jn3eO4nhwNMupvm/P/xZsQ5wVsjrZRh4LXfRC k54hVdAbcgiPP5QMzx17Gsnsu0es4Dc3HpYRT+MlhADleDjvgVIf2RE9D7z4DWeU6Fq3 a6Pgwbv6lIaHZypMzh3wQT05Ie0v48sSO3/TxsOmNivuGUnZqi5mhOPc/n1eMgYsrI/m MX8O6wS4MuiOe9VZ1CC12AF0AX10CZhNvadxl7qYu2zqHZEA5Y5N2+NwUxLijdSVjac5 gg+A== X-Received: by 10.112.157.132 with SMTP id wm4mr11522306lbb.89.1409927807146; Fri, 05 Sep 2014 07:36:47 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.25.149.205 with HTTP; Fri, 5 Sep 2014 07:36:07 -0700 (PDT) From: Ivan Voras Date: Fri, 5 Sep 2014 16:36:07 +0200 X-Google-Sender-Auth: qYP5w1_u_yiZ2PbtZpj5PYKDQQI Message-ID: Subject: pkg upgrade -f refusing to upgrade packages??? To: freebsd-pkg@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Fri, 05 Sep 2014 14:36:50 -0000 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*'` Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. Updating FreeBSD_new_xorg repository catalogue... FreeBSD_new_xorg repository is up-to-date. All repositories are up-to-date. The following 3 packages will be affected (of 0 checked): Installed packages to be REINSTALLED: cups-1.7.3 [FreeBSD] cups-pstoraster-8.15.4_8 [FreeBSD] cups-base-1.7.3_1 [FreeBSD] (options changed) 9 MB to be downloaded. Proceed with this action? [y/N]: y So... what happened to the other packages? It looks like pkg is completely ignoring 3 other packages from the original list. Indeed, trying to upgrade just this one package missed by "pkg upgrade above" says: # pkg upgrade -f cups-image-1.7.2 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. Updating FreeBSD_new_xorg repository catalogue... FreeBSD_new_xorg repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) Your packages are up to date. Erm, no, this package is NOT up to date: # pkg search cups-image cups-image-1.7.3_1 cups-image-1.7.3_1 I presume the package is listed twice because it appears in two repositories. (but this problem is NOT specific to multiple-repositories issues, the same happens with e.g. p5* packages which are present only in the official repo). (this is pkg 1.3.7 on FreeBSD 10)