Re: No reference to files ???

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 11/30/03

  • Next message: Ion-Mihai Tetcu: "A fast / batch way for checking mp3 and movies ?"
    Date: Sun, 30 Nov 2003 10:57:10 +0000
    To: Xpression <admin@atenas.cult.cu>
    
    
    

    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=/usr/local/bin:$PATH man dig | head -10
        DIG(1) DIG(1)
        
        
        
        NAME
               dig - DNS lookup utility
        
        SYNOPSIS
               dig [ @server ] [ -b address ] [ -c class ] [ -f filename ] [ -k
               filename ] [ -p port# ] [ -t type ] [ -x addr ] [ -y name:key ] [

    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)
        
        NAME
             dig -- send domain name query packets to name servers
        
        SYNOPSIS
             dig [@server] domain [<query-type>] [<query-class>] [+<query-option>]
                 [-<dig-option>] [%comment]
        
        DESCRIPTION
        

    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

        % manpath
        /usr/share/man:/usr/local/man:/usr/X11R6/man:/usr/local/jdk1.4.2/man:/usr/share/perl/man:/usr/share/openssl/man:/usr/local/lib/perl5/5.8.2/man:/usr/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

    -- 
    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
    
    


    • application/pgp-signature attachment: stored

  • Next message: Ion-Mihai Tetcu: "A fast / batch way for checking mp3 and movies ?"

    Relevant Pages

    • Re: Strange problem with apt
      ... I didn't know about the dpkg-divert command but yeah, ... Now any time I try using apt or dpkg, ... > now as I can't install or uninstall that package using apt or dpkg. ...
      (Ubuntu)
    • Re: Newbie and SMS2003
      ... you're configured to use admin rights. ... That command line looks OK. ... > Here's an example of what it says an unattended install would ... > The package doesn't seem to 'install', more advertise itself, like ...
      (microsoft.public.sms.setup)
    • Re: [SLE] Re: Wireless Network () - Not working
      ... You can install the rpm package from command line as follows: ... The package management program 'rpm' will process the installation without ...
      (SuSE)
    • Re: install jdk 1.6 on aix 5.3 - missing Requisite Failures
      ... The way aix installed is similar to the linux rpm command, ... i.e. the command will resolve all the package dependencies. ... How does the install program knows about it. ...
      (comp.unix.aix)
    • RE: fedora-list Digest, Vol 12, Issue 203
      ... >the Install programs app to get all the Development stuff at once. ... >Yes, I have tried running it from the command line, it just died with no ... >which defaulted to LVM use on a single drive. ... > O splendente, che vieni dalle sorgenti del Nilo, ...
      (Fedora)