Thanks Cal,

JBanks
--- Cal Evans <[EMAIL PROTECTED]> wrote:
> Tim Mattson wrote:
> 
> > Check in the "World" favorites file.  It should be in /var/cache/db ...?
> > 
> > 
> > You can do a "locate world" and it'll give you a good indication of the
> > file.
> > 
> > 
> > 
> > -----Original Message-----
> > From: Joshua Banks [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, September 05, 2003 7:24 AM
> > To: [EMAIL PROTECTED]
> > Subject: [gentoo-user] How to list all installed packages?
> > 
> > 
> > Whats the command to list all installed packages?
> > 
> > Thanks,
> > JBanks
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> > 
> > --
> > [EMAIL PROTECTED] mailing list
> > 
> > 
> > 
> > --
> > [EMAIL PROTECTED] mailing list
> > 
> 
> This is not public yet but it's a script I've been working on for a few 
> weeks.
> 
> save it to your HD, give it execute permissions and then type:
> ./tracker.sh -s -c
> This will produce a CSV file in the same dir named tracker.output.  Suck 
> this into Excel and it will show you everything installed on your machine.
> 
> ./tracker.sh -h will give you more info. If you are bored, read the 
> code.
> 
> HTH,
> =C=
> 
> 
> -- 
> * Cal Evans
> * http://www.eicc.com
> * We take care of your IT,
> * So you can take care of your business.
> > #!/bin/bash
> #
> # Name:
> # tracker.sh
> #
> # Author:
> # Cal Evans <[EMAIL PROTECTED]>
> #
> # Description :
> # Client part of ebuild Tracker.
> # Run it in a cron job every night or call it after every emerge. Either way it 
> # gathers all the ebuilds installed on this machine and transmits them to the 
> # server for processing.
> #
> # Copyright:
> # (c) 2003 Cal Evans <[EMAIL PROTECTED]>
> #
> # License : 
> # GPL 2.0
> #
> # Requirements :
> # curl (net-ftp/curl)
> # md5sum (sys-apps/textutils)
> #
> # Examples:
> # ./tracker.sh -v -s
> # Verbose Stand-alone mode
> #
> # ./tracker.sh -s -c
> # Stand-alone mode, create the standard CSV  output file that can be imported 
> # into a spreadsheet.
> #
> # ./tracker.sh -S billy.bobs.tracker.server.com 
> # Gather the info and upload to billy.bobs.tracker.server.com 
> #
> # TODO:
> # Need to pass in authentication information when updating the server.
> # Capture machine profile
> #
> # NOTES:
> #===============================================================================
> # Version 1.0 : Thursday, July 24, 2003
> # Initial Coding Began.
> #
> # Version 1.1 : Saturday, August 02, 2003
> # Changed the way that ebuilds are gathered.
> #
> # Version 1.2 : Wednesday, September 03, 2003
> # Copied the parser routine from masterTracker.sh.  It's much faster than the 
> # original.
> #
> ################################################################################
> #
> # DEFAULTS. If you don't want to pass information in on the command line then 
> # set these to what you want them to be in the config file. DON'T CHANGE THESE!
> #
> DEFAULTTRACKERSERVER="192.168.0.122"
> DEFAULTURL="/tracker.php"
> DEFAULTPROTOCOL="http://";
> DEFAULTOUTPUTFILE=./tracker.output
> DEFAULTCONFIGFILE=/etc/ebuildTracker/ebuildTracker.conf
> SOURCEDIR=/var/db/pkg/
> 
> #
> # Init needed variables
> #
> TRACKERSERVER=""
> URL=""
> PROTOCOL=""
> OUTPUTFILE=""
> KERNEL=""
> MACHINENAME=""
> ACCOUNTID=""
> MACHINEID=""
> CHECKSUM=""
> STANDALONEMODE=0
> VERBOSEMODE=0
> REGISTERMODE=0
> CSVOUTPUTMODE=0
> 
> #
> # If we have a config file, source it.
> #
> if [ -a $DEFAULTCONFIGFILE ]
> then
>       . $DEFAULTCONFIGFILE
> fi
> 
> #
> # Functions
> #
> print_usage() {
> cat << EOT
> tracker.sh - Client portion of the ebuildTracker system 
> (c) 2003 Cal Evans ([EMAIL PROTECTED])
> Released under GPL 2.0
> (http://www.calevans.com/ebuildTracker)
> 
> ./tracker.s [-h] [--help] 
>             [-s] [--stand-alone]
>             [-v] [--VERBOSEMODE]
>             [[-S] [--server] SERVER]
>             [[-c] [-csv-output] FILENAME]
>             [[-r] [-register] ACCOUNTID]
> 
> EOT
> }
> 
> 
> print_help() {
>         print_usage
> cat <<EOT
> 
>   -h
>   --help 
>     This message
>   -s
>   --stand-alone
>     Stand alone mode. Do not try to upload information to a server.
>   -S
>   --server SERVER IP or SERVER NAME
>     If connecting to a tracker server you can specify the ip address or the name of 
> the 
>       server here. If not specified, it will connect to the default in the code.
>   -v
>   --VERBOSEMODE
>     Display all the information gathered in a cryptic manner only discernable by 
>     true geeks.   
>   -c
>   --csv-output FILENAME
>     Write the information to a file name FILENAME in CSV format.
> 
>   -r
>   --register ACCOUNTID
>     Register server with a tracker server. This will collect some initial 
> information 
>       about the server and hand back a hash to identify the machine for future 
>       connections. If available. The hash will be stored in 
>       /etc/ebtracker/ebtracker.conf. You must supply an account id when you 
>       register a server. 
>   
> Examples:
> 
>   ./tracker.sh -v -s
>   VERBOSEMODE Stand-alone mode
> 
>   ./tracker.sh -s -c
>   Stand-alone mode, create the standard CSV  output file
> 
>   ./tracker.sh -S billy.bobs.tracker.server.com 
>   Upload the data to billy.bobs.tracker.server.com 
>    
> EOT
> exit 0
> }
> 
> 
> verify_dep() {
> 
>         needed="curl mktemp cat rm awk ebuild md5sum hostname"
>         for i in `echo $needed`
>         do
>                 type $i > /dev/null 2>&1 /dev/null
>                 if [ $? -eq 1 ]
>                 then
>                         echo "I am missing an important component : $i"
>                         echo "Cannot continue, sorry, try to find the missing one..."
>                         exit 3
>                 fi
>         done
> }
> 
> 
> #
> # Process Command line parameters
> #
> while test $# -gt 0
> do
>         
>         case "$1" in
>                 -h|--help)
>                                       print_help
>                                       exit 0
>                                       ;;
>                 -s|--stand-alone)
>                                       STANDALONEMODE=1
>                                       ;;
>                 -S|--server)
>                                       if [ -n "$SERVER" ]
>                                       then
>                                               echo "Only one tracker server can be 
> specified."
>                                               echo ""
>                                               print_help
>                                               exit 3
>                                       fi
>                                       # Need some checking here to make sure this is 
> not a parameter.
>                                       shift
>                                       TRACKERSERVER=$1
>                                       ;;                
>                               -v|--VERBOSEMODE)
>                                       VERBOSEMODE=1
>                                       ;;
>                               -r|--register)
> 
=== message truncated ===> --
> [EMAIL PROTECTED] mailing list


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

--
[EMAIL PROTECTED] mailing list

Reply via email to