mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
updated for version 1.6.9
This commit is contained in:
parent
9591db7f71
commit
9c318564b8
23 changed files with 285 additions and 189 deletions
12
CHANGELOG
12
CHANGELOG
|
@ -1,3 +1,15 @@
|
||||||
|
|
||||||
|
04-08-2014
|
||||||
|
Version 1.6.9
|
||||||
|
|
||||||
|
[Updated] - Remove non-useful code
|
||||||
|
Fix /tmp/slpkg/readme/ path create
|
||||||
|
|
||||||
|
[Feature] - Added build path, drop all packages in Slpkg_Build directory
|
||||||
|
Added build and install packages only if new version available and
|
||||||
|
package not installed (slpkg -s sbo)
|
||||||
|
Added display installed packages in tracking dependencies
|
||||||
|
|
||||||
01-08-2014
|
01-08-2014
|
||||||
Version 1.6.8
|
Version 1.6.8
|
||||||
|
|
||||||
|
|
142
PKG-INFO
142
PKG-INFO
|
@ -1,11 +1,12 @@
|
||||||
Metadata-Version: 1.1
|
Metadata-Version: 1.1
|
||||||
Name: slpkg
|
Name: slpkg
|
||||||
Version: 1.6.8
|
Version: 1.6.9
|
||||||
Author: dslackw
|
Author: dslackw
|
||||||
Author-email: d zlatanidis at gmail com
|
Author-email: d zlatanidis at gmail com
|
||||||
Maintainer: dslackw
|
Maintainer: dslackw
|
||||||
Maintainer-email: d zlatanidis at gmail com
|
Maintainer-email: d zlatanidis at gmail com
|
||||||
Home-page: https://github.com/dslackw/slpkg
|
Home-page: https://github.com/dslackw/slpkg
|
||||||
|
Download-url: http://sourceforge.net/projects/slpkg
|
||||||
Summary: Utility for easy management packages in Slackware
|
Summary: Utility for easy management packages in Slackware
|
||||||
Description: .. image:: https://badge.fury.io/py/slpkg.png
|
Description: .. image:: https://badge.fury.io/py/slpkg.png
|
||||||
:target: http://badge.fury.io/py/slpkg
|
:target: http://badge.fury.io/py/slpkg
|
||||||
|
@ -13,14 +14,20 @@ Description: .. image:: https://badge.fury.io/py/slpkg.png
|
||||||
:target: https://pypi.python.org/pypi/slpkg
|
:target: https://pypi.python.org/pypi/slpkg
|
||||||
.. image:: https://pypip.in/license/slpkg/badge.png
|
.. image:: https://pypip.in/license/slpkg/badge.png
|
||||||
:target: https://pypi.python.org/pypi/slpkg
|
:target: https://pypi.python.org/pypi/slpkg
|
||||||
|
.. image:: https://raw.githubusercontent.com/dslackw/images/master/slpkg/logo.png
|
||||||
|
:target: https://github.com/dslackw/slpkg
|
||||||
|
|
||||||
Slpkg is a terminal multitool in order to easy use Slackware packages.
|
Slpkg is a terminal multitool in order to easy use `Slackware
|
||||||
|
<http://www.slackware.com/>`_ packages.
|
||||||
|
|
||||||
Features
|
Features
|
||||||
========
|
========
|
||||||
|
|
||||||
- Build packages from source with all dependencies
|
- Build third party packages from source with all dependencies
|
||||||
- Find and Download packages from slackbuilds.org
|
- Install packages through from official `Slackware <http://www.slackware.com/>`_
|
||||||
|
mirrors
|
||||||
|
- Find and Download packages from `slackbuilds.org <http://slackbuilds.org/>`_
|
||||||
|
- Grabs packages from slackbuilds.org in real time
|
||||||
- Automatic tool build and install packages
|
- Automatic tool build and install packages
|
||||||
- Check if your distribution is up to date
|
- Check if your distribution is up to date
|
||||||
- Display the contents of the packages
|
- Display the contents of the packages
|
||||||
|
@ -34,7 +41,8 @@ Description: .. image:: https://badge.fury.io/py/slpkg.png
|
||||||
- Remove packages
|
- Remove packages
|
||||||
- No dependencies
|
- No dependencies
|
||||||
|
|
||||||
It's a quick and easy way to manage your packages in slackware
|
It's a quick and easy way to manage your packages in `Slackware
|
||||||
|
<http://www.slackware.com/>`_
|
||||||
to a command.
|
to a command.
|
||||||
|
|
||||||
`[CHANGELOG] <https://github.com/dslackw/slpkg/blob/master/CHANGELOG>`_
|
`[CHANGELOG] <https://github.com/dslackw/slpkg/blob/master/CHANGELOG>`_
|
||||||
|
@ -44,22 +52,12 @@ Description: .. image:: https://badge.fury.io/py/slpkg.png
|
||||||
|
|
||||||
.. image::
|
.. image::
|
||||||
https://raw.githubusercontent.com/dslackw/images/master/slpkg/screenshot-1.png
|
https://raw.githubusercontent.com/dslackw/images/master/slpkg/screenshot-1.png
|
||||||
:target: https://asciinema.org/a/11059
|
:target: https://asciinema.org/a/11183
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Using slackware command:
|
Using `pip <https://pip.pypa.io/en/latest/>`_ (best way to have last updates):
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
Download from SlackBuilds http://slackbuilds.org
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
using sbopkg tool SBOPKG http://www.sbopkg.org
|
|
||||||
|
|
||||||
Using pip:
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -69,14 +67,28 @@ https://raw.githubusercontent.com/dslackw/images/master/slpkg/screenshot-1.png
|
||||||
|
|
||||||
$ pip uninstall slpkg
|
$ pip uninstall slpkg
|
||||||
|
|
||||||
|
Using Slackware command:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
Download http://slackbuilds.org/repository/14.1/system/slpkg from
|
||||||
|
slackbuilds.org
|
||||||
|
|
||||||
|
using SBOPKG http://www.sbopkg.org
|
||||||
|
|
||||||
|
Download binary package from SourceForge:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
Download https://sourceforge.net/projects/slpkg
|
||||||
|
|
||||||
Command Line Tool Usage
|
Command Line Tool Usage
|
||||||
-----------------------
|
=======================
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
usage: slpkg [-h] [-v] [-a script [source ...]]
|
usage: slpkg [-h] [-v] [-a script [source ...]]
|
||||||
[-l all, sbo, slack, noarch, other [all, sbo, slack, noarch,
|
[-l all, sbo, slack, noarch, other]
|
||||||
other ...]]
|
|
||||||
[-c sbo, slack [sbo, slack ...]]
|
[-c sbo, slack [sbo, slack ...]]
|
||||||
[-s sbo, slack [sbo, slack ...]] [-t] [-n] [-i [...]]
|
[-s sbo, slack [sbo, slack ...]] [-t] [-n] [-i [...]]
|
||||||
[-u [...]] [-o [...]] [-r [...]] [-f [...]] [-d [...]]
|
[-u [...]] [-o [...]] [-r [...]] [-f [...]] [-d [...]]
|
||||||
|
@ -88,19 +100,19 @@ other ...]]
|
||||||
-v, --verbose print version and exit
|
-v, --verbose print version and exit
|
||||||
-a script [source ...]
|
-a script [source ...]
|
||||||
auto build package
|
auto build package
|
||||||
-l all, sbo, slack, noarch, other [all, sbo, slack, noarch, other ...]
|
-l all, sbo, slack, noarch, other
|
||||||
list of installed packages
|
list of installed packages
|
||||||
-c sbo, slack [sbo, slack ...]
|
-c sbo, slack [sbo, slack ...]
|
||||||
check if your packages is up to date
|
check if your packages is up to date
|
||||||
-s sbo, slack [sbo, slack ...]
|
-s sbo, slack [sbo, slack ...]
|
||||||
download, build & install packages
|
download, build & install packages
|
||||||
-t tracking dependencies
|
-t tracking dependencies
|
||||||
-n find packages from SBo repository
|
-n view packages from SBo repository
|
||||||
-i [ ...] install binary packages
|
-i [ ...] install binary packages
|
||||||
-u [ ...] upgrade binary packages
|
-u [ ...] upgrade binary packages
|
||||||
-o [ ...] reinstall binary packages
|
-o [ ...] reinstall binary packages
|
||||||
-r [ ...] remove packages
|
-r [ ...] remove packages
|
||||||
-f [ ...] find if packages installed
|
-f [ ...] view installed packages
|
||||||
-d [ ...] display the contents of the packages
|
-d [ ...] display the contents of the packages
|
||||||
|
|
||||||
|
|
||||||
|
@ -115,20 +127,22 @@ other ...]]
|
||||||
$ slpkg -s sbo brasero
|
$ slpkg -s sbo brasero
|
||||||
|
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
| Build dependecies tree for package brasero
|
| Build dependencies tree for package brasero:
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
Searching [ brasero ] from slackbuilds.org ...
|
[ found ] --> brasero
|
||||||
Searching [ libunique ] from slackbuilds.org ...
|
[ found ] --> libunique
|
||||||
Searching [ gst1-plugins-bad ] from slackbuilds.org ...
|
[ found ] --> gst1-plugins-bad
|
||||||
Searching [ gst1-plugins-base ] from slackbuilds.org ...
|
[ found ] --> gst1-plugins-base
|
||||||
Searching [ gstreamer1 ] from slackbuilds.org ...
|
[ found ] --> gstreamer1
|
||||||
Searching [ orc ] from slackbuilds.org ...
|
[ found ] --> orc
|
||||||
|
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
| Start download, build and install packages
|
| Start download, build and install packages
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
Searching [ orc ] from slackbuilds.org ...
|
[ found ] --> orc
|
||||||
|
.
|
||||||
|
.
|
||||||
|
.
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
| Installing new package /tmp/brasero-3.11.3-x86_64-1_SBo.tgz
|
| Installing new package /tmp/brasero-3.11.3-x86_64-1_SBo.tgz
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
|
@ -147,15 +161,6 @@ other ...]]
|
||||||
Executing install script for brasero-3.11.3-x86_64-1_SBo.tgz.
|
Executing install script for brasero-3.11.3-x86_64-1_SBo.tgz.
|
||||||
Package brasero-3.11.3-x86_64-1_SBo.tgz installed.
|
Package brasero-3.11.3-x86_64-1_SBo.tgz installed.
|
||||||
|
|
||||||
+==============================================================================
|
|
||||||
| Package orc installed
|
|
||||||
| Package gstreamer1 installed
|
|
||||||
| Package gst1-plugins-base installed
|
|
||||||
| Package gst1-plugins-bad installed
|
|
||||||
| Package libunique installed
|
|
||||||
| Package brasero installed
|
|
||||||
+==============================================================================
|
|
||||||
|
|
||||||
Find packages from `Slackware official mirrors <http://mirrors.slackware.com/>`_
|
Find packages from `Slackware official mirrors <http://mirrors.slackware.com/>`_
|
||||||
download and install:
|
download and install:
|
||||||
|
|
||||||
|
@ -177,11 +182,20 @@ other ...]]
|
||||||
|
|
||||||
$ slpkg -t brasero
|
$ slpkg -t brasero
|
||||||
|
|
||||||
|
Search dependencies for package brasero from slackbuilds.org:
|
||||||
|
|
||||||
|
[ found ] --> brasero
|
||||||
|
[ found ] --> libunique
|
||||||
|
[ found ] --> gst1-plugins-bad
|
||||||
|
[ found ] --> gst1-plugins-base
|
||||||
|
[ found ] --> gstreamer1
|
||||||
|
[ found ] --> orc
|
||||||
|
|
||||||
+=========================
|
+=========================
|
||||||
| brasero dependencies :
|
| brasero dependencies :
|
||||||
+=========================
|
+=========================
|
||||||
\
|
\
|
||||||
+---[ Tree of dependecies ]
|
+---[ Tree of dependencies ]
|
||||||
|
|
|
|
||||||
+-- 1 orc
|
+-- 1 orc
|
||||||
|
|
|
|
||||||
|
@ -196,7 +210,10 @@ other ...]]
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ slpkg -c sbo flashplayer-plugin
|
$ slpkg -c sbo flashplayer-plugin
|
||||||
Searching [ flashplayer-plugin ] from slackbuilds.org ...
|
|
||||||
|
Search for package flashplayer-plugin from slackbuilds.org:
|
||||||
|
|
||||||
|
[ found ] --> flashplayer-plugin
|
||||||
|
|
||||||
New version is available:
|
New version is available:
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
|
@ -206,29 +223,41 @@ other ...]]
|
||||||
Would you like to install ? [Y/y]
|
Would you like to install ? [Y/y]
|
||||||
|
|
||||||
$ slpkg -c sbo ranger
|
$ slpkg -c sbo ranger
|
||||||
Searching [ ranger ] from slackbuilds.org ...
|
|
||||||
|
Search for package ranger from slackbuilds.org:
|
||||||
|
|
||||||
Package ranger is up to date
|
[ found ] --> ranger
|
||||||
|
|
||||||
|
Package ranger-1.6.1-x86_64-1_SBo is up to date
|
||||||
|
|
||||||
$ slpkg -c sbo termcolor
|
$ slpkg -c sbo termcolor
|
||||||
|
|
||||||
No such package termcolor: Can't find
|
No such package termcolor: Not installed
|
||||||
|
|
||||||
Check if your distribution is up to date from `Slackware official mirrors
|
Check if your distribution is up to date from `Slackware official mirrors
|
||||||
<http://mirrors.slackware.com/>`_
|
<http://mirrors.slackware.com/>`_
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ slpkg -c slack upgrade
|
$ slpkg -c slack upgrade
|
||||||
|
|
||||||
Your system is up to date
|
These packages need upgrading:
|
||||||
|
|
||||||
|
[ upgrade ] --> dhcpcd-6.0.5-x86_64-3_slack14.1.txz
|
||||||
|
[ upgrade ] --> samba-4.1.11-x86_64-1_slack14.1.txz
|
||||||
|
[ upgrade ] --> xscreensaver-5.29-x86_64-1_slack14.1.txz
|
||||||
|
|
||||||
|
Would you like to upgrade ? [Y/y]
|
||||||
|
|
||||||
Find slackbuild from slackbuilds.org:
|
Find slackbuild from slackbuilds.org:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ slpkg -n bitfighter
|
$ slpkg -n bitfighter
|
||||||
Searching [ bitfighter ] from slackbuilds.org ...
|
|
||||||
|
Search for package bitfighter from slackbuilds.org:
|
||||||
|
|
||||||
|
[ found ] --> bitfighter
|
||||||
|
|
||||||
+===============================================================================
|
+===============================================================================
|
||||||
| Package bitfighter -->
|
| Package bitfighter -->
|
||||||
|
@ -281,11 +310,13 @@ http://slackbuilds.org/repository/14.1/games/bitfighter/
|
||||||
creating /tmp/SBo/package-termcolor/usr/lib64/python2.7
|
creating /tmp/SBo/package-termcolor/usr/lib64/python2.7
|
||||||
creating /tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages
|
creating /tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages
|
||||||
copying build/lib/termcolor.py ->
|
copying build/lib/termcolor.py ->
|
||||||
/tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages
|
/tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages
|
||||||
byte-compiling
|
byte-compiling
|
||||||
/tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages/termcolor.py to termcolor.pyc
|
/tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages/termcolor.py
|
||||||
|
to termcolor.pyc
|
||||||
running install_egg_info
|
running install_egg_info
|
||||||
Writing
|
Writing
|
||||||
|
|
||||||
/tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages/termcolor-1.1.0-py2.7.egg-info
|
/tmp/SBo/package-termcolor/usr/lib64/python2.7/site-packages/termcolor-1.1.0-py2.7.egg-info
|
||||||
|
|
||||||
Slackware package maker, version 3.14159.
|
Slackware package maker, version 3.14159.
|
||||||
|
@ -361,6 +392,9 @@ http://slackbuilds.org/repository/14.1/games/bitfighter/
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ slpkg -f termcolor lua yetris you-get rar pip
|
$ slpkg -f termcolor lua yetris you-get rar pip
|
||||||
|
|
||||||
|
Packages with name matching [ termcolor, lua, yetris, you-get, rar, pip ]
|
||||||
|
|
||||||
[ installed ] - termcolor-1.1.0-x86_64-1_SBo
|
[ installed ] - termcolor-1.1.0-x86_64-1_SBo
|
||||||
No such package lua: Cant find
|
No such package lua: Cant find
|
||||||
[ installed ] - yetris-2.0.1-x86_64-1_SBo
|
[ installed ] - yetris-2.0.1-x86_64-1_SBo
|
||||||
|
@ -421,7 +455,9 @@ http://slackbuilds.org/repository/14.1/games/bitfighter/
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ slpkg -r termcolor
|
$ slpkg -r termcolor
|
||||||
|
|
||||||
|
Packages with name matching [ termcolor ]
|
||||||
|
|
||||||
[ delete ] --> termcolor-1.1.0-x86_64-1_SBo
|
[ delete ] --> termcolor-1.1.0-x86_64-1_SBo
|
||||||
|
|
||||||
Are you sure to remove 1 package(s) [Y/y] y
|
Are you sure to remove 1 package(s) [Y/y] y
|
||||||
|
@ -454,6 +490,8 @@ http://slackbuilds.org/repository/14.1/games/bitfighter/
|
||||||
|
|
||||||
$ slpkg -f termcolor lua rar
|
$ slpkg -f termcolor lua rar
|
||||||
|
|
||||||
|
Packages with name matching [ termcolor, lua, rar ]
|
||||||
|
|
||||||
No such package termcolor: Cant find
|
No such package termcolor: Cant find
|
||||||
No such package lua: Cant find
|
No such package lua: Cant find
|
||||||
[ installed ] - rar-5.0.1-x86_64-1_SBo
|
[ installed ] - rar-5.0.1-x86_64-1_SBo
|
||||||
|
|
24
README.rst
24
README.rst
|
@ -56,15 +56,11 @@ Using `pip <https://pip.pypa.io/en/latest/>`_ (best way to have last updates):
|
||||||
|
|
||||||
Using Slackware command:
|
Using Slackware command:
|
||||||
|
|
||||||
`[Download] <http://slackbuilds.org/repository/14.1/system/slpkg/>`_ from slackbuilds.org
|
Download http://slackbuilds.org/repository/14.1/system/slpkg from slackbuilds.org
|
||||||
|
|
||||||
or
|
Using SBOPKG http://www.sbopkg.org
|
||||||
|
|
||||||
using `SBOPKG <http://www.sbopkg.org>`_ tool
|
|
||||||
|
|
||||||
Download binary package from SourceForge:
|
Download binary package from SourceForge:
|
||||||
|
|
||||||
`[Download] <https://sourceforge.net/projects/slpkg>`_ slpkg
|
|
||||||
|
|
||||||
Command Line Tool Usage
|
Command Line Tool Usage
|
||||||
-----------------------
|
-----------------------
|
||||||
|
@ -90,12 +86,12 @@ Command Line Tool Usage
|
||||||
check if your packages is up to date
|
check if your packages is up to date
|
||||||
-s sbo, slack [sbo, slack ...]
|
-s sbo, slack [sbo, slack ...]
|
||||||
download, build & install packages
|
download, build & install packages
|
||||||
-t tracking dependencies
|
-t packages tracking dependencies from SBo
|
||||||
-n view packages from SBo repository
|
-n view packages from SBo repository
|
||||||
-i [ ...] install binary packages
|
-i [ ...] install binary packages
|
||||||
-u [ ...] upgrade binary packages
|
-u [ ...] upgrade binary packages
|
||||||
-o [ ...] reinstall binary packages
|
-o [ ...] reinstall binary packages
|
||||||
-r [ ...] remove packages
|
-r [ ...] remove binary packages
|
||||||
-f [ ...] view installed packages
|
-f [ ...] view installed packages
|
||||||
-d [ ...] display the contents of the packages
|
-d [ ...] display the contents of the packages
|
||||||
|
|
||||||
|
@ -181,13 +177,17 @@ Tracking all dependencies of packages:
|
||||||
\
|
\
|
||||||
+---[ Tree of dependencies ]
|
+---[ Tree of dependencies ]
|
||||||
|
|
|
|
||||||
+-- 1 orc
|
+--1 orc
|
||||||
|
|
|
|
||||||
+-- 1 gstreamer1
|
+--2 gstreamer1
|
||||||
|
|
|
|
||||||
+-- 1 gst1-plugins-base
|
+--3 gst1-plugins-base
|
||||||
|
|
|
|
||||||
+-- 2 libunique, gst1-plugins-bad
|
+--4 gst1-plugins-bad
|
||||||
|
|
|
||||||
|
+--5 libunique
|
||||||
|
|
||||||
|
NOTE: green installed, red not installed
|
||||||
|
|
||||||
Check if your packages is up to date from slackbuilds.org:
|
Check if your packages is up to date from slackbuilds.org:
|
||||||
|
|
||||||
|
|
26
man/slpkg.8
26
man/slpkg.8
|
@ -34,12 +34,12 @@ It's a quick and easy way to manage your packages in slackware to a command.
|
||||||
\fB-s sbo, slack [sbo, slack ...]\fP
|
\fB-s sbo, slack [sbo, slack ...]\fP
|
||||||
\fB download, build & install packages\fP
|
\fB download, build & install packages\fP
|
||||||
\fB list of installed packages\fP
|
\fB list of installed packages\fP
|
||||||
\fB-t tracking dependencies\fP
|
\fB-t packages tracking dependencies from SBo\fP
|
||||||
\fB-n view packages from SBo repositority\fP
|
\fB-n view packages from SBo repositority\fP
|
||||||
\fB-i [ ...] install binary packages\fP
|
\fB-i [ ...] install binary packages\fP
|
||||||
\fB-u [ ...] upgrade binary packages\fP
|
\fB-u [ ...] upgrade binary packages\fP
|
||||||
\fB-o [ ...] reinstall binary packages\fP
|
\fB-o [ ...] reinstall binary packages\fP
|
||||||
\fB-r [ ...] remove packages\fP
|
\fB-r [ ...] remove binary packages\fP
|
||||||
\fB-f [ ...] view installed packages\fP
|
\fB-f [ ...] view installed packages\fP
|
||||||
\fB-d [ ...] display the contents of the packages\fP
|
\fB-d [ ...] display the contents of the packages\fP
|
||||||
|
|
||||||
|
@ -75,13 +75,13 @@ the network. (www.slackbuilds.org)
|
||||||
.PP
|
.PP
|
||||||
Check your packages from Slackware official mirrors or from
|
Check your packages from Slackware official mirrors or from
|
||||||
slackbuilds.org is up to date.
|
slackbuilds.org is up to date.
|
||||||
.SS -s , sbo, slack [sbo, slack ...] find, download, build and install
|
.SS -s , sbo, slack [sbo, slack ...] find, download, build and install package with all dependencies
|
||||||
package with all dependencies
|
|
||||||
\fBslpkg\fP \fB-s\fP <\fIsbo\fP> <\fIslack\fP> <\fIname of package\fP>
|
\fBslpkg\fP \fB-s\fP <\fIsbo\fP> <\fIslack\fP> <\fIname of package\fP>
|
||||||
.PP
|
.PP
|
||||||
Find package from slackbuild.org with all dependencies,
|
Find package from slackbuild.org with all dependencies,
|
||||||
download, build and install them. Even download and install official
|
download, build and install them if not installed or new version is
|
||||||
packages from Slackware official mirrors and install.
|
available. Even download and install official packages from Slackware
|
||||||
|
official mirrors and install.
|
||||||
.SS -i , install binary package
|
.SS -i , install binary package
|
||||||
\fBslpkg\fP \fB-i\fP <\fIpackages.t?z\fP>
|
\fBslpkg\fP \fB-i\fP <\fIpackages.t?z\fP>
|
||||||
.PP
|
.PP
|
||||||
|
@ -131,16 +131,20 @@ $ \fBslpkg -t brasero\fP
|
||||||
+=========================
|
+=========================
|
||||||
| brasero dependencies :
|
| brasero dependencies :
|
||||||
+=========================
|
+=========================
|
||||||
\
|
\\
|
||||||
+---[ Tree of dependencies ]
|
+---[ Tree of dependencies ]
|
||||||
|
|
|
|
||||||
-- 1 orc
|
--1: orc
|
||||||
|
|
|
|
||||||
-- 1 gstreamer1
|
--2: gstreamer1
|
||||||
|
|
|
|
||||||
-- 1 gst1-plugins-base
|
--3: gst1-plugins-base
|
||||||
|
|
|
|
||||||
-- 2 libunique gst1-plugins-bad
|
--4: gst1-plugins-bad
|
||||||
|
|
|
||||||
|
--5: libunique
|
||||||
|
|
||||||
|
NOTE: green installed, red not installed
|
||||||
|
|
||||||
$ \fBslpkg -s sbo brasero\fP
|
$ \fBslpkg -s sbo brasero\fP
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
Slpkg is a terminal tool in order to easy use Slackware packages.
|
Slpkg is a terminal multitool in order to easy use Slackware
|
||||||
|
packages.
|
||||||
|
|
||||||
Features
|
Features
|
||||||
--------
|
========
|
||||||
|
|
||||||
- Build packages from source with all dependencies
|
- Build third party packages from source with all dependencies
|
||||||
|
- Install packages through from official Slackware mirrros
|
||||||
- Find and Download packages from slackbuilds.org
|
- Find and Download packages from slackbuilds.org
|
||||||
|
- Grabs packages from slackbuilds.org in real time
|
||||||
- Automatic tool build and install packages
|
- Automatic tool build and install packages
|
||||||
|
- Check if your distribution is up to date
|
||||||
- Display the contents of the packages
|
- Display the contents of the packages
|
||||||
- Install-upgrade Slackware packages
|
- Install-upgrade Slackware packages
|
||||||
- Build and install all in a command
|
- Build and install all in a command
|
||||||
|
@ -17,5 +21,5 @@ Features
|
||||||
- Remove packages
|
- Remove packages
|
||||||
- No dependencies
|
- No dependencies
|
||||||
|
|
||||||
It's a quick and easy way to manage your packages in slackware
|
It's a quick and easy way to manage your packages in `Slackware <http://www.slackware$
|
||||||
to a command.
|
to a command.
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
slpkg: slpkg (Slackware tool in Python)
|
slpkg: slpkg (Slackware tool in Python)
|
||||||
slpkg:
|
slpkg:
|
||||||
slpkg: Slpkg is a terminal tool in order to easy use Slackware packages.
|
slpkg: Slpkg is a terminal multitool in order to easy use Slackware
|
||||||
slpkg: It's a quick and easy way to manage your packages in slackware to a
|
slpkg: packages. It's a quick and easy way to manage your packages in
|
||||||
slpkg: command.
|
slpkg: slackware to a command
|
||||||
slpkg:
|
slpkg:
|
||||||
slpkg: Homepage: http://dslackw.github.io/slpkg
|
slpkg: Homepage: https://github.com/dslackw/slpkg
|
||||||
slpkg:
|
slpkg:
|
||||||
slpkg:
|
slpkg:
|
||||||
slpkg:
|
slpkg:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PRGNAM="slpkg"
|
PRGNAM="slpkg"
|
||||||
VERSION="1.x.x"
|
VERSION="1.x.x"
|
||||||
HOMEPAGE="http://dslackw.github.io/slpkg"
|
HOMEPAGE="https://github.com/dslackw/slpkg"
|
||||||
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.x.x.tar.gz"
|
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.x.x.tar.gz"
|
||||||
MD5SUM="9676ce788fc030ac83362aa3e183ec42"
|
MD5SUM="9676ce788fc030ac83362aa3e183ec42"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
__all__ = "slpkg"
|
__all__ = "slpkg"
|
||||||
__author__ = "dslackw"
|
__author__ = "dslackw"
|
||||||
__version_info__ = (1, 6, 8)
|
__version_info__ = (1, 6, 9)
|
||||||
__version__ = "{0}.{1}.{2}".format(*__version_info__)
|
__version__ = "{0}.{1}.{2}".format(*__version_info__)
|
||||||
__license__ = "GNU General Public License v3 (GPLv3)"
|
__license__ = "GNU General Public License v3 (GPLv3)"
|
||||||
__email__ = "d.zlatanidis@gmail.com"
|
__email__ = "d.zlatanidis@gmail.com"
|
||||||
|
@ -13,6 +14,12 @@ __email__ = "d.zlatanidis@gmail.com"
|
||||||
''' file spacer '''
|
''' file spacer '''
|
||||||
sp = "-"
|
sp = "-"
|
||||||
|
|
||||||
|
''' current path '''
|
||||||
|
path = subprocess.check_output(["pwd"], shell=True).replace("\n", "/")
|
||||||
|
|
||||||
|
''' build path '''
|
||||||
|
build_path = path + "Slpkg_Build/"
|
||||||
|
|
||||||
''' temponary path '''
|
''' temponary path '''
|
||||||
tmp = "/tmp/"
|
tmp = "/tmp/"
|
||||||
slpkg_path = tmp + "slpkg/"
|
slpkg_path = tmp + "slpkg/"
|
||||||
|
|
|
@ -9,5 +9,5 @@ class colors:
|
||||||
GREEN = "\x1b[32m"
|
GREEN = "\x1b[32m"
|
||||||
YELLOW = "\x1b[33m"
|
YELLOW = "\x1b[33m"
|
||||||
CYAN = "\x1b[36m"
|
CYAN = "\x1b[36m"
|
||||||
WHEAT = "\x1b[38;5;101m"
|
GREY = "\x1b[38;5;247m"
|
||||||
ENDC = "\x1b[0m"
|
ENDC = "\x1b[0m"
|
||||||
|
|
|
@ -2,29 +2,13 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
'''
|
'''
|
||||||
SSSSSSS SSSSSSSS
|
_ _
|
||||||
SSSSSSS SSSSSSSS
|
___| |_ __ | | ____ _
|
||||||
SSSSSSS SSSSSSSS
|
/ __| | '_ \| |/ / _` |
|
||||||
SSSSSSS SSSSSSSS
|
\__ \ | |_) | < (_| |
|
||||||
SSSSSSSSSS SSSSSSSSSSS SSSSSSSSS SSSSSSS SSSSSSSSSSSSSSSS SSSSS
|
|___/_| .__/|_|\_\__, |
|
||||||
SSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSS SSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSS
|
|_| |___/
|
||||||
SSSSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSS SSSSSS SSSSSS SSSSSSS SSSSSSS SSSSSSSSSSSSSS SSSSSSS SSSSSSS
|
|
||||||
SSSSSSSS SSSSSS SSSSSSS SSSSSSS SSSSSSSSSSSSS SSSSSSS SSSSSSS
|
|
||||||
SSSSSSSS SSSSSS SSSSSSS SSSSSSS SSSSSSSSSSSSS SSSSSSS SSSSSSS
|
|
||||||
SSSSSS SSSSSSS SSSSSS SSSSSSS SSSSSSSS SSSSSSSSSSSSSS SSSSSSSS SSSSSSS
|
|
||||||
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSS SSSSSSSS SSSSSSS SSSSSSSSSSSSSSS
|
|
||||||
SSSSSSS SSSSSSS
|
|
||||||
SSSSSSS SSSSSS SSSSSSS
|
|
||||||
SSSSSSSSS SSSSSSSS SSSSSSSS
|
|
||||||
SSSSSSSSS SSSSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSSSS SSSSSSSSSSSSSSSS
|
|
||||||
SSSSSSSSS SSSSSSSSSSSS
|
|
||||||
SSSSSS
|
|
||||||
|
|
||||||
usage: slpkg [-h] [-v] [-a script [source ...]]
|
usage: slpkg [-h] [-v] [-a script [source ...]]
|
||||||
[-l all, sbo, slack, noarch, other]
|
[-l all, sbo, slack, noarch, other]
|
||||||
|
@ -45,7 +29,7 @@ optional arguments:
|
||||||
check if your packages is up to date
|
check if your packages is up to date
|
||||||
-s sbo, slack [sbo, slack ...]
|
-s sbo, slack [sbo, slack ...]
|
||||||
download, build & install packages
|
download, build & install packages
|
||||||
-t tracking dependencies
|
-t packages tracking dependencies from SBo
|
||||||
-n view packages from SBo repository
|
-n view packages from SBo repository
|
||||||
-i [ ...] install binary packages
|
-i [ ...] install binary packages
|
||||||
-u [ ...] upgrade binary packages
|
-u [ ...] upgrade binary packages
|
||||||
|
@ -53,12 +37,14 @@ optional arguments:
|
||||||
-r [ ...] remove packages
|
-r [ ...] remove packages
|
||||||
-f [ ...] view packages installed
|
-f [ ...] view packages installed
|
||||||
-d [ ...] display the contents of the packages
|
-d [ ...] display the contents of the packages
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
from version import *
|
from version import *
|
||||||
from functions import *
|
from functions import *
|
||||||
from colors import colors
|
from colors import colors
|
||||||
|
from __metadata__ import path
|
||||||
from messages import ext_err_args
|
from messages import ext_err_args
|
||||||
from messages import err1_args, err2_args
|
from messages import err1_args, err2_args
|
||||||
|
|
||||||
|
@ -87,7 +73,7 @@ def main():
|
||||||
type=str, nargs="+", metavar=('sbo, slack'))
|
type=str, nargs="+", metavar=('sbo, slack'))
|
||||||
parser.add_argument("-s", help="download, build & install packages",
|
parser.add_argument("-s", help="download, build & install packages",
|
||||||
type=str, nargs="+", metavar=('sbo, slack'))
|
type=str, nargs="+", metavar=('sbo, slack'))
|
||||||
parser.add_argument("-t", help="tracking dependencies",
|
parser.add_argument("-t", help="packages tracking dependencies from SBo",
|
||||||
type=str, metavar=(''))
|
type=str, metavar=(''))
|
||||||
parser.add_argument("-n", help="view packages from SBo repository",
|
parser.add_argument("-n", help="view packages from SBo repository",
|
||||||
type=str, metavar=(''))
|
type=str, metavar=(''))
|
||||||
|
@ -97,7 +83,7 @@ def main():
|
||||||
type=str, nargs="+", metavar=(''))
|
type=str, nargs="+", metavar=(''))
|
||||||
parser.add_argument("-o", help="reinstall binary packages",
|
parser.add_argument("-o", help="reinstall binary packages",
|
||||||
type=str, nargs="+", metavar=(''))
|
type=str, nargs="+", metavar=(''))
|
||||||
parser.add_argument("-r", help="remove packages",
|
parser.add_argument("-r", help="remove binary packages",
|
||||||
type=str, nargs="+", metavar=(''))
|
type=str, nargs="+", metavar=(''))
|
||||||
parser.add_argument("-f", help="view installed packages",
|
parser.add_argument("-f", help="view installed packages",
|
||||||
type=str, nargs="+", metavar=(''))
|
type=str, nargs="+", metavar=(''))
|
||||||
|
@ -107,7 +93,7 @@ def main():
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
prog_version()
|
prog_version()
|
||||||
if args.a:
|
if args.a:
|
||||||
build_package(args.a[0], args.a[1], args.a[2:])
|
build_package(args.a[0], args.a[1], args.a[2:], path)
|
||||||
if args.l:
|
if args.l:
|
||||||
pkg_list(args.l)
|
pkg_list(args.l)
|
||||||
if args.t:
|
if args.t:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
# [ pkg ] directory
|
# [ packages ] directory
|
||||||
|
|
|
@ -6,17 +6,15 @@ import sys
|
||||||
import shutil
|
import shutil
|
||||||
import getpass
|
import getpass
|
||||||
import tarfile
|
import tarfile
|
||||||
import subprocess
|
|
||||||
|
|
||||||
from slpkg.messages import pkg_not_found, s_user
|
from slpkg.messages import pkg_not_found, s_user
|
||||||
|
|
||||||
def build_package(script, source, extra):
|
def build_package(script, source, extra, path):
|
||||||
'''
|
'''
|
||||||
Build package with source
|
Build package with source
|
||||||
'''
|
'''
|
||||||
s_user(getpass.getuser())
|
s_user(getpass.getuser())
|
||||||
pkg_name = script.replace(".tar.gz", "")
|
pkg_name = script.replace(".tar.gz", "")
|
||||||
path = subprocess.check_output(["pwd"], shell=True).replace("\n", "/")
|
|
||||||
try:
|
try:
|
||||||
tar = tarfile.open(script)
|
tar = tarfile.open(script)
|
||||||
tar.extractall()
|
tar.extractall()
|
||||||
|
@ -25,7 +23,7 @@ def build_package(script, source, extra):
|
||||||
for src in extra:
|
for src in extra:
|
||||||
shutil.copy2(src, pkg_name)
|
shutil.copy2(src, pkg_name)
|
||||||
os.chdir(path + pkg_name)
|
os.chdir(path + pkg_name)
|
||||||
os.system("sh {0}{1}{2}".format(path, pkg_name + "/", pkg_name + ".SlackBuild"))
|
os.system("sh {0}.SlackBuild".format(pkg_name))
|
||||||
os.chdir(path)
|
os.chdir(path)
|
||||||
except (OSError, IOError):
|
except (OSError, IOError):
|
||||||
message = "Wrong file"
|
message = "Wrong file"
|
||||||
|
@ -34,4 +32,3 @@ def build_package(script, source, extra):
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print # new line at exit
|
print # new line at exit
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ def find_package(find_pkg, directory):
|
||||||
Find installed packages from
|
Find installed packages from
|
||||||
/var/log/packages/
|
/var/log/packages/
|
||||||
'''
|
'''
|
||||||
results = []
|
pkgs = []
|
||||||
for pkg in os.listdir(directory):
|
for pkg in os.listdir(directory):
|
||||||
if pkg.startswith(find_pkg):
|
if pkg.startswith(find_pkg):
|
||||||
results.append(pkg)
|
pkgs.append(pkg)
|
||||||
return results
|
return pkgs
|
||||||
|
|
|
@ -139,48 +139,48 @@ def pkg_list(binary):
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
print # new line at start
|
print # new line at start
|
||||||
index, stop = 0, 50
|
index, page = 0, 50
|
||||||
if "all" in binary:
|
if "all" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in os.listdir(pkg_path):
|
||||||
index += 1
|
index += 1
|
||||||
print ("[{0}{1}{2}] {3}".format(colors.WHEAT, index, colors.ENDC, pkg))
|
print ("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
if index == stop:
|
if index == page:
|
||||||
key = raw_input('\nPress [ Enter ] >> Next page ')
|
key = raw_input('\nPress [ Enter ] >> Next page ')
|
||||||
stop += 50
|
page += 50
|
||||||
if "sbo" in binary:
|
if "sbo" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in os.listdir(pkg_path):
|
||||||
if 'SBo' in pkg:
|
if 'SBo' in pkg:
|
||||||
index += 1
|
index += 1
|
||||||
print ("[{0}{1}{2}] {3}".format(colors.WHEAT, index, colors.ENDC, pkg))
|
print ("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
if index == stop:
|
if index == page:
|
||||||
key = raw_input('\nPress [ Enter ] >> Next page ')
|
key = raw_input('\nPress [ Enter ] >> Next page ')
|
||||||
stop += 50
|
page += 50
|
||||||
if "slack" in binary:
|
if "slack" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in os.listdir(pkg_path):
|
||||||
if 'slack' in pkg:
|
if 'slack' in pkg:
|
||||||
index += 1
|
index += 1
|
||||||
print ("[{0}{1}{2}] {3}".format(colors.WHEAT, index, colors.ENDC, pkg))
|
print ("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
if index == stop:
|
if index == page:
|
||||||
key = raw_input('\nPress [ Enter ] >> Next page ')
|
key = raw_input('\nPress [ Enter ] >> Next page ')
|
||||||
stop += 50
|
page += 50
|
||||||
if "noarch" in binary:
|
if "noarch" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in os.listdir(pkg_path):
|
||||||
if 'noarch' in pkg:
|
if 'noarch' in pkg:
|
||||||
index += 1
|
index += 1
|
||||||
print ("[{0}{1}{2}] {3}".format(colors.WHEAT, index, colors.ENDC, pkg))
|
print ("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
if index == stop:
|
if index == page:
|
||||||
key = raw_input('\nPress [ Enter ] >> Next page ')
|
key = raw_input('\nPress [ Enter ] >> Next page ')
|
||||||
stop += 50
|
page += 50
|
||||||
if "other" in binary:
|
if "other" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in os.listdir(pkg_path):
|
||||||
if 'SBo' in pkg or 'slack' in pkg or 'noarch' in pkg:
|
if 'SBo' in pkg or 'slack' in pkg or 'noarch' in pkg:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
index += 1
|
index += 1
|
||||||
print ("[{0}{1}{2}] {3}".format(colors.WHEAT, index, colors.ENDC, pkg))
|
print ("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
if index == stop:
|
if index == page:
|
||||||
key = raw_input('\nPress [ Enter ] >> Next page ')
|
key = raw_input('\nPress [ Enter ] >> Next page ')
|
||||||
stop += 50
|
page += 50
|
||||||
print # new line at end
|
print # new line at end
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print # new line at exit
|
print # new line at exit
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
# [ sbo ] directory
|
# [ slackbuilds ] directory
|
||||||
|
|
|
@ -11,7 +11,7 @@ from slpkg.colors import colors
|
||||||
from slpkg.functions import get_file
|
from slpkg.functions import get_file
|
||||||
from slpkg.messages import pkg_not_found, s_user, template
|
from slpkg.messages import pkg_not_found, s_user, template
|
||||||
from slpkg.__metadata__ import tmp, pkg_path, uname, arch, sp
|
from slpkg.__metadata__ import tmp, pkg_path, uname, arch, sp
|
||||||
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype
|
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype, build_path
|
||||||
|
|
||||||
from search import sbo_search_pkg
|
from search import sbo_search_pkg
|
||||||
from download import sbo_slackbuild_dwn
|
from download import sbo_slackbuild_dwn
|
||||||
|
@ -38,17 +38,20 @@ def sbo_check(name):
|
||||||
sbo_dwn = sbo_slackbuild_dwn(sbo_url, name)
|
sbo_dwn = sbo_slackbuild_dwn(sbo_url, name)
|
||||||
source_dwn = sbo_source_dwn(sbo_url, name)
|
source_dwn = sbo_source_dwn(sbo_url, name)
|
||||||
extra_dwn = sbo_extra_dwn(sbo_url, name)
|
extra_dwn = sbo_extra_dwn(sbo_url, name)
|
||||||
sbo_file = sbo_file[len(name) + 1:-len(arch) - 7]
|
sbo_file_version = sbo_file[len(name) + 1:-len(arch) - 7]
|
||||||
if sbo_version > sbo_file:
|
if sbo_version > sbo_file_version:
|
||||||
print ("\n{0}New version is available:{1}".format(colors.YELLOW, colors.ENDC))
|
print ("\n{0}New version is available:{1}".format(
|
||||||
|
colors.YELLOW, colors.ENDC))
|
||||||
template(78)
|
template(78)
|
||||||
print ("| Package: {0} {1} --> {2} {3}".format(
|
print ("| Package: {0} {1} --> {2} {3}".format(
|
||||||
name, sbo_file, name, sbo_version))
|
name, sbo_file_version, name, sbo_version))
|
||||||
template(78)
|
template(78)
|
||||||
print # new line at start
|
print # new line at start
|
||||||
read = raw_input("Would you like to install ? [Y/y] ")
|
read = raw_input("Would you like to install ? [Y/y] ")
|
||||||
if read == "Y" or read == "y":
|
if read == "Y" or read == "y":
|
||||||
s_user(getpass.getuser())
|
s_user(getpass.getuser())
|
||||||
|
os.system("mkdir -p {0}".format(build_path))
|
||||||
|
os.chdir(build_path)
|
||||||
prgnam = sbo_prgnam_pkg(sbo_url, name)
|
prgnam = sbo_prgnam_pkg(sbo_url, name)
|
||||||
pkg_for_install = ("{0}-{1}".format(prgnam, sbo_version))
|
pkg_for_install = ("{0}-{1}".format(prgnam, sbo_version))
|
||||||
script = get_file(sbo_dwn, "/")
|
script = get_file(sbo_dwn, "/")
|
||||||
|
@ -60,8 +63,9 @@ def sbo_check(name):
|
||||||
for src in extra_dwn.split():
|
for src in extra_dwn.split():
|
||||||
os.system("wget -N {0}".format(src))
|
os.system("wget -N {0}".format(src))
|
||||||
extra.append(get_file(src, "/"))
|
extra.append(get_file(src, "/"))
|
||||||
build_package(script, source, extra)
|
build_package(script, source, extra, build_path)
|
||||||
binary = (tmp + pkg_for_install + sbo_arch + sbo_tag + sbo_filetype).split()
|
binary = ("{0}{1}{2}{3}{4}".format(
|
||||||
|
tmp, pkg_for_install, sbo_arch, sbo_tag, sbo_filetype).split())
|
||||||
pkg_upgrade(binary)
|
pkg_upgrade(binary)
|
||||||
else:
|
else:
|
||||||
print ("\nPackage {0} is up to date\n".format(
|
print ("\nPackage {0} is up to date\n".format(
|
||||||
|
|
|
@ -2,9 +2,13 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from slpkg.colors import colors
|
from slpkg.colors import colors
|
||||||
|
from slpkg.__metadata__ import pkg_path, sp
|
||||||
from slpkg.messages import pkg_not_found, template
|
from slpkg.messages import pkg_not_found, template
|
||||||
|
|
||||||
|
from slpkg.pkg.find import find_package
|
||||||
|
|
||||||
from greps import *
|
from greps import *
|
||||||
from search import sbo_search_pkg
|
from search import sbo_search_pkg
|
||||||
from download import sbo_slackbuild_dwn
|
from download import sbo_slackbuild_dwn
|
||||||
|
@ -25,7 +29,7 @@ def sbo_dependencies_pkg(name):
|
||||||
else:
|
else:
|
||||||
sbo_req = sbo_requires_pkg(sbo_url, name)
|
sbo_req = sbo_requires_pkg(sbo_url, name)
|
||||||
dependencies = sbo_req.split()
|
dependencies = sbo_req.split()
|
||||||
if dependencies != []:
|
if dependencies:
|
||||||
dep_results.append(dependencies)
|
dep_results.append(dependencies)
|
||||||
for line in dependencies:
|
for line in dependencies:
|
||||||
sbo_dependencies_pkg(line)
|
sbo_dependencies_pkg(line)
|
||||||
|
@ -39,23 +43,35 @@ def pkg_tracking(name):
|
||||||
Print tree of dependencies
|
Print tree of dependencies
|
||||||
'''
|
'''
|
||||||
print ('\nSearch dependencies for package {0} from slackbuilds.org:\n'.format(name))
|
print ('\nSearch dependencies for package {0} from slackbuilds.org:\n'.format(name))
|
||||||
dependencies = sbo_dependencies_pkg(name)
|
dependencies_list = sbo_dependencies_pkg(name)
|
||||||
if dependencies is None:
|
if dependencies_list is None:
|
||||||
pass
|
pass
|
||||||
elif dependencies == []:
|
elif dependencies_list == []:
|
||||||
print ("\nPackage {0} no dependencies\n".format(name))
|
print ("\nPackage {0} no dependencies\n".format(name))
|
||||||
else:
|
else:
|
||||||
print # new line at start
|
print # new line at start
|
||||||
|
requires, dependencies = [], []
|
||||||
|
for pkg in dependencies_list:
|
||||||
|
requires += pkg
|
||||||
|
requires.reverse()
|
||||||
|
for duplicate in requires:
|
||||||
|
if duplicate not in dependencies:
|
||||||
|
dependencies.append(duplicate)
|
||||||
pkg_len = len(name) + 24
|
pkg_len = len(name) + 24
|
||||||
template(pkg_len)
|
template(pkg_len)
|
||||||
print ("| Package {0}{1}{2} dependencies :".format(colors.CYAN, name,
|
print ("| Package {0}{1}{2} dependencies :".format(colors.CYAN, name,
|
||||||
colors.ENDC))
|
colors.ENDC))
|
||||||
template(pkg_len)
|
template(pkg_len)
|
||||||
dependencies.reverse()
|
#clear_dependencies.reverse()
|
||||||
print ("\\")
|
print ("\\")
|
||||||
print (" +---{0}[ Tree of dependencies ]{1}".format(colors.YELLOW, colors.ENDC))
|
print (" +---{0}[ Tree of dependencies ]{1}".format(colors.YELLOW, colors.ENDC))
|
||||||
for i in range(len(dependencies)):
|
index = 0
|
||||||
print (" |")
|
for pkg in dependencies:
|
||||||
print (" ".join((" +--", str(len(dependencies[i])),
|
index += 1
|
||||||
", ".join(dependencies[i]))))
|
if find_package(pkg + sp, pkg_path):
|
||||||
print # new line at end
|
print (" |")
|
||||||
|
print (" {0}{1}: {2}{3}{4}".format("+--", index, colors.GREEN, pkg, colors.ENDC))
|
||||||
|
else:
|
||||||
|
print (" |")
|
||||||
|
print (" {0}{1}: {2}{3}{4}".format("+--", index, colors.RED, pkg, colors.ENDC))
|
||||||
|
print ("\n NOTE: green installed, red not installed\n")
|
||||||
|
|
|
@ -8,7 +8,7 @@ from slpkg.url_read import url_read
|
||||||
from slpkg.__metadata__ import slpkg_path
|
from slpkg.__metadata__ import slpkg_path
|
||||||
|
|
||||||
# create tmp directory if not exist
|
# create tmp directory if not exist
|
||||||
os.system("mkdir -p /tmp/readme/")
|
os.system("mkdir -p {0}readme/".format(slpkg_path))
|
||||||
|
|
||||||
def read_readme(sbo_url, name, site):
|
def read_readme(sbo_url, name, site):
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -23,7 +23,7 @@ def sbo_search_pkg(name):
|
||||||
sbo_location.append(line.replace('SLACKBUILD LOCATION: ./', ''))
|
sbo_location.append(line.replace('SLACKBUILD LOCATION: ./', ''))
|
||||||
for loc in sbo_location:
|
for loc in sbo_location:
|
||||||
if get_file(loc, '/') == name:
|
if get_file(loc, '/') == name:
|
||||||
print ('{0}[ found ] --> {1} {2}'.format(colors.CYAN, colors.ENDC, name))
|
print ('{0}[ found ] --> {1}{2}'.format(colors.CYAN, colors.ENDC, name))
|
||||||
return sbo_url + loc.replace(name, '') + name + "/"
|
return sbo_url + loc.replace(name, '') + name + "/"
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print # new line at exit
|
print # new line at exit
|
||||||
|
|
|
@ -6,16 +6,19 @@ import sys
|
||||||
import getpass
|
import getpass
|
||||||
from slpkg.colors import colors
|
from slpkg.colors import colors
|
||||||
from slpkg.functions import get_file
|
from slpkg.functions import get_file
|
||||||
from slpkg.messages import pkg_not_found, template, s_user
|
from slpkg.__metadata__ import tmp, pkg_path, build_path, sp
|
||||||
from slpkg.__metadata__ import tmp, sbo_arch, sbo_tag, sbo_filetype
|
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype, arch
|
||||||
|
from slpkg.messages import pkg_not_found, pkg_found, template, s_user
|
||||||
|
|
||||||
|
from slpkg.pkg.find import find_package
|
||||||
from slpkg.pkg.build import build_package
|
from slpkg.pkg.build import build_package
|
||||||
from slpkg.pkg.manager import pkg_upgrade
|
from slpkg.pkg.manager import pkg_upgrade
|
||||||
|
|
||||||
from search import sbo_search_pkg
|
from search import sbo_search_pkg
|
||||||
from download import sbo_slackbuild_dwn
|
from download import sbo_slackbuild_dwn
|
||||||
from dependency import sbo_dependencies_pkg
|
from dependency import sbo_dependencies_pkg
|
||||||
from greps import sbo_prgnam_pkg, sbo_version_pkg, sbo_source_dwn, sbo_extra_dwn
|
from greps import sbo_source_dwn, sbo_extra_dwn
|
||||||
|
from greps import sbo_prgnam_pkg, sbo_version_pkg
|
||||||
|
|
||||||
def sbo_build(name):
|
def sbo_build(name):
|
||||||
'''
|
'''
|
||||||
|
@ -27,37 +30,52 @@ def sbo_build(name):
|
||||||
template(78)
|
template(78)
|
||||||
print ("| Build dependencies tree for package {0}:".format(name))
|
print ("| Build dependencies tree for package {0}:".format(name))
|
||||||
template(78)
|
template(78)
|
||||||
dependencies = sbo_dependencies_pkg(name)
|
dependencies_list = sbo_dependencies_pkg(name)
|
||||||
if dependencies == None:
|
if dependencies_list == None:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
requires, extra = [], []
|
os.system("mkdir -p {0}".format(build_path))
|
||||||
|
os.chdir(build_path)
|
||||||
|
requires, dependencies, extra = [], [], []
|
||||||
requires.append(name)
|
requires.append(name)
|
||||||
for pkg in dependencies:
|
for pkg in dependencies_list:
|
||||||
requires += pkg
|
requires += pkg
|
||||||
requires.reverse()
|
requires.reverse()
|
||||||
|
for duplicate in requires:
|
||||||
|
if duplicate not in dependencies:
|
||||||
|
dependencies.append(duplicate)
|
||||||
print # new lines at start
|
print # new lines at start
|
||||||
template(78)
|
template(78)
|
||||||
print ("| Start download, build and install packages:")
|
print ("| Start download, build and install packages:")
|
||||||
template(78)
|
template(78)
|
||||||
for pkg in requires:
|
for pkg in dependencies:
|
||||||
sbo_url = sbo_search_pkg(pkg)
|
sbo_url = sbo_search_pkg(pkg)
|
||||||
prgnam = ("{0}-{1}".format(sbo_prgnam_pkg(sbo_url, pkg),
|
sbo_version = sbo_version_pkg(sbo_url, pkg)
|
||||||
sbo_version_pkg(sbo_url, pkg)))
|
sbo_file = "".join(find_package(pkg + sp, pkg_path))
|
||||||
sbo_link = sbo_slackbuild_dwn(sbo_url, pkg)
|
sbo_file_version = sbo_file[len(pkg) + 1:-len(arch) - 7]
|
||||||
src_link = sbo_source_dwn(sbo_url, pkg)
|
if sbo_version > sbo_file_version:
|
||||||
ext_link = sbo_extra_dwn(sbo_url, pkg)
|
prgnam = ("{0}-{1}".format(sbo_prgnam_pkg(sbo_url, pkg),
|
||||||
script = get_file(sbo_link, '/')
|
sbo_version_pkg(sbo_url, pkg)))
|
||||||
source = get_file(src_link, '/')
|
sbo_link = sbo_slackbuild_dwn(sbo_url, pkg)
|
||||||
os.system("wget -N {0} {1}".format(sbo_link, src_link))
|
src_link = sbo_source_dwn(sbo_url, pkg)
|
||||||
if ext_link:
|
ext_link = sbo_extra_dwn(sbo_url, pkg)
|
||||||
for src in ext_link:
|
script = get_file(sbo_link, '/')
|
||||||
os.system("wget -N {0}".format(src))
|
source = get_file(src_link, '/')
|
||||||
extra.append(get_file(src, '/'))
|
os.system("wget -N {0} {1}".format(sbo_link, src_link))
|
||||||
build_package(script, source, extra)
|
if ext_link:
|
||||||
binary = (tmp + prgnam + sbo_arch + sbo_tag + sbo_filetype).split()
|
for src in ext_link:
|
||||||
pkg_upgrade(binary)
|
os.system("wget -N {0}".format(src))
|
||||||
|
extra.append(get_file(src, '/'))
|
||||||
|
build_package(script, source, extra, build_path)
|
||||||
|
binary = ("{0}{1}{2}{3}{4}".format(
|
||||||
|
tmp, prgnam, sbo_arch, sbo_tag, sbo_filetype).split())
|
||||||
|
pkg_upgrade(binary)
|
||||||
|
else:
|
||||||
|
template(78)
|
||||||
|
pkg_found(pkg)
|
||||||
|
template(78)
|
||||||
|
print # new line at end
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print # new line at exit
|
print # new line at exit
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
|
@ -5,7 +5,7 @@ import os
|
||||||
from slpkg.colors import colors
|
from slpkg.colors import colors
|
||||||
from slpkg.functions import get_file
|
from slpkg.functions import get_file
|
||||||
from slpkg.__metadata__ import tmp, pkg_path, slpkg_path, sp
|
from slpkg.__metadata__ import tmp, pkg_path, slpkg_path, sp
|
||||||
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype
|
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype, build_path
|
||||||
from slpkg.messages import s_user, pkg_not_found, pkg_found, view_sbo, template
|
from slpkg.messages import s_user, pkg_not_found, pkg_found, view_sbo, template
|
||||||
|
|
||||||
from slpkg.pkg.build import build_package
|
from slpkg.pkg.build import build_package
|
||||||
|
@ -67,6 +67,8 @@ def sbo_network(name):
|
||||||
os.remove("{0}readme/{1}{2}".format(slpkg_path, name, site))
|
os.remove("{0}readme/{1}{2}".format(slpkg_path, name, site))
|
||||||
elif read == "B" or read == "b":
|
elif read == "B" or read == "b":
|
||||||
s_user(getpass.getuser())
|
s_user(getpass.getuser())
|
||||||
|
os.system("mkdir -p {0}".format(build_path))
|
||||||
|
os.chdir(build_path)
|
||||||
script = get_file(sbo_dwn, "/")
|
script = get_file(sbo_dwn, "/")
|
||||||
source = get_file(source_dwn, "/")
|
source = get_file(source_dwn, "/")
|
||||||
print ("\n{0}Start -->{1}\n".format(colors.GREEN, colors.ENDC))
|
print ("\n{0}Start -->{1}\n".format(colors.GREEN, colors.ENDC))
|
||||||
|
@ -76,10 +78,12 @@ def sbo_network(name):
|
||||||
for src in extra_dwn.split():
|
for src in extra_dwn.split():
|
||||||
os.system("wget -N {0}".format(src))
|
os.system("wget -N {0}".format(src))
|
||||||
extra.append(get_file(src, "/"))
|
extra.append(get_file(src, "/"))
|
||||||
build_package(script, source, extra)
|
build_package(script, source, extra, build_path)
|
||||||
break
|
break
|
||||||
elif read == "I" or read == "i":
|
elif read == "I" or read == "i":
|
||||||
s_user(getpass.getuser())
|
s_user(getpass.getuser())
|
||||||
|
os.system("mkdir -p {0}".format(build_path))
|
||||||
|
os.chdir(build_path)
|
||||||
prgnam = sbo_prgnam_pkg(sbo_url, name)
|
prgnam = sbo_prgnam_pkg(sbo_url, name)
|
||||||
pkg_for_install = ("{0}-{1}".format(prgnam, sbo_version))
|
pkg_for_install = ("{0}-{1}".format(prgnam, sbo_version))
|
||||||
if find_package(prgnam + sp, pkg_path) == []:
|
if find_package(prgnam + sp, pkg_path) == []:
|
||||||
|
@ -92,8 +96,9 @@ def sbo_network(name):
|
||||||
for src in extra_dwn.split():
|
for src in extra_dwn.split():
|
||||||
os.system("wget -N {0}".format(src))
|
os.system("wget -N {0}".format(src))
|
||||||
extra.append(get_file(src, "/"))
|
extra.append(get_file(src, "/"))
|
||||||
build_package(script, source, extra)
|
build_package(script, source, extra, build_path)
|
||||||
binary = (tmp + pkg_for_install + sbo_arch + sbo_tag + sbo_filetype).split()
|
binary = ("{0}{1}{2}{3}{4}".format(
|
||||||
|
tmp, pkg_for_install, sbo_arch, sbo_tag, sbo_filetype).split())
|
||||||
pkg_upgrade(binary)
|
pkg_upgrade(binary)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
# [ slack ] directory
|
# [ slackware ] directory
|
||||||
|
|
|
@ -7,7 +7,7 @@ import getpass
|
||||||
from slpkg.colors import colors
|
from slpkg.colors import colors
|
||||||
from slpkg.messages import s_user
|
from slpkg.messages import s_user
|
||||||
from slpkg.url_read import url_read
|
from slpkg.url_read import url_read
|
||||||
from slpkg.__metadata__ import pkg_path, slpkg_path
|
from slpkg.__metadata__ import pkg_path, slpkg_path, arch
|
||||||
|
|
||||||
from slpkg.pkg.find import find_package
|
from slpkg.pkg.find import find_package
|
||||||
from slpkg.pkg.manager import pkg_upgrade
|
from slpkg.pkg.manager import pkg_upgrade
|
||||||
|
@ -66,7 +66,12 @@ def patches():
|
||||||
print ("\nThere are packages in directory {0}{1}\n".format(
|
print ("\nThere are packages in directory {0}{1}\n".format(
|
||||||
slpkg_path, 'patches/'))
|
slpkg_path, 'patches/'))
|
||||||
else:
|
else:
|
||||||
print ("\nSlackware {0} distribution is up to date\n".format(slack_ver()))
|
if arch == "x86_64":
|
||||||
|
slack_arch = 64
|
||||||
|
else:
|
||||||
|
slack_arch = ""
|
||||||
|
print ("\nSlackware{0} v{1} distribution is up to date\n".format(
|
||||||
|
slack_arch, slack_ver()))
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print # new line at exit
|
print # new line at exit
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
Loading…
Reference in a new issue