From owner-freebsd-questions@FreeBSD.ORG Fri Nov 23 16:53:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B3B39E5 for ; Fri, 23 Nov 2012 16:53:54 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 0A5ED8FC1B for ; Fri, 23 Nov 2012 16:53:53 +0000 (UTC) Received: from rufus.webfusion.com (mail.heartinternet.co.uk [79.170.40.31]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id qANGrnVY011291 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 23 Nov 2012 16:53:51 GMT (envelope-from matthew@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.7.1 smtp.infracaninophile.co.uk qANGrnVY011291 Authentication-Results: smtp.infracaninophile.co.uk/qANGrnVY011291; dkim=none reason="no signature"; dkim-adsp=none (insecure policy) X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host mail.heartinternet.co.uk [79.170.40.31] claimed to be rufus.webfusion.com Message-ID: <50AFAA1D.2000505@freebsd.org> Date: Fri, 23 Nov 2012 16:53:49 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkgng usage References: <50AFA4C7.1000509@a1poweruser.com> In-Reply-To: <50AFA4C7.1000509@a1poweruser.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 16:53:54 -0000 On 23/11/2012 16:31, Fbsd8 wrote: > Installed pkgng as port. Converted my old pkg database to new format. > > Ran pkg delete for virtualbox package using it's full name from pkg > info. That worked fine. > > But it left behind all it's dependences. Command pkg autoremove says > there is noting to do. > > How do I find and remove orphaned packages? You can use pkg_cutleaves with pkgng in this sort of situation. The autoremove flags don't get set by pkg2ng unfortunately, as it can't tell what you installed explicitly by name and what was pulled in as a dependency. As you keep using pkgng, the autoremove flags will get set to more sane values and that feature will become more useful. Cheers, Matthew