From owner-freebsd-questions@FreeBSD.ORG Fri Mar 27 02:08:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3ED6C1065670 for ; Fri, 27 Mar 2009 02:08:03 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id C442E8FC0A for ; Fri, 27 Mar 2009 02:08:02 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by ewy19 with SMTP id 19so812898ewy.43 for ; Thu, 26 Mar 2009 19:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1BGTKRim5O9vGoYJ39yZ3zvh61jZm/c6LL/V6pib5Bk=; b=v3yYVwFl4znAGNxFiVMi+rhJD6JlZBKL6twXMOMdYJXKbgo07IvB+TeaW5HM+ZKNzp EkRelU+ldHCnb20LDcZ8K7vxmgMLSCj+f4keDJ4u+jaTiBcH+pgAqOT6tl0qg+VTXcVR A+4OJPyx/b4zPdXuwTaNDCV93ZJzNP/Ztfhqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mvBRWmCqHArwQ/OwLEgKh553vpgz4uZ9vCpCLAuFXV2fGxgz/l7V3P0bO5nYlORI56 mvJOJA1YLRlbwbyVHRUJKWna437bDfSSr9TBatL34AKrF2biE/V+Gud0kRj/r+tz8Keh LA3+Xv8Y5MuEhXqxyeStxqhQpH99U2AcdJypM= MIME-Version: 1.0 Received: by 10.210.18.8 with SMTP id 8mr1210359ebr.27.1238119681942; Thu, 26 Mar 2009 19:08:01 -0700 (PDT) In-Reply-To: <200903270205.n2R254v0003403@banyan.cs.ait.ac.th> References: <200903270205.n2R254v0003403@banyan.cs.ait.ac.th> Date: Thu, 26 Mar 2009 22:08:01 -0400 Message-ID: <4ad871310903261908h1bba0b1fq3d96f19ed52a9fc8@mail.gmail.com> From: Glen Barber To: Olivier Nicole Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to list all the installed packages... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 02:08:03 -0000 On Thu, Mar 26, 2009 at 10:05 PM, Olivier Nicole wrote: > Hi, > > Is there a way to show a list of all installed packages that are not > required by any other package? > > Some thing like "pkg_info -aR" where the Required by: field is empty. > > Ultimately, that would give a list of "software" versus "libraries". > > The question arise because, while installing a new machine, I found > out that I have help2man installed, that is not required by any other > package, that I did not install myself, that looks unneeded to me > (until I may need it one day). So I would remove it; and would like to > make a list of what is removable (that I did not install, and that is > not required). > Have a look at the ports-mgmt/pkg_cutleaves port. -- Glen Barber