Software Installation and Removal Commands


Command

Action

pkg_info

Displays a list of packages installed on the system, along with a short description of each package. (See Chapter 16, "Installing Additional Software.")

pkg_add packagename

Installs the software package packagename onto the system. The -r option allows pkg_add to fetch the package from the Internet rather than making you download it first. (See Chapter 16.)

pkg_delete packagename

Removes the software package packagename from the system. (See Chapter 16.)

make

When issued from a port directory, this command obtains the port files and builds the port. Otherwise, and more generally, it's used for compiling software based on targets specified in a file called Makefile. (See Chapter 16.)

make install

When issued from a port directory, this command installs the port if it has already been built. If not, the command obtains the necessary files and builds the port first. (See Chapter 16.)

make deinstall

When issued from a port directory, this command removes the installed port from the system. It will also remove any dependencies that are not required by some other installed port or package. (See Chapter 16.)

make clean

When issued from a port directory, this command removes the work files and object files created when building the port, reclaiming the hard disk space used by them. (See Chapter 16.)

make distclean

When issued from a port directory, this command removes the work files and object files created when building the port as well as the source distribution files that were obtained, reclaiming the hard disk space used by them. (See Chapter 15.)


Note

The make clean command does not uninstall the port, nor does it remove the original archive file that was downloaded.





FreeBSD 6 Unleashed
FreeBSD 6 Unleashed
ISBN: 0672328755
EAN: 2147483647
Year: 2006
Pages: 355
Authors: Brian Tiemann

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net