Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2005 22:59:54 -0700
From:      TuxGirl <tuxgirl@gmail.com>
To:        David Scheidt <dscheidt@panix.com>,  Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        questions@freebsd.org
Subject:   Re: pkg_add not installing lsof (and other programs)? (newbie problem)
Message-ID:  <6e4453640512142159x52751ec8hc8d03dafe5191dba@mail.gmail.com>
In-Reply-To: <20051215055315.GA21685@panix.com>
References:  <6e4453640512142139y1768b426m5ca21b9a87cbc7ca@mail.gmail.com> <20051215055315.GA21685@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> You can confirm that the package was installed by running the pkg_info
> command, which returns a list of all installed packages and ports.
> You can also look in /var/db/pkg, which is where the package database
> is kept.  Assuming you've got it installed (which you should, pkg_add
> returns error messages...) you've run into a difference between the
> root shells in FreeBSD and Linux.

Cool!

> The FreeBSD root user shell is tcsh.  tcsh, unlike bash, scans the
> $PATH enviornmental variable at login to find everything, and builds a
> table in memory so it can quickly find and execute commands.  If you
> install a program, the shell won't know about it.  You can force it to
> rebuild the table by issuing the 'rehash' command.

> Type:
>
>  rehash

Thanks to both of you.  That worked!  Is that in the handbook
someplace that I missed?
Also, if this is a question you get often, I apologize for asking it again.

Thanks again!
~Erin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6e4453640512142159x52751ec8hc8d03dafe5191dba>