Re: files<->packages?

From: Joseph Tam (tam_at_math.ubc.ca)
Date: 06/14/04

  • Next message: Marek Antozi: "Re: files<->packages?"
    Date: Mon, 14 Jun 2004 01:59:56 -0700 (PDT)
    To: Alex Owen <rao3@leicester.ac.uk>
    
    

    On Fri, 11 Jun 2004, Alex Owen wrote:

    > On Thu, 10 Jun 2004, Jonathan Burelbach wrote:
    > > pkginfo -l <pkgname> - provide details information on a package.
    > > pkgchk -l <pkgname> - provides the file listing of a package
    > > pkgchk -lp <filename> - tells you what package the file came from
    >
    > But do these commands tell you about packages you have not yet installed?

    No. I usually compile my own catalogue list by a small awk script from the
    Solaris installation CDs. It's handy to do quick lookups of which packages you
    need to if want to install something (or which package to delete if you want
    to remove something).

    The format is simple if you peruse through it

            /cdrom/Solaris_?/Product/*/pkgmap

    This script makes 2 files: Info (compilation of package information) and Files
    (files associated with each package. I used it for Solaris 9. Season to
    taste:

            #!/bin/sh

            #
            # Grab description info for all packages from Solaris installation CD
            #
            GREP="/usr/local/bin/grep -E"
            AWK=/usr/local/bin/gawk
            EXPAND=/usr/local/bin/expand
            DIR=/cdrom/Solaris_9/Product

            if [ -d $DIR/SUNWcsr ]; then
                    echo Found SUNWcsr. Doing disk \#1
                    VERSION=1
            else
                    echo Did not find SUNWcsr. Doing disk \#2
                    VERSION=2
            fi

            rm -f Info Files

            for f in $DIR/*; do

                    PKG=`basename $f`

                    if [ -f $f/pkginfo ]; then
                            $GREP '^(NAME|DESC)=' $f/pkginfo | \
                                    sed -e "s,^,$VERSION $PKG ," | \
                                    expand --tabs=16 >> Info
                    fi

                    if [ -f $f/pkgmap ]; then
                            $AWK -v PKG="$PKG" -v VERSION="$VERSION" < $f/pkgmap '
                                    $2=="f" {
                                            printf "%1s %-14s %s\n", VERSION, PKG, $4
                                    }

                                    $2=="l" {
                                            f = gensub(/=/," == ",1,$4)
                                            printf "%1s %-14s %s\n", VERSION, PKG, f
                                    }

                                    $2=="s" {
                                            f = gensub(/=/," -> ",1,$4)
                                            printf "%1s %-14s %s\n", VERSION, PKG, f
                                    }' >> Files
                    fi
            done

    Joseph Tam <tam@math.ubc.ca>


  • Next message: Marek Antozi: "Re: files<->packages?"

    Relevant Pages

    • Re: dist-upgrade problem (was Re: /etc/modutils/0keep: line 9: keep: command not found)
      ... Reading package fields... ... i t does not have execute permission ... installation script returned error exit status 100. ...
      (Debian-User)
    • Re: Trying to get PackMan to install GCC
      ... A repository can be tested consistent (ie all dependencies of all programs ... control, but RISC OS shared libraries (which are essentially ready, just ... Additional filecan describe what the package manager ... Readmes after installation, or the app needs to do something sensible on ...
      (comp.sys.acorn.apps)
    • Re: Finding installed package files
      ... >, and who is going to supply this documentation. ... > is a package with the common man pages for the thousand odd common commands ... tell me, as an installation option for some large packages, what was ... >>a set of commands and 'man' pages, could produce such a directory to make it ...
      (alt.os.linux.redhat)
    • Security Update for Microsoft Data Access Components (KB832483)
      ... : An error occurred while setup was trying to ... verify the version of Microsoft Data Access Components ... package returned FALSE, or there was a fatal error while ... installation. ...
      (microsoft.public.windowsupdate)
    • Re: bits/news from the users of Debian?
      ... "Le bottin des jeux Linux" speaks about 800 Linux games and i hope that's growing. ... I start with Debian, then test Mandrake because it seem's at this time very complicated. ... I think graphics interface for installation is a good thing: you have make a good job! ... I use Debian Sid and I have experiment a lot of problem some years ago because i install too recent package on Sid which are not well tested. ...
      (Debian-User)