DEV.MD / Developer Network
Search:     Advanced search
Browse by category:
Glossary | Contact Us

Remove all installed packages and ports on FreeBSD

Add comment
Views: 823
Votes: 0
Comments: 0
Posted: 14 Aug, 2009
by: Zavadschi S.
Updated: 14 Aug, 2009
by: Zavadschi S.
This post provides the steps required to remove every installed package and port on a FreeBSD system. By following the bellow steps you'll end up with a barebones system composed by FreeBSD's userland and kernel without any third party applications.
  1. % su
  2. # pkg_delete -f -a
  3. # rm -rf /var/db/pkg /usr/local
We've started by using pkg_delete to remove all packages and finished by deleting every traces of them in the system.
Others in this Category
document Mount ISO image in FreeBSD
document Updating the Ports Collection on FreeBSD
document CVsup sources
document IPFW - Configuring Firewalls
document Operating with aliases on Ethernet interfaces
document FreeBSD Apache HTTP Accept Filter Error
document Identify PCI Devices in FreeBSD
document How to change a MAC address in FreeBSD
document Installation and Configuration of Nginx FastCGI PHP
document How can I tell how much RAM is installed on a FreeBSD box?



RSS