Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 17:22:45 +0200 (CEST)
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        Fox <fox@fr.clara.net>
Cc:        Freebsd-Questions <freebsd-questions@freebsd.org>
Subject:   Re: cmd to run after installing a new FreeBSD package
Message-ID:  <20030618172113.W4772-100000@foem>
In-Reply-To: <20030618151833.GD9056@fr.clara.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 18 Jun 2003, Fox wrote:

> > There is a FreeBSD command that you should run after installing a package,
> > which will 'refresh' the path.  After running this command, you will have
> > access to the new package command (ie. lynx).  It saves you having to logout
> > and relog back in.

This depends on your shell. Some require the use of the command

	rehash

csh and bash I think are guilty of this. The real shell /bin/sh is fine
and will pick it up itself.

>From man csh
           rehash  Causes the internal hash table of the contents of the
                   directories in the path variable to be recomputed.  This is
                   needed if new commands are added to directories in the path
                   while you are logged in.  This should only be necessary if
                   you add commands to one of your own directories, or if a
                   systems programmer changes the contents of a system direc-
                   tory.


Dw



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