From owner-freebsd-pkg@FreeBSD.ORG Tue Aug 19 10:02:36 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 68696EBE for ; Tue, 19 Aug 2014 10:02:36 +0000 (UTC) Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) (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 2261B386F for ; Tue, 19 Aug 2014 10:02:35 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id va2so3004319obc.9 for ; Tue, 19 Aug 2014 03:02:35 -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=bKdcWXx6GBxYztvk9E5qpYArtD8aVhwJ1S4ytAqdAHo=; b=cETFcS0zrxDWa2AmQCrO4TcnJhn6OnEAQpLCbfbKMxVPSCyLCx611Oxe4uFjoE+6BX lRCOEO1RgzOvk8gMaUx61HKC2HuTxi/7UwjTCrhmC4bs9uRSFC3uo/Bj4RH87B1FIayK ubN3SSvhLS7m7ZZ9xYKrBcYlxHwkCsZ04IeAkMvCRm6fq2iKzGP5F5hzBhEuVJ0lmaUi 0OiJstflZH5oPP0wG9z1IaCV3r/lzO1zNxgri6Sf+3VELPgYITAlkJyx3iY3zEMKzU+s SMdjdSQIPxTtu6qtVGHWAeLJ2bmVc3gpfb4/hzGELkt2f+brCSIyh0dJ0JYtB56EfShu Nb1A== X-Received: by 10.202.190.8 with SMTP id o8mr268381oif.91.1408442555346; Tue, 19 Aug 2014 03:02:35 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.202.231.203 with HTTP; Tue, 19 Aug 2014 03:01:55 -0700 (PDT) From: Ivan Voras Date: Tue, 19 Aug 2014 12:01:55 +0200 X-Google-Sender-Auth: wdl-queSHGSjFWHIfZrA0Qwa8Lc Message-ID: Subject: Upgrading large sets of packages (e.g. php5, p5...)? 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: Tue, 19 Aug 2014 10:02:36 -0000 Hello, Can pkg handle the case where it's necessary to upgrade large collections of interdependent packages, e.g. php with many (but not all) modules / extensions installed? The starting situation is that php5-5.3.8 is installed, with 40 extensions. Issuing simply "pkg upgrade php5" results in pkg trying to upgrade ONLY the php5-5.3.8 package to the new version php5-5.4.31, WITHOUT upgrading the 40 packages which depend on it (extensions compiled for the old version are definitely NOT be compatible with the new one; with PHP that happens regularly). I've checked (with pkg info -R) that the extension packages really, actually, depend on the base package. Issuing "pkg upgrade -x 'php5.*'" results in pkg wanting to upgrade existing packages (which is correct), but ALSO install every other package available which matches the regex - which is undesirable. (btw I've noticed that the "-x" argument is not documented in the man page for php-upgrade.8). Looking at available options, the option "-r" doesn't what it does in e.g. portupgrade and there is no -R at all. The "pkg install" command also doesn't have similar options. The man page for pkg-info documents the "-E" switch which is supposed to show package names only, apparently for internal use, but running "pkg info -E" doesn't work at all (invalid switch). On the other hand, "pkg info -q" does that. BUT, running "pkg upgrade `pkg info -q | grep php5`" ALSO doesn't work, as it keeps complaining "no packages available to upgrade matching $pkgname have been found in the repositories." Apparently, giving the full package name together with its version to pkg-upgrade causes that. This is frustrating. So... how do you upgrade packages like php and perl which have a large number of dependencies which must be kept in sync with the base package? My pkg is 1.3.6.