cmd to run after installing a new FreeBSD package

2003-06-18 Thread Paul Hamilton
Hi all,

I read this here in the list, and (I think), read it somewhere in
Urban-TieMann's FreeBSD Unleashed, great book.

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.

I have used it once, but it was some time ago and have forgotten it :-(

Any Hints...


Cheers,

Paul Hamilton


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cmd to run after installing a new FreeBSD package

2003-06-18 Thread Markie
# rehash

:)

- Original Message -
From: Paul Hamilton [EMAIL PROTECTED]
To: Freebsd-Questions [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 4:14 PM
Subject: cmd to run after installing a new FreeBSD package


 Hi all,

 I read this here in the list, and (I think), read it somewhere in
 Urban-TieMann's FreeBSD Unleashed, great book.

 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.

 I have used it once, but it was some time ago and have forgotten it :-(

 Any Hints...


 Cheers,

 Paul Hamilton


 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cmd to run after installing a new FreeBSD package

2003-06-18 Thread Fox
Le Wed, Jun 18, 2003 at 11:14:27PM +0800, Paul Hamilton ecrivait:
 Hi all,
 
 I read this here in the list, and (I think), read it somewhere in
 Urban-TieMann's FreeBSD Unleashed, great book.
 
 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.
 
 I have used it once, but it was some time ago and have forgotten it :-(
 
 Any Hints...
Talking about /usr/libexec/locate.updatedb maybe ?

-- 
[EMAIL PROTECTED]
Claranet France
--
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cmd to run after installing a new FreeBSD package

2003-06-18 Thread Dirk-Willem van Gulik


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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: cmd to run after installing a new FreeBSD package

2003-06-18 Thread Paul Hamilton
Thanks Dirk-Willem and Markie,

That was the command I was after.  Thanks for that!

Cheers,

Paul Hamilton


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dirk-Willem van
Gulik
Sent: Wednesday, 18 June 2003 11:23 PM
To: Fox
Cc: Paul Hamilton; Freebsd-Questions
Subject: Re: cmd to run after installing a new FreeBSD package




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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]