12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

System Configuration—Software Package ManagementMetafiles also include information about dependencies, and where each file or folderis installed. The package may optionally include any script that is needed during theinstallation and the removal of the package.The pkg_add(1) command takes a package, extracts the contents, and installs thepackage according to the instruction in the bundled metafiles. Optionally, if thepackage is not available in the current directory, you can specify -r argument inthe command line to tell pkg_add to <strong>download</strong> the appropriate package from thepackage repository on the FreeBSD project's FTP server:# pkg_add -r tcpreplayFetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/tcpreplay.tbz... Done.You can see how to install a package with a single command. The pkg_add commanduses the metafiles to find out the packages that are needed for the dependency of thispackage and install them if they are not already installed.Note that using -r switch tells pkg_add to <strong>download</strong> a package from an onlineFreeBSD package repository. The pkg_add utility connects to the FreeBSD project'sFTP server and <strong>download</strong>s the latest available package based on the currentlyinstalled version of FreeBSD.You can also <strong>download</strong> any third-party FreeBSD packages and use the pkg_add toinstall the <strong>download</strong>ed package files. While most of the packages are available onlinefrom the public repositories, there are certain packages that are not available due tolicensing restrictions. Such software should be installed using the ports system thatinstructs users to retrieve software, manually, for installation.Packages that are available on the FreeBSD online repository have passedseveral tests to ensure that they are compatible with the FreeBSD'sguidelines. It is always recommended that you <strong>download</strong> packages fromthe FreeBSD's repository instead of any third-party sources.In order to remove an installed package, you can use pkg_delete(1). This is shownin the following command:# pkg_delete -ix tcpreplaydelete tcpreplay-2.3.5_1? Y[ 50 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!