Skip to main content

Utility to help package management in Slackware

Project description

https://badge.fury.io/py/slpkg.png https://pypip.in/d/slpkg/badge.png https://pypip.in/license/slpkg/badge.png https://raw.githubusercontent.com/dslackw/slpkg/master/logo/slpkg.png

Slpkg is a terminal tool , written in Python that allows the build, upgrade, remove, find and view Slackware packages contents.

It’s a quick and easy way to manage your packages in slackware to a command.

Note: the program is being developed.

Installation

Using slackware command:

Download from http://slackbuilds.org
using sbopkg tool http://www.sbopkg.org

Using pip:

$ pip install slpkg

uninstall:

$ pip uninstall slpkg

Command Line Tool Usage

usage: slpkg [-h] [-v] [-s script source] [-l all, sbo [all, sbo ...]] [-n]
             [-i] [-u] [-a] [-r] [-f] [-d]

Utility to help package management in Slackware

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         print version and exit
  -s script source, --slackbuild script source
                        auto build package
  -l all, sbo [all, sbo ...], --list all, sbo [all, sbo ...]
                        list of installed packages
  -n , --network        find from SBo repositority
  -i , --install        install binary package
  -u , --upgrade        install-upgrade package with new
  -a , --reinstall      reinstall the same package
  -r , --remove         remove package
  -f , --find           find if package installed
  -d , --display        display the contents of the package

Slpkg Examples

Find slackbuild from network (www.slackbuilds.org):

$ slpkg -n termcolor
Searching for `termcolor` Please wait ...

The `termcolor` found in --> http://slackbuilds.org/repository14.1/python/termcolor/

Auto build tool to build package:

Etc. download from www.slackbuilds.org the package termcolor
http://slackbuilds.org/repository/14.1/python/termcolor/

Two files termcolor.tar.gz and termcolor-1.1.0.tar.gz
must be in the same directory.

$ slpkg -s termcolor.tar.gz termcolor-1.1.0.tar.gz

termcolor/
termcolor/slack-desc
termcolor/termcolor.info
termcolor/README
termcolor/termcolor.SlackBuild
termcolor-1.1.0/
termcolor-1.1.0/CHANGES.rst
termcolor-1.1.0/COPYING.txt
termcolor-1.1.0/README.rst
termcolor-1.1.0/setup.py
termcolor-1.1.0/termcolor.py
termcolor-1.1.0/PKG-INFO
running install
running build
running build_py
creating build
creating build/lib
copying termcolor.py -> build/lib
running install_lib
creating /tmp/SBo/package-termcolor/usr
creating /tmp/SBo/package-termcolor/usr/lib64
creating /tmp/SBo/package-termcolor/usr/lib64/python2.7
creating /tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages
copying build/lib/termcolor.py -> /tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages
byte-compiling /tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages/termcolor.py to termcolor.pyc
running install_egg_info
Writing /tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages/termcolor-1.1.0-py2.7.egg-info

Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/termcolor-1.1.0-x86_64-1_SBo.tgz

./
usr/
usr/lib64/
usr/lib64/python2.7/
usr/lib64/python2.7/site-packages/
usr/lib64/python2.7/site-packages/termcolor.py
usr/lib64/python2.7/site-packages/termcolor.pyc
usr/lib64/python2.7/site-packages/termcolor-1.1.0-py2.7.egg-info
usr/doc/
usr/doc/termcolor-1.1.0/
usr/doc/termcolor-1.1.0/termcolor.SlackBuild
usr/doc/termcolor-1.1.0/README.rst
usr/doc/termcolor-1.1.0/CHANGES.rst
usr/doc/termcolor-1.1.0/PKG-INFO
usr/doc/termcolor-1.1.0/COPYING.txt
install/
install/slack-desc

Slackware package /tmp/termcolor-1.1.0-x86_64-1_SBo.tgz created.

Upgrade install or upackage:

$ slpkg -u /tmp/termcolor-1.1.0-x86_64-1_SBo.tgz

+==============================================================================
| Installing new package ./termcolor-1.1.0-x86_64-1_SBo.tgz
+==============================================================================

