From owner-freebsd-stable@FreeBSD.ORG Tue Jan 27 10:03:33 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 5B52E77D for ; Tue, 27 Jan 2015 10:03:33 +0000 (UTC) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (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 CDFB2E67 for ; Tue, 27 Jan 2015 10:03:32 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id w7so12191629lbi.1 for ; Tue, 27 Jan 2015 02:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ZnwbEyHzS23EACwUTgTGnMdYw8Cu01ts0UysCTwGgfA=; b=dyyqAdYagEY7JHJXmuDpBtHfbU+mV2FgWShS1NarAsXfk1+/vBNvleUNEYNCek6VeU 46YbSEAl1zrdz9PjZGOCghvdWcSuNLhnbnHnAnUXbiQUmNAj0omfpLoVY8Ajuy/TCZoZ jFbsfTA/uEcBWnscZAfp/zj7+9y5Y5WNo9uiJIAlDUXMGw6x3yg3AOZU846QUcU9+J5R tnjROzcAhI20AIMAWu1ToCiMIz8P8tyYuFJACy3M6Fj9Jj3J++qrQcjsFinNA1xobxFf Kl4mpLWXut0xIhbWOtQfYUv4rJKbgiI2nDm0ygprABz5SA08AR3bYChqV9ivFSihnhx9 nOIw== X-Received: by 10.112.205.68 with SMTP id le4mr542081lbc.96.1422353010838; Tue, 27 Jan 2015 02:03:30 -0800 (PST) Received: from [172.29.2.131] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPSA id sf2sm279931lbb.30.2015.01.27.02.03.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jan 2015 02:03:29 -0800 (PST) Message-ID: <54C76267.8040300@gmail.com> Date: Tue, 27 Jan 2015 12:03:19 +0200 From: Vitaly Magerya User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Pierre-Luc Drouin , freebsd-stable@freebsd.org Subject: Re: Recursively Deinstalling and Upgrading Packages/Ports without Breaking Dependencies? References: <54C6CDB5.2040501@gmail.com> In-Reply-To: <54C6CDB5.2040501@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed 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:03:33 -0000 On 2015-01-27 01:28, Pierre-Luc Drouin wrote: > 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? Since nothing better was suggested, you should try using ports-mgmt/pkg_cleanup for this task. > 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 think ports-mgmt/portmaster has no problems with installing new dependencies; "portmaster -a" will upgrade all the installed ports. I'm not really familiar enough with portupgrade to say if the exact behavior of it's "-Rr" switch can be replicated with portmaster though.