FreeBSD: Removing Unused Dependencies

This post will guide you how to remove unused or unwanted dependency packages in your FreeBSD. How do I use the pkg command to remove all unneeded packages on Free BSD. How to remove orphan packages in FreeBSD.

Removing Unused Dependencies


You can use the pkg command with the autoremove option to remove all unused dependency packages in your FreeBSD server. so you can execute one of the following command:
# pkg autoremove
Or
# pkg -n autoremove
Or
#pkg -y autoremove
If you want to remove one specified unused package called fio-3.2 in FreeBSD, you can use the pkg remove command to achieve it. type:
#pkg remove fio-3.2

You might also like:

Sidebar



back to top