Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Unrealircd on FreeBSD via the sysinstall utility.

I cannot seem to find the location where it was installed.

How can I find the default location of installed packages?

Edit: I found the package with the find utility. But in general, how do I know where sysinstall would put the package after installation?

share|improve this question
up vote 5 down vote accepted

You can find this information in /var/db/pkg/PKG_NAME/+CONTENTS:

/var/db/pkg/wget-1.12_2# head +CONTENTS 
@name wget-1.12_2
@comment ORIGIN:ftp/wget
@cwd /usr/local
@pkgdep libiconv-1.13.1_1
@comment DEPORIGIN:converters/libiconv
@pkgdep gettext-
@comment DEPORIGIN:devel/gettext

This is effectively the same as rpm -ql 'RPM_NAME' on linux

share|improve this answer

To find the package a file belongs to you can use the following command:

pkg_info -W /full/path/to/file

To see the list of files a package installed:

pkg_info -L packagename
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.