From owner-freebsd-questions@FreeBSD.ORG Tue Oct 25 18:57:36 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D573316A41F for ; Tue, 25 Oct 2005 18:57:36 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9256D43D45 for ; Tue, 25 Oct 2005 18:57:36 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 74F1B1A3C31; Tue, 25 Oct 2005 11:57:36 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id F0E7C511FD; Tue, 25 Oct 2005 14:57:35 -0400 (EDT) Date: Tue, 25 Oct 2005 14:57:35 -0400 From: Kris Kennaway To: Pat Maddox Message-ID: <20051025185735.GC63163@xor.obsecurity.org> References: <810a540e0510251124p54c35257m8fd819d591cfe955@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IpbVkmxF4tDyP/Kb" Content-Disposition: inline In-Reply-To: <810a540e0510251124p54c35257m8fd819d591cfe955@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD Questions Subject: Re: What packages can I deinstall? 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: Tue, 25 Oct 2005 18:57:37 -0000 --IpbVkmxF4tDyP/Kb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 25, 2005 at 12:24:25PM -0600, Pat Maddox wrote: > I've got a bunch of packages installed on my machine and I'd like to > know if I can deinstall any of them. I know what a lot of them do, > and know what will happen if I deinstall them. Others, I'm not really > sure. For example I've got a package named cclient > (http://www.freshports.org/mail/cclient/) installed. If I run > pkg_deinstall -n cclient, it says that it'd be removed without any > problems. So evidently no other package is depending on > this...perhaps it's just an artifact from a package I installed a > while back but deinstalled? >=20 > Basically I'd like to clear out any unused packages. Is it safe to > just run on pkg_deinstall -n on any package I don't recognize, and if > it isn't required as a dependency for another package go ahead and > delete it? You probably want pkg_cutleaves. If you're not using portupgrade, it's possible that your dependency database may be inconsistent (e.g. if you've done pkg_delete -f or failed to uninstall old versions before installing new ones over the top). Run pkgdb -F to check consistency first. Kris --IpbVkmxF4tDyP/Kb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDXoAfWry0BWjoQKURAsviAKCL1obE01SxlEkwZQhlluWG4igkMgCggGTk F/J4ffl/LnrbkPMAkd25Q7k= =4LlZ -----END PGP SIGNATURE----- --IpbVkmxF4tDyP/Kb--