How to install or add a package in FreeBSD

To install a Port: (ImageMagick as an example)

cd /usr/ports/graphics/ImageMagick/ && make install clean

If you do not have a source of local packages (such as a FreeBSD CD-ROM set) then it will probably be easier to use the -r option to pkg_add(1). This will cause the utility to automatically determine the correct object format and release and then fetch and install the package from an FTP site.

pkg_add -r lsof

The example above would download the correct package and add it without any further user intervention.

pkg_info(1) is a utility that lists and describes the various packages installed.

To remove a previously installed software package, use the pkg_delete(1) utility.

pkg_delete xchat-1.7.1

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.