5.7. Working With Installed Ports
Prev | Chapter 5. Installing Applications: Packages and Ports | Next

## 5.7. Working With Installed Ports

Most third party applications will need some level of configuration after they were installed. This may be a simple configuration file alteration, or perhaps the application will just generate a configuration file. Most applications will have documentation installed into `/usr/local/share/doc` and manual pages. This documentation should be consulted before continuing. Some applications run services which must be added to the `/etc/rc.conf` file before starting.

The following list contains useful information for post-install port management. In several cases, finding the location of binaries if they were installed outside of the `PATH`. Users of csh(1) should run `rehash` to rebuild the known binary list in the shells `PATH`.

- The pkg_info(1) command will print all installed files and their location. For example, if the FooPackage version 1.0.0 was just installed, then the following command will show all the files installed with the package.

  `#` `pkg_info -L `foopackage-1.0.0` | less`

  Configuration files are always installed in `/usr/local/etc` and should definitely be consulted before attempting to use the new application.

  To determine which version of the application was installed:

  `#` `pkg_info | grep -i `foopackage``

  will find all the installed packages that have `foopackage` in the package name. Replace `foopackage` as necessary.

- These commands will also show the names of any manual pages installed with the application. This additional documentation will now be available to the man(1) command.

- If the application has a web site, consult it for additional documentation or a frequently asked questions page. If the website is unknown, the following command will be useful to print out this information if it's available.

  `#` `pkg_info `foopackage-1.0.0``

  A `WWW:` line, if present, should provide a URL for the application's web site.

- Ports that should start at boot time usually install a startup script in `/usr/local/etc/rc.d`. Review this script for correctness and edit or rename it if needed. See Starting Services for more information.

Prev | Up | Next
5.6. Using the Ports Collection | Home | 5.8. Dealing with Broken Ports

This, and other documents, can be downloaded from http://ftp.FreeBSD.org/pub/FreeBSD/doc/

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.