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 ManagementThat is all you need to do, to install a port. In the above example, the ports systemlooked for the required files, <strong>download</strong>ed the files which were not available locally,checked the <strong>download</strong>ed files against the local checksums, extracted tarball intothe work directory, looked for required dependencies, and finally built the softwarefrom the source code. Once the build process is done, the ports system installs theapplication in the appropriate path under the /usr/local hierarchy.When you run make install, the ports system automatically runs allsteps required to install the port, including fetch, extract, patch, andso on. In fact you do not need to run all the steps every time you installa port. In most cases, running make install will be enough to installa port.When you install a port, the ports system creates a directory called work under theport directory, where all the build processes are done. Once the port is installed, youdo not need this directory anymore. You should run make clean in order to cleanupthe work directory.You can combine several different arguments into a single command, likemake install clean, which installs the package and then removes thestale work directory after installation.Removing an installed package is possible using make deinstall command. Youshould change your current directory to the port's directory that you want to removeand run make deinstall:# cd /usr/ports/net-mgmt/sjitter/# make deinstall===> Deinstalling for net-mgmt/sjitter===> Deinstalling sjitter-0.14bUsing make deinstall, you can remove all the files that are installedby the application during the installation, excluding the files that werecreated by the application after the installation. You may want to get abackup from the configuration, or the data files of a specific port, beforeactually removing that port for your future reference.Some ports may let you choose various build-time options, before it is built. In thiscase, you will be presented a dialog box that offers you a few items to choose from.Once you finish selecting the options, the port will start the build procedure basedon the options you have specified. These options will also be saved and used the nexttime you want to install this port (perhaps for upgrade reasons). If for any reason[ 54 ]

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

Saved successfully!

Ooh no, something went wrong!