From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 08:34:50 2003 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 0F01E16A4CE for ; Mon, 15 Dec 2003 08:34:49 -0800 (PST) Received: from ns1.tcbug.org (12-218-40-24.client.mchsi.com [12.218.40.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id C646343D4B for ; Mon, 15 Dec 2003 08:34:47 -0800 (PST) (envelope-from friar_josh@ns1.tcbug.org) Received: by ns1.tcbug.org (Postfix, from userid 1003) id 645BABA24; Mon, 15 Dec 2003 10:34:14 +0000 (GMT) From: Josh Paetzel To: Darryl Hoar Message-ID: <20031215103413.GC2482@ns1.tcbug.org> References: <06e501c3c325$e96e6bc0$0701a8c0@darryl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06e501c3c325$e96e6bc0$0701a8c0@darryl> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Removing a program 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: , Date: Mon, 15 Dec 2003 16:34:50 -0000 X-Original-Date: Mon, 15 Dec 2003 10:34:13 +0000 X-List-Received-Date: Mon, 15 Dec 2003 16:34:50 -0000 On Mon, Dec 15, 2003 at 10:10:08AM -0600, Darryl Hoar wrote: > Greetings, > I installed phpBB from the ports on my 4.7 box. Went fine. > Had my phpBB bulletin boards hacked, even after applying > all the patches from phpbb.com. My current version of > phpBB is 2.0.0_1. All they suggested was install the new > version of phpBB and make sure I look for patches. > > So... Since I installed phpBB from the ports, how do I remove > the program? I want to download phpBB from their site and > install it clean. > > thanks for any help, > -Darryl You can find the exact name of the package using pkg_info and then pkg_delete it using a command similar to this: #pkg_delete `pkg_info | grep phpBB | awk {'print $1'}` Please note that this will delete any package with phpBB in the name or title or description, so use it with caution. What you'll most likely find is that pkg_de;ete won't be able to delete the entire port, since it can only delete things it knows about. It's not going to be able to delete patched binaries, or the directories that those binaries are residing in. The other thing it won't be able to delete is the mysql databases that phpBB uses. All of these things will have to be hunted down by hand. pkg_delete will however complain about files and directories you can't delete, so that will at least give you a starting point to work from. Hope this helps, Josh Paetzel