Removing a program

Josh Paetzel friar_josh at tcbug.org
Mon Dec 15 08:34:50 PST 2003


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



More information about the freebsd-questions mailing list