Removing Packages

There is no front end in /stand/sysinstall for removing packages; you really don't need one, since once a package is installed, you have all the tools you need for gathering information about it.

Use pkg_info to see which packages you have installed, as we saw earlier. You can also simply look in /var/db/pkg; the directory names are the same as the package names. After you have the name of the package you want to delete, simply use pkg_delete to remove it:

# pkg_delete roxen-1.3.111

If the package has any dependencies, pkg_delete will detect them and refuse to proceed unless you've run it with the -f option to force deinstallation. It will also attempt to run any deinstallation scripts and evaluate any “require” statements; ...

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.