Removing and Updating Packages

There is no front end in Sysinstall for removing packages. You really don’t need one because once a package is installed, you can specify its name directly using the commandline package management tools.

You can use pkg_info to see which packages you have installed, as you learned earlier. You can also simply look in /var/db/pkg; the directory names in there 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, like this:

# pkg_delete pine-4.60

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 ...

Get FreeBSD6 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.