From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 16:47:27 2005 Return-Path: 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 3809216A4CE for ; Mon, 21 Feb 2005 16:47:27 +0000 (GMT) Received: from male.aldigital.co.uk (male.thebunker.net [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5611543D2D for ; Mon, 21 Feb 2005 16:47:26 +0000 (GMT) (envelope-from matthew@thebunker.net) Received: from gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by male.aldigital.co.uk (Postfix) with ESMTP id B4E0997672; Mon, 21 Feb 2005 16:47:24 +0000 (GMT) Received: from gravitas.thebunker.net (localhost [127.0.0.1]) j1LGlHNo071695; Mon, 21 Feb 2005 16:47:17 GMT (envelope-from matthew@gravitas.thebunker.net) Received: (from matthew@localhost) by gravitas.thebunker.net (8.13.1/8.13.1/Submit) id j1LGlGRD071691; Mon, 21 Feb 2005 16:47:16 GMT (envelope-from matthew) Date: Mon, 21 Feb 2005 16:47:16 +0000 From: Matthew Seaman To: Ean Kingston Message-ID: <20050221164716.GC13862@gravitas.thebunker.net> Mail-Followup-To: Matthew Seaman , Ean Kingston , Liste FreeBSD References: <20050218190046.GA78619@gravitas.thebunker.net> <1082.216.220.59.169.1108756494.squirrel@216.220.59.169> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="c3bfwLpm8qysLVxt" Content-Disposition: inline In-Reply-To: <1082.216.220.59.169.1108756494.squirrel@216.220.59.169> User-Agent: Mutt/1.5.8i cc: Liste FreeBSD Subject: Re: Deinstalling perl module installed using CPAN X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 16:47:27 -0000 --c3bfwLpm8qysLVxt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 18, 2005 at 02:54:54PM -0500, Ean Kingston wrote: >=20 > > On Fri, Feb 18, 2005 at 03:55:52PM +0100, BSD todoo wrote: > > > >> How to deinstall a perl module (bsdpan-MailTools-1.64) that has been > >> installed using CPAN ? > > > > # pkg_delete bsdpan-MailTools-1.64 >=20 > If it was installed with CPAN, it is not in the FreeBSD package database > so how is a pkg_delete going to uninstall it? >=20 > Last time I checked, CPAN did not have an uninstall option. Does anyone > know any better? >=20 > I think you can get an install list out of the source (which might be > somewhere in ~/.cpan) and remove all the appropriate files by hand but > this might leave perl in an unstable state. Not so. On FreeBSD, the CPAN modules are by default extended so that any packages installed from CPAN will be registered in the FreeBSD pkg database, including the list of all of the files installed by that package. You /can/ cleanly deinstall packages from CPAN under FreeBSD -- but don't try this with other OSes. That's what the BSDPAN stuff downloaded along with the perl source is all about, and why all those packages with a 'bsdpan' prefix start appearing... The thing that's missing from the bsdpan- packages is a package origin directory -- quite sensibly really, as there isn't any such thing. That means that things like portupgrade can't deal with bsdpan-* and you can't use the normal ports means to work out which of those packages have updates available. Other than that, bsdpan-* packages are regular FreeBSD pkgs. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 8 Dane Court Manor School Rd PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone Tel: +44 1304 617253 Kent, CT14 0JL UK --c3bfwLpm8qysLVxt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iQCVAwUBQhoQlJr7OpndfbmCAQIBCAP9EwBeDZMnvwj7hVOrgdpqSwwDAfFsTxB+ MTIl5PKyjSp43cuYQmJUiEnaHmNtROFuc46xrGqKKD5hga9b7gZYlNHKTYBIquuf vm2n3VLDEBn8oIvk7vMDQ0DvIyk/f4366Oy2ZlGgF4dKGsZthhIrzanlWkggQSFK Oy/ep5z3qgA= =R21h -----END PGP SIGNATURE----- --c3bfwLpm8qysLVxt--