Skip to content
Commits on Source (21)
......@@ -109,3 +109,4 @@ a937c14f0d728ba36c1afd91a6800282 ./slpkg-3.2.7.tar.gz
bd1ac24393c5cfdc8c7546fe9e9d0ff2 ./slpkg-3.2.9.tar.gz
d9b3a3a2903f2e3637b6f7d324f979b3 ./slpkg-3.3.0.tar.gz
65acf0561ba00fce3a012c0b76383292 ./slpkg-3.3.1.tar.gz
7eb3f0cd2d78fcd073420a5152ec14cd ./slpkg-3.3.2.tar.gz
3.3.3 - 01/01/2018
Updated:
- README.rst for python modules
- Remove python3 support temporarily until new Slackware version will be
release
- Slackware mirrors
3.3.2 - 21/10/2017
Fixed:
- Strange dependency problem (2) #97
......
.. image:: https://img.shields.io/github/release/dslackw/slpkg.svg
:target: https://github.com/dslackw/slpkg/releases
:target: https://github.com/dslackw/slpkg/releases
.. image:: https://travis-ci.org/dslackw/slpkg.svg?branch=master
:target: https://travis-ci.org/dslackw/slpkg
:target: https://travis-ci.org/dslackw/slpkg
.. image:: https://landscape.io/github/dslackw/slpkg/master/landscape.png
:target: https://landscape.io/github/dslackw/slpkg/master
:target: https://landscape.io/github/dslackw/slpkg/master
.. image:: https://img.shields.io/codacy/51c30a1fe61241edaab414ecde44488d.svg
:target: https://www.codacy.com/public/dzlatanidis/slpkg/dashboard
:target: https://www.codacy.com/public/dzlatanidis/slpkg/dashboard
.. image:: https://img.shields.io/pypi/dm/slpkg.svg
:target: https://pypi.python.org/pypi/slpkg
:target: https://pypi.python.org/pypi/slpkg
.. image:: https://img.shields.io/sourceforge/dt/slpkg.svg
:target: https://sourceforge.net/projects/slpkg/
:target: https://sourceforge.net/projects/slpkg/
.. image:: https://img.shields.io/badge/license-GPLv3-blue.svg
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
.. image:: https://img.shields.io/github/stars/dslackw/slpkg.svg
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
.. image:: https://img.shields.io/github/forks/dslackw/slpkg.svg
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
.. image:: https://img.shields.io/github/issues/dslackw/slpkg.svg
:target: https://github.com/dslackw/slpkg/issues
:target: https://github.com/dslackw/slpkg/issues
Slpkg v3.3.2
Slpkg v3.3.3
============
|
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/slpkg_package.png
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
|
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/poweredbyslack.gif
:target: http://www.slackware.com/
:target: http://www.slackware.com/
|
.. contents:: Table of Contents:
......@@ -79,15 +79,10 @@ Download latest release:
Required root privileges
$ tar xvf slpkg-3.3.2.tar.gz (don't delete the archive file after extract)
$ cd slpkg-3.3.2
$ tar xvf slpkg-3.3.3.tar.gz (don't delete the archive file after extract)
$ cd slpkg-3.3.3
$ ./install.sh
If you want to build slpkg for use with Python 3.x (needs the
optional dependency python3) pass the script PYTHON3=yes, like:
PYTHON3=yes ./install.sh
Installed as Slackware package
Uninstall:
......@@ -116,9 +111,9 @@ Using pip:
Binary packages:
Slackware: `slpkg-3.3.2-i586-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v3.3.2/slpkg-3.3.2-i586-1_dsw.txz>`_
Slackware: `slpkg-3.3.3-i586-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v3.3.3/slpkg-3.3.3-i586-1_dsw.txz>`_
Slackware64: `slpkg-3.3.2-x86_64-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v3.3.2/slpkg-3.3.2-x86_64-1_dsw.txz>`_
Slackware64: `slpkg-3.3.3-x86_64-1_dsw.txz <https://github.com/dslackw/slpkg/releases/download/v3.3.3/slpkg-3.3.3-x86_64-1_dsw.txz>`_
Optional dependencies
......@@ -403,13 +398,13 @@ Command Line Tool Usage
Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
_ _
___| |_ __ | | ____ _
/ __| | '_ \| |/ / _` |
\__ \ | |_) | < (_| |
|___/_| .__/|_|\_\__, |
|_| |___/
_ _
___| |_ __ | | ____ _
/ __| | '_ \| |/ / _` |
\__ \ | |_) | < (_| |
|___/_| .__/|_|\_\__, |
|_| |___/
_Slackware package manager_______
Commands:
update, --only=[...] Run this command to update all
the packages list.
......@@ -536,7 +531,7 @@ command.
$ slpkg repo-enable
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/repo_enable.png
:target: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps2.png
:target: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps2.png
If you use slpkg for the first time will have to create and update the package
......@@ -859,7 +854,7 @@ Drawing dependencies diagram:
$ slpkg -t sbo flexget --graph=image.x11
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps2.png
:target: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps2.png
:target: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps2.png
.. code-block:: bash
......@@ -884,7 +879,7 @@ Drawing dependencies diagram:
+--5: werkzeug is dependency --> Flask
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps3.png
:target: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps3.png
:target: https://raw.githubusercontent.com/dslackw/images/master/slpkg/deps3.png
Drawing dependencies ascii diagram:
......@@ -1547,20 +1542,20 @@ Remove packages using dialog utility:
$ slpkg -r _SBo --tag --checklist
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/pythondialog.png
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
.. code-block:: bash
$ slpkg -r Flask --check-deps --checklist
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/pythondialog2.png
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/pythondialog3.png
:target: https://github.com/dslackw/slpkg
:target: https://github.com/dslackw/slpkg
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/pythondialog4.png
:target: https://github.com/dslackw/slpkg
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/pythondialog4.png
:target: https://github.com/dslackw/slpkg
Build and install packages that have added to the queue:
......@@ -1660,13 +1655,191 @@ Man page it is available for full support:
$ man slpkg
Python modules
--------------
Slpkg has been designed it to work as cli tool however you can use some modules in your
own python code.
Get package dependencies from sbo repository:
.. code-block:: bash
>>> from slpkg.sbo.dependency import Requires
>>> Requires(flag="").sbo("vlc")
[['libass', 'libdc1394', 'libdvbpsi', 'libmpeg2', 'libupnp', 'lua', 'portaudio',
'twolame', 'opus', 'ffmpeg', 'libwebp', 'gsm', 'opencv', 'libtar', 'libkate', '
faac', 'libdca', 'libmatroska', 'libshout', 'speex', 'avahi', 'projectM', 'jack-
audio-connection-kit', 'libsidplay2', 'zvbi', 'faad2', 'libavc1394', 'libmodplug
', 'musepack-tools', 'vcdimager', 'dirac', 'gnome-vfs', 'live555', 'qt5', 'rtmpd
ump', 'libdvdcss', 'fluidsynth', 'schroedinger', 'libminizip', 'chromaprint', 'x
264', 'x265', 'libbluray'], ['libmp4v2'], ['libebml'], ['libdaemon'], ['ftgl'],
['libcuefile', 'libreplaygain'], ['gnome-mime-data', 'libbonobo'], ['ORBit2'], [
'libxkbcommon', 'libinput'], ['libwacom']]
Example from binary repository:
.. code-block:: bash
>>> from slpkg.binary.dependency import Dependencies
>>> Dependencies(repo="slonly", black="").binary(name"Flask", flag="")
[['Jinja2', 'click', 'itsdangerous', 'werkzeug'], ['MarkupSafe']]
Grab packages from sbo repository:
Get all package names:
.. code-block:: bash
>>> from slpkg.sbo.greps import SBoGrep
>>> SBoGrep(name="").names()
...
Grab package sources links:
.. code-block:: bash
>>> SBoGrep(name="jdk").source()
'http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe7
8cdb6d0/jdk-8u152-linux-x64.tar.gz'
Grap package requires:
.. code-block:: bash
>>> SBoGrep(name="Flask").requires()
['werkzeug', 'Jinja2', 'itsdangerous', 'click']
Grap package checksum:
.. code-block:: bash
>>> SBoGrep(name="Flask").checksum()
['97278dfdafda98ba7902e890b0289177']
Grap package description:
.. code-block:: bash
>>> SBoGrep(name="Flask").description()
'Flask (Microframework for Python)'
Grap package files:
.. code-block:: bash
>>> SBoGrep(name="Flask").files()
'Flask.SlackBuild Flask.info README slack-desc'
Grab packages for binary repository:
.. code-block:: bash
>>> from slpkg.binary.greps import repo_data
>>> from slpkg.binary.repo_init import RepoInit
>>> PACKAGES_TXT, mirror = RepoInit("slonly").fetch()
>>> name, location, size, unsize = repo_data(PACKAGES_TXT, repo="slonly", flag="")
Find package url from sbo repository:
.. code-block:: bash
from slpkg.sbo.search import sbo_search_pkg
>>> sbo_search_pkg(name="Flask")
'http://slackbuilds.org/slackbuilds/14.2/python/Flask/'
Check if the package exist in the binary repository:
.. code-block:: bash
>>> from slpkg.binary.search import search_pkg
>>> search_pkg(name="vlc", repo="alien")
'vlc'
Read files from sbo repository:
.. code-block:: bash
>>> from slpkg.sbo.search import sbo_search_pkg
>>> from slpkg.sbo.read import ReadSBo
>>> url = sbo_search_pkg(name="libreoffice")
>>> ReadSBo(url).readme("README")
'LibreOffice is a productivity suite that is compatible with other major\noffice
suites, and available on a variety of platforms. It is free\nsoftware and there
fore free to download, use and distribute.\n\nThis script builds a Slackware pac
kage from the official binary (RPM\'s)\ndistributed by The Document Foundation.
Everything needed by the\napplication should be built statically into it, so th
ere aren\'t any\ndependencies not satisfied by a normal installation.\n\nBe sure
to look at the script for some optional things you can do when\nbuilding.\n\nNO
TE: See the separate SlackBuild script for the language packs.\n\nNOTE2: To keep
LibreOffice installed concurrently with OpenOffice, run the\n included "o
pen-libre-together.sh" script saved in the documentation\n directory of th
is package to patch the .desktop menu files.\n\nNOTE3: LibreOffice versions chan
ge quite often. If the version for which\n this script was written is no l
onger available, look for it at:\n http://download.documentfoundation.org/
libreoffice/old/stable/\n It will go there after the next release.\n
You can also try building the newer version using:\n # VERSION="x.y.z" ./
libreoffice.SlackBuild\n This *might* work, but upstream has a habit of ch
anging the naming\n and structure of the files, etc. between versions, so:
YMMV.\n'
>>> ReadSBo(url).slackbuild("libreoffice", ".SlackBuild")
...
>>> ReadSBo(url).info("libreoffice", ".info")
'PRGNAM="libreoffice"\nVERSION="5.4.3"\nHOMEPAGE="http://www.libreoffice.org"\nD
OWNLOAD="http://download.documentfoundation.org/libreoffice/stable/5.4.3/rpm/x86
/LibreOffice_5.4.3_Linux_x86_rpm.tar.gz"\nMD5SUM="bada10945a979537ff42268462fc8b
de"\nDOWNLOAD_x86_64="http://download.documentfoundation.org/libreoffice/stable/
5.4.3/rpm/x86_64/LibreOffice_5.4.3_Linux_x86-64_rpm.tar.gz"\nMD5SUM_x86_64="4b0b
46a6d2df74a1446837ba76af07fd"\nREQUIRES="jdk"\nMAINTAINER="Willy Sudiarto Raharj
o"\nEMAIL="willysr@slackbuilds.org"\n'
>>> ReadSBo(url).doinst("doinst.sh")
'if [ -x /usr/bin/update-desktop-database ]; then\n /usr/bin/update-desktop-dat
abase -q usr/share/applications\nfi\n\nif [ -x /usr/bin/update-mime-database ];
then\n /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1\nfi\n\nif [
-x /usr/bin/gtk-update-icon-cache ]; then\n for theme in gnome locolor hicolor
; do\n if [ -e usr/share/icons/$theme/icon-theme.cache ]; then\n /usr/b
in/gtk-update-icon-cache -f usr/share/icons/$theme >/dev/null 2>&1\n fi\n do
ne\nfi\
Get Slackware version:
.. code-block:: bash
>>> from slpkg.slack.slack_version import slack_ver
>>> slack_ver()
'14.2'
Find Slackware package:
.. code-block:: bash
>>> from slpkg.pkg.find import find_package
>>> find_package(find_pkg="vlc", directory="/var/log/packages/")
['vlc-2.2.6-x86_64-1alien']
Check for installed packages:
.. code-block:: bash
>>> from slpkg.pkg.installed import GetFromInstalled
>>> GetFromInstalled(package="ffmpeg").name()
'ffmpeg'
>>> GetFromInstalled(package="ffmpeg").version()
'-3.2.4'
Donate
------
If you feel satisfied with this project and want to thanks me make a donation.
.. image:: https://github.com/dslackw/images/blob/master/donate/paypaldonate.png
:target: https://www.paypal.me/dslackw
:target: https://www.paypal.me/dslackw
Copyright
......
......@@ -3,7 +3,7 @@
# slpkg file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
......
......@@ -3,7 +3,7 @@
# clean.py file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
......
......@@ -2,7 +2,7 @@
#
# custom-repositories file is part of slpkg.
#
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Slpkg is a user-friendly package manager for Slackware installations.
......
......@@ -2,7 +2,7 @@
#
# default-repositories file is part of slpkg.
#
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Slpkg is a user-friendly package manager for Slackware installations.
......
......@@ -2,7 +2,7 @@
#
# pkg_security file is part of slpkg.
#
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Slpkg is a user-friendly package manager for Slackware installations.
......
......@@ -2,7 +2,7 @@
#
# repositories.conf file is part of slpkg.
#
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Slpkg is a user-friendly package manager for Slackware installations.
......
......@@ -2,7 +2,7 @@
#
# rlworkman.deps file is part of slpkg.
#
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Slpkg is a user-friendly package manager for Slackware installations.
......
......@@ -31,7 +31,8 @@
# below. Be careful is the template that the rest.
# ----------------------------------------------------------------------------
#
# Last Updated: Sun Oct 22 17:47:02 UTC 2017
#
# Last Updated: Mon Jan 1 08:47:02 UTC 2018
#
# Available https mirrors:
#
......@@ -55,6 +56,7 @@
# ie https://ftp.heanet.ie/mirrors/ftp.slackware.com/pub/slackware/
# it https://ba.mirror.garr.it/mirrors/Slackware/
# lt https://mirrors.atviras.lt/slackware/
# nl https://mirror.koddos.net/slackware/
# nl https://mirror.nl.leaseweb.net/slackware/
# pl https://ftp.slackware.pl/pub/slackware/
# pl https://sunsite.icm.edu.pl/pub/Linux/slackware/
......@@ -75,6 +77,8 @@
# us https://mirrors.kernel.org/slackware/
# us https://mirrors.syringanetworks.net/slackware/
# us https://mirrors.xmission.com/slackware/
# us https://slackware.absolutehosting.net/pub/slackware/
#
#
#
# Available http mirrors:
......@@ -132,6 +136,7 @@
# za http://slackware.mirror.ac.za/
#
#
#
# Available ftp mirrors:
#
# au ftp://ftp.swin.edu.au/slackware/
......@@ -196,6 +201,7 @@
# us ftp://mirror.us.leaseweb.net/slackware/
# us ftp://mirrors.syringanetworks.net/slackware/
# us ftp://mirrors.xmission.com/slackware/
# us ftp://slackware.absolutehosting.net/pub/slackware/
# us ftp://slackware.cs.utah.edu/slackware/
# us ftp://slackware.mirrors.tds.net/pub/slackware
# za ftp://ftp.is.co.za/mirror/ftp.slackware.com/pub/
......
......@@ -2,7 +2,7 @@
#
# slpkg.conf file is part of slpkg.
#
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Slpkg is a user-friendly package manager for Slackware installations.
......
......@@ -2,7 +2,7 @@
# install.sh file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
......@@ -22,10 +22,6 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# If you want to build slpkg for use with Python 3.x (needs the
# optional dependency python3) pass the script PYTHON3=yes, like:
# PYTHON3=yes ./install.sh
__version() {
# Grab version from __metadata_.py file
cat slpkg/__metadata__.py | grep "__version_info__ = (" \
......
......@@ -282,7 +282,7 @@ Additional options:
.PP
\fB--case-ins\fP : Search package name in repository with case insensitive.
.SS -f, --find, find istalled packages
.SS -f, --find, find installed packages
\fBslpkg\fP \fB-f\fP <\fInames of packages\fP>, \fI--case-ins\fP
.PP
Find installed packages with view total file size.
......
......@@ -10,5 +10,3 @@
# pygraphviz >= 1.3.1 (drawing dependencies diagram)
# perl 5 language and graph-easy >= 0.75 (drawing dependencies ascii diagram)
# python2-pythondialog >= 3.3.0 (Python interface to the UNIX dialog utility)
# python3-pythondialog >= 3.3.0 (Python interface to the UNIX dialog utility)
# python3 (for support Python 3.x)
......@@ -3,7 +3,7 @@
# setup.py file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
......
......@@ -64,7 +64,7 @@ fi
set -e
PYTHON=python
[ "${PYTHON3:-no}" = "yes" ] && PYTHON=python3
# [ "${PYTHON3:-no}" = "yes" ] && PYTHON=python3
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
......@@ -83,11 +83,12 @@ find -L . \
# avoid install man page and configuration files over setup.py
sed -i 's/if "install"/if ""/' setup.py
# Python 3 support
if [ "$PYTHON3" = "yes" ]; then
sh convert-py3k
cd py3k/$PRGNAM
fi
# Python 3 support temporarily is out until new Slackware version
# will be release
# if [ "$PYTHON3" = "yes" ]; then
# sh convert-py3k
# cd py3k/$PRGNAM
#fi
$PYTHON setup.py install --root=$PKG
......
......@@ -3,7 +3,7 @@
# __metadata__.py file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
......@@ -78,7 +78,7 @@ class MetaData(object):
__all__ = "slpkg"
__author__ = "dslackw"
__version_info__ = (3, 3, 2)
__version_info__ = (3, 3, 3)
__version__ = "{0}.{1}.{2}".format(*__version_info__)
__license__ = "GNU General Public License v3 (GPLv3)"
__email__ = "d.zlatanidis@gmail.com"
......
......@@ -3,7 +3,7 @@
# arguments.py file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
......@@ -39,12 +39,13 @@ def options():
Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
_ _
___| |_ __ | | ____ _
/ __| | '_ \| |/ / _` |
\__ \ | |_) | < (_| |
|___/_| .__/|_|\_\__, |
|_| |___/
_ _
___| |_ __ | | ____ _
/ __| | '_ \| |/ / _` |
\__ \ | |_) | < (_| |
|___/_| .__/|_|\_\__, |
|_| |___/
_Slackware package manager_______
Commands:
update, --only=[...] Run this command to update all
......
......@@ -3,7 +3,7 @@
# auto_pkg.py file is part of slpkg.
# Copyright 2014-2017 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# Copyright 2014-2018 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
# All rights reserved.
# Slpkg is a user-friendly package manager for Slackware installations
......