From owner-freebsd-stable@FreeBSD.ORG Tue Jan 27 08:13:54 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 133E9DA for ; Tue, 27 Jan 2015 08:13:54 +0000 (UTC) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (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 D0868122 for ; Tue, 27 Jan 2015 08:13:53 +0000 (UTC) Received: by mail-ig0-f171.google.com with SMTP id r10so2976778igi.4 for ; Tue, 27 Jan 2015 00:13:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=qI01L48zqjmW/o7+9wFGHbrJCXgE8tpcsj29oIb+Xg8=; b=BdPU8qrowdvnef5OlkYBDZQ1SHRSU1v6ZrqEyEwdahikvyFA60wyCPhq+YQdX7GZQx j5cCiz38tWadYx/rehSCLbk9+kjtU0lRT1FMPW7DjKekmgIcMUxG53at6WCEh4VZ6IXk /tnsdSMV02JoCjobfNKj/zlbPQDAe678U80xci5vGvYWw/u/es618TJ66io2VmhPqVRM DiMdrXyZBzVGOMSnYlwckSXJSpAtTVG/9S2t0RhfBlZraJT18V0x5IduLEBw/M+0ql7I 0ntmVWyWzh7vAln/C9Ogo6/EDHJRSxh4J1FbySJFuffNU33BpTi9S5APLlekDTlYAWlq ZUkw== MIME-Version: 1.0 X-Received: by 10.50.79.228 with SMTP id m4mr20889780igx.43.1422346428700; Tue, 27 Jan 2015 00:13:48 -0800 (PST) Received: by 10.36.11.139 with HTTP; Tue, 27 Jan 2015 00:13:48 -0800 (PST) In-Reply-To: <54C73B84.1080704@infracaninophile.co.uk> References: <54C6CDB5.2040501@gmail.com> <54C73B84.1080704@infracaninophile.co.uk> Date: Tue, 27 Jan 2015 19:13:48 +1100 Message-ID: Subject: Re: Recursively Deinstalling and Upgrading Packages/Ports without Breaking Dependencies? From: Chris Knight Cc: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 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 08:13:54 -0000 Howdy, On 27 January 2015 at 18:17, Matthew Seaman wrote: > On 2015/01/26 23: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? > > # pkg delete pkgname > # pkg autoremove > That only works if the dependencies were added as automatic dependencies. Won't work if the dependency wasn't automatically added as part of the package's prerequisites for installation. -- Regards, Chris Knight