Verifying package termcolor-1.1.0-x86_64-1_SBo.tgz.
Installing package termcolor-1.1.0-x86_64-1_SBo.tgz:
PACKAGE DESCRIPTION:
# termcolor (ANSII Color formatting for output in terminal)
#
# termcolor allows you to format your output in terminal.
#
# Project URL: https://pypi.python.org/pypi/termcolor
#
Package termcolor-1.1.0-x86_64-1_SBo.tgz installed.

Find if your package installed:

$ slpkg -f termcolor
The package 'termcolor' is installed on your system

Display the contents of the package:

$ slpkg -d termcolor

PACKAGE NAME:     termcolor-1.1.0-x86_64-1_SBo
COMPRESSED PACKAGE SIZE:     8.0K
UNCOMPRESSED PACKAGE SIZE:     60K
PACKAGE LOCATION: ./termcolor-1.1.0-x86_64-1_SBo.tgz
PACKAGE DESCRIPTION:
termcolor: termcolor (ANSII Color formatting for output in terminal)
termcolor:
termcolor: termcolor allows you to format your output in terminal.
termcolor:
termcolor:
termcolor: Project URL: https://pypi.python.org/pypi/termcolor
termcolor:
termcolor:
termcolor:
termcolor:
FILE LIST:
./
usr/
usr/lib64/
usr/lib64/python2.7/
usr/lib64/python2.7/site-packages/
usr/lib64/python2.7/site-packages/termcolor.py
usr/lib64/python2.7/site-packages/termcolor.pyc
usr/lib64/python2.7/site-packages/termcolor-1.1.0-py2.7.egg-info
usr/lib64/python3.3/
usr/lib64/python3.3/site-packages/
usr/lib64/python3.3/site-packages/termcolor-1.1.0-py3.3.egg-info
usr/lib64/python3.3/site-packages/__pycache__/
usr/lib64/python3.3/site-packages/__pycache__/termcolor.cpython-33.pyc
usr/lib64/python3.3/site-packages/termcolor.py
usr/doc/
usr/doc/termcolor-1.1.0/
usr/doc/termcolor-1.1.0/termcolor.SlackBuild
usr/doc/termcolor-1.1.0/README.rst
usr/doc/termcolor-1.1.0/CHANGES.rst
usr/doc/termcolor-1.1.0/PKG-INFO
usr/doc/termcolor-1.1.0/COPYING.txt
install/
install/slack-desc

Remove package:

$ slpkg -r termcolor
!!! WARNING !!!
Are you sure to remove this package [y/n] y

Package: termcolor-1.1.0-x86_64-1_SBo
        Removing...

Removing package /var/log/packages/termcolor-1.1.0-x86_64-1_SBo...
Removing files:
  --> Deleting /usr/doc/termcolor-1.1.0/CHtermcolor-1.1.0.tar.gzANGES.rst
  --> Deleting /usr/doc/termcolor-1.1.0/COPYING.txt
  --> Deleting /usr/doc/termcolor-1.1.0/PKG-INFO
  --> Deleting /usr/doc/termcolor-1.1.0/README.rst
  --> Deleting /usr/doc/termcolor-1.1.0/termcolor.SlackBuild
  --> Deleting /usr/lib64/python2.7/site-packages/termcolor-1.1.0-py2.7.egg-info
  --> Deleting /usr/lib64/python2.7/site-packages/termcolor.py
  --> Deleting /usr/lib64/python2.7/site-packages/termcolor.pyc
  --> Deleting /usr/lib64/python3.3/site-packages/__pycache__/termcolor.cpython-33.pyc
  --> Deleting /usr/lib64/python3.3/site-packages/termcolor-1.1.0-py3.3.egg-info
  --> Deleting /usr/lib64/python3.3/site-packages/termcolor.py
  --> Deleting empty directory /usr/lib64/python3.3/site-packages/__pycache__/
WARNING: Unique directory /usr/lib64/python3.3/site-packages/ contains new files
WARNING: Unique directory /usr/lib64/python3.3/ contains new files
  --> Deleting empty directory /usr/doc/termcolor-1.1.0/


$ slpkg -f termcolor
The package 'termcolor' is not installed on your system

$ slpkg -d termcolor
The package 'termcolor' is not found

$ slpkg -v
Version: x.x.x

Man page it is available for full support:

$ man slpkg

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slpkg-1.1.1.tar.gz (33.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page