From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 02:57:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9367D16A4CE for ; Sun, 30 Nov 2003 02:57:54 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA3CF43F3F for ; Sun, 30 Nov 2003 02:57:52 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hAUAvDKU002143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Nov 2003 10:57:43 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hAUAvAeP002136; Sun, 30 Nov 2003 10:57:10 GMT (envelope-from matthew) Date: Sun, 30 Nov 2003 10:57:10 +0000 From: Matthew Seaman To: Xpression Message-ID: <20031130105710.GE885@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Xpression , FreeBSD-questions References: <000701c3b6e8$7ef773c0$0901a8c0@bloodlust> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ILuaRSyQpoVaJ1HG" Content-Disposition: inline In-Reply-To: <000701c3b6e8$7ef773c0$0901a8c0@bloodlust> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD-questions Subject: Re: No reference to files ??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 10:57:54 -0000 --ILuaRSyQpoVaJ1HG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 29, 2003 at 09:20:17PM -0500, Xpression wrote: > Hi all, I'm wondering if there is a way to show man > pages and access files like if they were on $PATH, I mean > when I compile a package and install it, there are no > reference to man pages and the "executable" like when I > install it from the CD... I don't really understand what you're asking here. Do you mean something like -- "If I have more than one version of a program installed at different locations on my $PATH, can I arrange for the man(1) command to show me the man page corresponding to the version of the program that comes first on the $PATH?" If so, then: "Yes". In fact it happens automatically. eg: % env PATH=3D/usr/local/bin:$PATH man dig | head -10 DIG(1) = DIG(1) =20 =20 =20 NAME dig - DNS lookup utility =20 SYNOPSIS dig [ @server ] [ -b address ] [ -c class ] [ -f filename = ] [ -k filename ] [ -p port# ] [ -t type ] [ -x addr ] [ -y name:ke= y ] [ which is the man page for dig(1) from the bind9 port -- compare to: % man dig | head -10 DIG(1) FreeBSD General Commands Manual = DIG(1) =20 NAME dig -- send domain name query packets to name servers =20 SYNOPSIS dig [@server] domain [] [] [+] [-] [%comment] =20 DESCRIPTION =20 which is the man page for dig(1) from the bind8 version bundled with the system. This is all controlled by the manpath(1) utility built into the man(1) command. See also /etc/manpath.config=20 % manpath /usr/share/man:/usr/local/man:/usr/X11R6/man:/usr/local/jdk1.4.2/man:/u= sr/share/perl/man:/usr/share/openssl/man:/usr/local/lib/perl5/5.8.2/man:/us= r/local/lib/perl5/5.00503/man If you want to overrule where or in what order the man command searches for man pages, you can tell it to look in specific places on the command line: % man -M /usr/local/man:/usr/X11R6/man dig If you want to see what man pages are available for a specific command: % man -a -w dig /usr/share/man/cat1/dig.1.gz (source: /usr/share/man/man1/dig.1.gz) /usr/local/man/cat1/dig.1.gz (source: /usr/local/man/man1/dig.1.gz) There's plenty of other knobs to twiddle to do with the man command, all described faithfully in various man pages, but I'll leave it as an exercise for you to find them. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ILuaRSyQpoVaJ1HG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/yc0GdtESqEQa7a0RAoU9AKCaZgrjYBNQx21vnnyYJHbiKRbiiACghmmZ XH7slxUydzyjMnsoEK7/3F0= =cZIh -----END PGP SIGNATURE----- --ILuaRSyQpoVaJ1HG--