From owner-freebsd-questions@FreeBSD.ORG Fri Dec 1 13:46:09 2006 Return-Path: X-Original-To: questions@freebsd.org 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 4D1CD16A415 for ; Fri, 1 Dec 2006 13:46:09 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DA1F43CAC for ; Fri, 1 Dec 2006 13:45:53 +0000 (GMT) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id CA5B313CC80 for ; Fri, 1 Dec 2006 14:46:05 +0100 (CET) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by merke.itea.ntnu.no (Postfix) with SMTP for ; Fri, 1 Dec 2006 14:46:04 +0100 (CET) Received: (qmail 8964 invoked by uid 88); 1 Dec 2006 14:46:04 +0100 Received: from 10.84-48-62.nextgentel.com (HELO [10.0.0.2]) (84.48.62.10) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Fri, 01 Dec 2006 14:45:45 +0100 Message-ID: <457031F1.2060006@lvor.halvorsen.cc> Date: Fri, 01 Dec 2006 14:45:21 +0100 From: Svein Halvor Halvorsen User-Agent: Thunderbird 1.5.0.2 (X11/20060522) MIME-Version: 1.0 To: Graham Bentley References: <001301c714ab$c6a42dc0$1c07a8c0@CPC> In-Reply-To: <001301c714ab$c6a42dc0$1c07a8c0@CPC> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDDDDA9924E091B3D13A0F6EF" X-Virus-Checked: Checked X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: questions@freebsd.org, roberthuff@rcn.com Subject: Re: simple question...how to show packages which depend upon 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, 01 Dec 2006 13:46:09 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDDDDA9924E091B3D13A0F6EF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Graham Bentley wrote: >> Example: you install Z, which depends on Y, which depends in X, >> ..., which depends on Q. >> What if Q is "xorg-server-6.9.0_1"? >=20 > I installed 'feh' thinking wrongly it was a console app and ended up > getting x, xlibs etc etc when all I wanted was a console app to view > jpgs in elinks. So, the above is exactly what I wanted. Ok, so you may want x-org-server deleted, by what about some other dependency that your unwanted app shares with some port you really do want to keep around? I find pkg_cutleaves handy. It will loop through all the leaves of your dependency tree (all ports that do not have any other ports dependant on them), and asks if you want to keep or delete it. After the ports tree is cleaned up, it will ask you to repeat the process for any ports that may have become leaves as a result of the previous iteration. When I look through the pkg_info list, I usually don't know what all the installed ports do, I why I need it. But i usually do know if I need a leaf or not. Svein Halvor --------------enigDDDDA9924E091B3D13A0F6EF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key iD8DBQFFcDH3hQg3vZGYu0ARAl8KAJ9qlM9pcUJ2hzoxndUmQhYeqGGM2wCePdmb NHtfJNAUqX7OQoYR3sw9aLM= =aAFz -----END PGP SIGNATURE----- --------------enigDDDDA9924E091B3D13A0F6EF--