From owner-freebsd-stable@FreeBSD.ORG Tue Jan 27 10:16:23 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 711979D6 for ; Tue, 27 Jan 2015 10:16:23 +0000 (UTC) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0F9AEF83 for ; Tue, 27 Jan 2015 10:16:22 +0000 (UTC) Received: from fortune.joker.local (180-198-138-192.nagoya1.commufa.jp [180.198.138.192]) (authenticated bits=0) by dec.sakura.ne.jp (8.14.3/8.14.2/[SAKURA-WEB]/20080708) with ESMTP id t0RAGFYZ057720 for ; Tue, 27 Jan 2015 19:16:15 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Tue, 27 Jan 2015 19:16:13 +0900 From: Tomoaki AOKI To: freebsd-stable@freebsd.org Subject: Re: Recursively Deinstalling and Upgrading Packages/Ports without Breaking Dependencies? Message-Id: <20150127191613.cad7f6e21294392701cfb80e@dec.sakura.ne.jp> In-Reply-To: <54C6CDB5.2040501@gmail.com> References: <54C6CDB5.2040501@gmail.com> Organization: Junchoon corps X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2015 10:16:23 -0000 On Mon, 26 Jan 2015 18:28:53 -0500 Pierre-Luc Drouin wrote: > Hi, > > With portupgrade, I used to use "pkg_deinstall -R" to deinstall a > package and its dependencies while preserving the packages on which > other packages were depending on. With pkgng, the behaviour of > "pkg_deinstall -R" changed and this command is now breaking > dependencies. Is there a new method to safely remove packages recursively? If menu style (dialogical) operation is OK, I prefer ports-mgmt/pkg_rmleaves. Once deleting any leaf port, it asks for processing new leaf and you can select what to delete. > Also, in the past, it used to be possible to use a "portupgrade -NRra" > command to upgrade all packages and install new dependencies as > required, but the "-N" option is no longer supported in this context and > portupgrade seems unable to automatically install new dependencies. Is > there an alternate method to achieve this? I also am suffering from it. My nonesense but working workaround is... 1)Upgrade all possible ones as you do. 2)Upgrade again with -w -W option added to portupgrade. 3)Do portversion -vl'<' 4)Do portsclean -C and compare its output with outputs of the above. 5)Install missing (only exists in portsclean output) port. 6)Upgrade again as 1). 7)If required, repeat 2) - 6) again. Fixing portupgrade is clearly above me, but looking into build logs, it seems that package for new dependencies are created, but not installed with -p option. One more to mention. I usually fetch distfiles first, by -aF option. In this phase, I'm asked OPTIONS dialog for new dependency if any. > It seems much more human time consuming to deinstall and upgrade > packages since these two functionalities disappeared from portupgrade... 100% agree with the latter. > > Thanks! > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- 青木 知明 [Tomoaki AOKI] junchoon@dec.sakura.ne.jp MXE02273@nifty.com