Update for version 2.5.0

This commit is contained in:
Dimitris Zlatanidis 2015-06-13 07:53:28 +03:00
parent 7ebb6777a9
commit a2eb406e09
2 changed files with 117 additions and 71 deletions

View file

@ -100,7 +100,7 @@ Default available Repositories:
- `Restricted <http://taper.alienbase.nl/mirrors/people/alien/restricted_slackbuilds/>`_ - `Restricted <http://taper.alienbase.nl/mirrors/people/alien/restricted_slackbuilds/>`_
Arch: {x86, x86_64} Arch: {x86, x86_64}
Versions: {11.0, 12.0, 12.1, 12.2, 13.0, 13.1, 13.37, 14.0, 14,1, current} Versions: {11.0, 12.0, 12.1, 12.2, 13.0, 13.1, 13.37, 14.0, 14,1, current}
- `MSB <http://slackware.org.uk/msb/>`_ - `MATE Desktop Environment <http://slackware.org.uk/msb/>`_
Arch: {x86, x86_64} Arch: {x86, x86_64}
Versions: {14.0, 14,1} Versions: {14.0, 14,1}
@ -166,7 +166,8 @@ The next four commands '$ slpkg --installpkg, --upgradepkg, --removepkg <package
remove packages from your system events. remove packages from your system events.
Notable mention must give the command '$ slpkg --removepkg <packages>' which can remove a packages Notable mention must give the command '$ slpkg --removepkg <packages>' which can remove a packages
with all dependencies together after editing configuration file '/etc/slpkg/slpkg.conf' with all dependencies together after editing configuration file '/etc/slpkg/slpkg.conf'
(default is disable). (default is disable). Also you can check if packages used as dependency with additional option
"--check-deps".
The last command is useful to print the entire contents of a package installed on the system with the The last command is useful to print the entire contents of a package installed on the system with the
command '$ slpkg -d <packages>'. command '$ slpkg -d <packages>'.
@ -325,9 +326,9 @@ Command Line Tool Usage
|_| |___/ |_| |___/
Commands: Commands:
update Run this command to update all update, --only=[...] Run this command to update all
the packages list. the packages list.
upgrade Delete and recreate all packages upgrade, --only=[...] Delete and recreate all packages
lists. lists.
repo-add [repository name] [URL] Add custom repository. repo-add [repository name] [URL] Add custom repository.
repo-remove [repository] Remove custom repository. repo-remove [repository] Remove custom repository.
@ -363,7 +364,7 @@ Command Line Tool Usage
only packages installed on the only packages installed on the
system. system.
-c, --check, [repository] --upgrade, Check, view and install updated -c, --check, [repository] --upgrade, Check, view and install updated
--skip=[] --resolve-off packages from repositories. --skip=[...] --resolve--off packages from repositories.
-s, --sync, [repository] [package...], Sync packages. Install packages -s, --sync, [repository] [package...], Sync packages. Install packages
--resolve-off directly from remote repositories --resolve-off directly from remote repositories
with all dependencies. with all dependencies.
@ -382,25 +383,24 @@ Command Line Tool Usage
and prints results. and prints results.
-f, --find, [package...] Find and print installed packages -f, --find, [package...] Find and print installed packages
reporting the size and the sum. reporting the size and the sum.
-i, --installpkg, [options] [package...] Installs single or multiple -i, --installpkg, [options] [package...] Installs single or multiple *.tgz
options=[--warn, --md5sum, --root, Slackware binary packages designed options=[--warn, --md5sum, --root, (or .tbz, .tlz, .txz) Slackware
--infobox, --menu, --terse, for use with the Slackware Linux --infobox, --menu, --terse, binary packages designed for use
--ask, --priority, distribution onto your system. --ask, --priority, with the Slackware Linux
--tagfile] --tagfile] distribution onto your system.
-u, --upgradepkg, [options] [package...] Upgrade single or multiple Slackware -u, --upgradepkg, [options] [package...] Upgrade single or multiple Slackware
options=[--dry-run, --install-new, binary packages from an older options=[--dry-run, --install-new, binary packages from an older
--reinstall, --verbose] version to a newer one. --reinstall, --verbose] version to a newer one.
-r, --removepkg, [options] [package...] Removes a previously installed -r, --removepkg, [options] [package...], Removes a previously installed
options=[-warn, -preserve, copy, Slackware binary packages. --check-deps Slackware binary packages,
-keep] options=[-warn, -preserve, copy, while writing a progress report
-keep] to the standard output.
-d, --display, [package...] Display the installed packages -d, --display, [package...] Display the installed packages
contents and file list. contents and file list.
Slpkg Examples Slpkg Examples
-------------- --------------
If you use slpkg for the first time will have to create and update the package If you use slpkg for the first time will have to create and update the package
list. This command must be executed to update the package lists: list. This command must be executed to update the package lists:
@ -420,6 +420,11 @@ list. This command must be executed to update the package lists:
Update repository slacke ...Done Update repository slacke ...Done
Update repository slackl ...Done Update repository slackl ...Done
Update repository multi ...Done Update repository multi ...Done
Update repository msb ........Done
Update specifically repositories:
$ slpkg update --only=sbo,msb,slacky
Add and remove custom repositories: Add and remove custom repositories:
@ -447,6 +452,7 @@ View information about the repositories:
+============================================================================== +==============================================================================
alien http://www.slackware.com/~alien/slackbuilds/ yes disabled alien http://www.slackware.com/~alien/slackbuilds/ yes disabled
ktown http://alien.slackbook.org/ktown/ yes disabled ktown http://alien.slackbook.org/ktown/ yes disabled
| msb http://slackware.org.uk/msb/ yes enabled
multi http://www.slackware.com/~alien/multilib/ yes disabled multi http://www.slackware.com/~alien/multilib/ yes disabled
ponce http://ponce.cc/slackware/slackware64-14.1/packa~ no enabled ponce http://ponce.cc/slackware/slackware64-14.1/packa~ no enabled
rested http://taper.alienbase.nl/mirrors/people/alien/r~ yes disabled rested http://taper.alienbase.nl/mirrors/people/alien/r~ yes disabled
@ -487,61 +493,59 @@ Installing packages from the repositories (supporting multi packages):
with new version: with new version:
+============================================================================== +==============================================================================
| Package Version Arch Build Repos Size | Package New version Arch Build Repos Size
+============================================================================== +==============================================================================
Installing: Installing:
brasero 3.12.0 x86_64 SBo brasero 3.12.1 x86_64 SBo
Installing for dependencies: Installing for dependencies:
orc 0.4.22 x86_64 SBo orc 0.4.23 x86_64 SBo
gstreamer1 1.4.1 x86_64 SBo gstreamer1 1.4.5 x86_64 SBo
gst1-plugins-base 1.4.1 x86_64 SBo gst1-plugins-base 1.4.5 x86_64 SBo
gst1-plugins-bad 1.4.1 x86_64 SBo gst1-plugins-bad 1.4.5 x86_64 SBo
libunique 1.1.6 x86_64 SBo
Installing summary Installing summary
=============================================================================== ===============================================================================
Total 6 packages. Total 5 packages.
4 packages will be installed, 2 allready installed and 0 package 5 packages will be installed, 0 allready installed and 0 package
will be upgraded. will be upgraded.
Would you like to continue [Y/n]? Would you like to continue [Y/n]?
Example install multi packages: Example install multi packages:
$ slpkg -s sbo brasero pylint bitfighter $ slpkg -s sbo brasero pylint atkmm
Reading package lists ..........Done Reading package lists ..........Done
Resolving dependencies ......Done Resolving dependencies ......Done
The following packages will be automatically installed or upgraded The following packages will be automatically installed or upgraded
with new version: with new version:
+============================================================================== +==============================================================================
| Package Version Arch Build Repos Size | Package New version Arch Build Repos Size
+============================================================================== +==============================================================================
Installing: Installing:
brasero 3.12.0 x86_64 SBo brasero 3.12.1 x86_64 SBo
pylint 1.3.1 x86_64 SBo pylint-1.3.1 1.3.1 x86_64 SBo
bitfighter 019d x86_64 SBo atkmm 2.22.7 x86_64 SBo
Installing for dependencies: Installing for dependencies:
libmodplug 0.8.8.5 x86_64 SBo libsigc++ 2.2.11 x86_64 SBo
speex 1.2rc1 x86_64 SBo glibmm 2.36.2 x86_64 SBo
SDL2 2.0.3 x86_64 SBo cairomm 1.10.0 x86_64 SBo
OpenAL 1.16.0 x86_64 SBo pangomm 2.34.0 x86_64 SBo
six 1.8.0 x86_64 SBo six-1.8.0 1.8.0 x86_64 SBo
logilab-common 0.63.2 x86_64 SBo pysetuptools-17.0 17.0 x86_64 SBo
pysetuptools 7.0 x86_64 SBo logilab-common-0.63.2 0.63.2 x86_64 SBo
astroid 1.3.4 x86_64 SBo astroid-1.3.6 1.3.6 x86_64 SBo
orc 0.4.22 x86_64 SBo orc 0.4.23 x86_64 SBo
gstreamer1 1.4.1 x86_64 SBo gstreamer1 1.4.5 x86_64 SBo
gst1-plugins-base 1.4.1 x86_64 SBo gst1-plugins-base 1.4.5 x86_64 SBo
gst1-plugins-bad 1.4.1 x86_64 SBo gst1-plugins-bad 1.4.5 x86_64 SBo
libunique 1.1.6 x86_64 SBo
Installing summary Installing summary
=============================================================================== ===============================================================================
Total 16 packages. Total 15 packages.
4 packages will be installed, 12 allready installed and 0 package 10 packages will be installed, 5 allready installed and 0 package
will be upgraded. will be upgraded.
Would you like to continue [Y/n]? Would you like to continue [Y/n]?
@ -574,6 +578,31 @@ Installing packages from the repositories (supporting multi packages):
Would you like to continue [Y/n]? Would you like to continue [Y/n]?
Close auto resolve dependencies:
$ slpkg -s alien atkm --resolve-off
Reading package lists .....Done
The following packages will be automatically installed or upgraded
with new version:
+==============================================================================
| Package New Version Arch Build Repos Size
+==============================================================================
Installing:
atkmm 2.22.6 x86_64 1 alien 124 K
Installing summary
===============================================================================
Total 1 package.
1 package will be installed, 0 will be upgraded and 0 will be reinstalled.
Need to get 124 Kb of archives.
After this process, 620 Kb of additional disk space will be used.
Would you like to continue [Y/n]?
Build packages and passing variables to the script: Build packages and passing variables to the script:
.. code-block:: bash .. code-block:: bash
@ -591,7 +620,7 @@ Build packages and passing variables to the script:
$ slpkg -n ffmpeg $ slpkg -n ffmpeg
or or if already script and source donwloaded:
$ slpkg -a ffmpeg.tar.gz ffmpeg-2.1.5.tar.bz2 $ slpkg -a ffmpeg.tar.gz ffmpeg-2.1.5.tar.bz2
@ -637,12 +666,12 @@ Check if your packages is up to date:
| Package Version Arch Build Repos Size | Package Version Arch Build Repos Size
+============================================================================== +==============================================================================
Upgrading: Upgrading:
astroid 1.3.4 x86_64 SBo astroid-1.3.2 1.3.4 x86_64 SBo
jdk 8u31 x86_64 SBo jdk-7u51 8u31 x86_64 SBo
Installing for dependencies: Installing for dependencies:
six 1.8.0 x86_64 SBo six-1.7.3 1.8.0 x86_64 SBo
logilab-common 0.63.2 x86_64 SBo logilab-common-0.60.1 0.63.2 x86_64 SBo
pysetuptools 7.0 x86_64 SBo pysetuptools-6.1 7.0 x86_64 SBo
Installing summary Installing summary
=============================================================================== ===============================================================================
@ -662,7 +691,7 @@ Check if your packages is up to date:
| Package Version Arch Build Repos Size | Package Version Arch Build Repos Size
+============================================================================== +==============================================================================
Upgrading: Upgrading:
gstreamer1 1.4.4 x86_64 1 slacky 1563 K gstreamer1-1.4.1 1.4.4 x86_64 1 slacky 1563 K
Installing summary Installing summary
=============================================================================== ===============================================================================
@ -690,9 +719,9 @@ why always you can have updated your system:
| Package Version Arch Build Repos Size | Package Version Arch Build Repos Size
+============================================================================== +==============================================================================
Upgrading: Upgrading:
dhcpcd 6.0.5 x86_64 3 Slack 92 K dhcpcd-6.0.5 6.0.5 x86_64 3 Slack 92 K
samba 4.1.11 x86_64 1 Slack 9928 K samba-4.1.0 4.1.11 x86_64 1 Slack 9928 K
xscreensaver 5.29 x86_64 1 Slack 3896 K xscreensaver-5.22 5.29 x86_64 1 Slack 3896 K
Installing summary Installing summary
=============================================================================== ===============================================================================
@ -719,10 +748,10 @@ Skip packages when upgrading:
| Package Version Arch Build Repos Size | Package Version Arch Build Repos Size
+============================================================================== +==============================================================================
Upgrading: Upgrading:
cffi 1.1.0 x86_64 SBo cffi-1.0.1 1.1.0 x86_64 SBo
Installing for dependencies: Installing for dependencies:
pysetuptools 17.0 x86_64 SBo pysetuptools-17.0 17.0 x86_64 SBo
pycparser 2.13 x86_64 SBo pycparser-2-12 2.13 x86_64 SBo
Installing summary Installing summary
=============================================================================== ===============================================================================
@ -995,13 +1024,13 @@ Removes a previously installed Slackware binary packages:
+============================================================================== +==============================================================================
Remove packages with all dependencies: Remove packages with all dependencies and check if used as dependency:
Presupposes facility with the option '$ slpkg -s <repository> <packages>' and Presupposes facility with the option '$ slpkg -s <repository> <packages>' and
enabled from configuration file. enabled from configuration file.
.. code-block:: bash .. code-block:: bash
$ slpkg -r Flask $ slpkg -r Flask --check-deps
Packages with name matching [ Flask ] Packages with name matching [ Flask ]
@ -1021,13 +1050,26 @@ enabled from configuration file.
Remove dependencies (maybe used by other packages) [Y/n]? y Remove dependencies (maybe used by other packages) [Y/n]? y
+==============================================================================
| Enter some packages splitting with comma ',' for be excluded
| from the removal or hit Enter to continue:
+==============================================================================
| >
+==============================================================================
| WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!
+==============================================================================
| pysetuptools is dependency of the package --> Flask
| MarkupSafe is dependency of the package --> Flask
| werkzeug is dependency of the package --> Flask
| Jinja2 is dependency of the package --> Flask
| itsdangerous is dependency of the package --> Flask
| pysetuptools is dependency of the package --> flake8
| pysetuptools is dependency of the package --> pip
| pysetuptools is dependency of the package --> pipstat
| pysetuptools is dependency of the package --> pylint
| pysetuptools is dependency of the package --> wcwidth
+==============================================================================
+==============================================================================
| Insert packages to exception removal:
+==============================================================================
>
. .
. .
. .

View file

@ -230,9 +230,13 @@ class PackageManager(object):
dependency.append(rmv) dependency.append(rmv)
if view: if view:
Msg().template(78) Msg().template(78)
print("| {0}{1}{2}".format(
self.meta.color["RED"], "WARNING !!! " * 5,
self.meta.color["ENDC"]))
Msg().template(78)
for p, d in zip(package, dependency): for p, d in zip(package, dependency):
print("| {0}{1}{2} is dependency of the package --> " print("| {0}{1}{2} is dependency of the package --> "
"{3}{4}{5}".format(self.meta.color["RED"], d, "{3}{4}{5}".format(self.meta.color["YELLOW"], d,
self.meta.color["ENDC"], self.meta.color["ENDC"],
self.meta.color["GREEN"], p, self.meta.color["GREEN"], p,
self.meta.color["ENDC"])) self.meta.color["ENDC"]))