SLACK-UTILS(8)

NAME
slack-utils - simple slackware sys-admin tools

SYNOPSIS
slp [-c|--color] [[-p|--pkg] PACKAGE_NAME] [[-V|--Version] VERSION_STRING] [[-a|--arch] ARCH] [[-b|--build] BUILD_NUM] [[-t|--tag] TAG] [one or more package names]

slf [-c|--color] [[-p|--pkg] PACKAGE_NAME] [[-V|--Version] VERSION_STRING] [[-a|--arch] ARCH] [[-b|--build] BUILD_NUM] [[-t|--tag] TAG] <one or more file names>

slt [-c|--color] [-e|--epoch] [[-p|--pkg] PACKAGE_NAME] [[-V|--Version] VERSION_STRING] [[-a|--arch] ARCH] [[-b|--build] BUILD_NUM] [[-t|--tag] TAG] [one or more package names]

sll [-c|--color] [[-p|--pkg] PACKAGE_NAME] [[-V|--Version] VERSION_STRING] [[-a|--arch] ARCH] [[-b|--build] BUILD_NUM] [[-t|--tag] TAG] [-f|--force] [one or more package names]

sli [[-p|--pkg] PACKAGE_NAME] [[-V|--Version] VERSION_STRING] [[-a|--arch] ARCH] [[-b|--build] BUILD_NUM] [[-t|--tag] TAG] [one or more package names]

slu [[-p|--pkg] PACKAGE_NAME] [[-t|--tag] TAG] [-f|--force] [one or more package names]

slo

slfindlinked <full path to libfile>

DESCRIPTION
slack-utils prints information related to slackware packages installed. This is written in Ruby, and should be fine for ruby-1.8 or ruby-1.9. Updates are welcome :-)

  slp
By default will list all slackware packages currently installed. Any [package names] passed after the command, are printed if matched. These args can be ruby regex expressions. For example:
    $> slp rsync xorg.*nest
    rsync-3.0.7-x86_64-1
    xorg-server-xnest-1.7.7-x86_64-2
    $> slp -t vb -p pony
    my-little-pony-1.1-x86_64-1_vb

  slf
Requires an argument. Any [file(s)] passed after the command, are printed if matched. These args can be ruby regex expressions. For example:
    $> slf kdmrc lilo$
    kdebase-workspace-4.4.5-x86_64-1: usr/share/doc/HTML/en/kdm/kdmrc-ref.docbook
    kdebase-workspace-4.4.5-x86_64-1: etc/kde/kdm/kdmrc.new
    lilo-22.8-x86_64-15: sbin/lilo
    syslinux-3.84-x86_64-2: usr/bin/keytab-lilo

  sll
Requires an argument. The files owned by [package name(s)], are printed if matched. These args can be ruby regex expressions. For example:
    $> sll -p radeontool
    usr/
    usr/bin/
    usr/bin/radeontool
    usr/bin/avivotool
    install/
    install/slack-desc

  slu
Requires an argument. Shows the upgrade history for matching packages. Any strings passed are searched for installed packages, or using flags. It is possible to show upgrade history for all packages, but requires a flags to overide. These args can be ruby regex expressions. For example:
    $> slu bash
    "bash" (current version 4.2.010 build 1vb) has been upgraded before
      3.1.017 build 2 upgraded on  2010-06-01 22:07:33 -0400
      4.1.007 build 1 upgraded on  2011-03-11 10:04:08 -0500
      4.1.010 build 1 upgraded on  2011-08-10 14:24:49 -0400
    "bash-completion" (current version 1.3 build 4) has been upgraded before
      1.1 build 3 upgraded on  2011-02-28 08:43:56 -0500
      1.3 build 1 upgraded on  2011-03-02 08:58:46 -0500
      1.3 build 2 upgraded on  2011-03-22 09:42:45 -0400
      1.3 build 3 upgraded on  2011-04-22 12:02:57 -0400
    $> slu -p ^bash$
    "bash" (current version 4.2.010 build 1vb) has been upgraded before
      3.1.017 build 2 upgraded on  2010-06-01 22:07:33 -0400
      4.1.007 build 1 upgraded on  2011-03-11 10:04:08 -0500
      4.1.010 build 1 upgraded on  2011-08-10 14:24:49 -0400

  sli
By default will list the information for all slackware packages currently installed. The header of the installed package is displayed. These args can be ruby regex expressions. For example:
    $> sli -p aaa_base
    aaa_base-13.37-x86_64-3: COMPRESSED SIZE: 4K
    aaa_base-13.37-x86_64-3: UNCOMPRESSED SIZE: 90K
    aaa_base-13.37-x86_64-3: aaa_base (Basic Linux filesystem package)
    aaa_base-13.37-x86_64-3:
    aaa_base-13.37-x86_64-3: Sets up the empty directory tree for Slackware and adds an email to
    aaa_base-13.37-x86_64-3: root's mailbox welcoming them to Linux. :)  This package should be
    aaa_base-13.37-x86_64-3: installed first, and never uninstalled.
    aaa_base-13.37-x86_64-3:
    aaa_base-13.37-x86_64-3:
    aaa_base-13.37-x86_64-3:
    aaa_base-13.37-x86_64-3:
    aaa_base-13.37-x86_64-3:
    aaa_base-13.37-x86_64-3:

  slt
By default will list all slackware packages currently installed, and their mtime/install time. Any [package names] passed after the command, are printed if matched. These args can be ruby regex expressions. For example:
    $> slt radeontool-1.6.1-x86_64-1 rsync
    radeontool-1.6.1-x86_64-1: 2010-06-01 22:40:42 -0400
    rsync-3.0.7-x86_64-1: 2010-06-01 22:41:08 -0400
    $> slt -e -p kernel-generic
    kernel-generic-2.6.37.5-x86_64-1 : 1300975233

  slo
This utility searches for orphaned configuration files, that had been installed as .new files, but the owning package is no longer installed.
TODO this utility and concept could take some loving.
    $> slo
    XXX - NEEDS an example

  slfindlinked
Requires an argument. (and please be patient ;) Prints the package name and file that are linked to the <libname> that is passed as an argument.
    $> slfindlinked libgmp
    guile-1.8.7-x86_64-3: usr/lib64/libguile-srfi-srfi-60-v-2.so.2.0.2 linked to libgmp.so.10
    soprano-2.4.64-x86_64-1: usr/lib64/soprano/libsoprano_redlandbackend.so linked to libgmp.so.10
    php-5.2.14-x86_64-1: usr/lib64/php/extensions/gmp.so linked to libgmp.so.10
    [...]

SEE ALSO
slack-utils(3)