LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slpkg : SlackBuild.org package manager (https://www.linuxquestions.org/questions/slackware-14/slpkg-slackbuild-org-package-manager-4175720937/)

marav 01-15-2023 02:02 PM

slpkg : SlackBuild.org package manager
 
1 Attachment(s)
Hi,

Here is a thread about this great package manager for SlackBuild.org repository
I will give some updates of the hard work made by Dimitris (dslackw)
I made the French translation of the manpage, and I try to help him (feedback, debug, etc...) as mush as I can

Features:
- Install, Update, Remove packages and its dependencies
- It automatically calculates dependencies and figures out what things need to happen to install packages.
- It makes it easier to manage groups of machines without the need for manual updates
And among others:
- Dependencies install order
- Colorful messages
- Nice python "clock" progress bar (I don't know how to call this one :D )
- Check the ChangeLog.txt file before update
- Improve speed for dependees

The last release on SBo is 4.4.8
And the 4.5.0 is awesome!

Links:
Web site: https://dslackw.gitlab.io/slpkg/
Gitlab: https://gitlab.com/dslackw/slpkg
SBo: https://slackbuilds.org/repository/15.0/system/slpkg

marav 01-15-2023 02:03 PM

A new Release 4.5.0 for slpkg was published

Changelog:
Code:

4.5.0 - 14/01/2023
Updated:
- Download first all the slackbuilds
- Rename view_mode to silent_mode
Added:
- Option --no-silent


rizitis 01-16-2023 10:49 AM

great thank you.
Is it only for Slackware 15 or current is back?

marav 01-16-2023 11:06 AM

Quote:

Originally Posted by rizitis (Post 6404757)
great thank you.
Is it only for Slackware 15 or current is back?

both
But SBo provides slackbuilds for <= 15.0
Most of the time, at least here, they build & run fine on -current

rizitis 01-19-2023 07:24 AM

https://youtu.be/kFmZBf2xrpg

Its the best version of slpkg ever...

marav 01-19-2023 07:53 AM

Quote:

Originally Posted by rizitis (Post 6405432)
https://youtu.be/kFmZBf2xrpg

Its the best version of slpkg ever...

100% agree

marav 01-20-2023 11:39 AM

A new Release 4.5.1 for slpkg was published

Changelog:
Code:

4.5.1 - 16/01/2023
Added:
- Option --directory=PATH for download command
- Option --pkg-version for print repository version


marav 01-26-2023 10:33 AM

A new Release 4.5.2 for slpkg was published

Changelog:
Code:

4.5.2 - 21/01/2023
BugFixed:
- IndexError: list index out of range
Updated:
 - manpages for options (Thanks to marav)
 Added:
 - Option --file-pattern
 - Curl downloader as the second option


zeos386sx 01-27-2023 07:12 PM

I'm getting an error about slackbuilds certificate is expired. Is there a way to tell slpkg to ignore this?

marav 01-27-2023 07:17 PM

Quote:

Originally Posted by zeos386sx (Post 6407391)
I'm getting an error about slackbuilds certificate is expired. Is there a way to tell slpkg to ignore this?

It's a Let's encrypt certificate that expires on : Sat, 28 Jan 2023 03:08:41 GMT

Hopefully, it should be automatically renewed soon

zeos386sx 01-27-2023 07:22 PM

OK thanks

Didier Spaier 01-28-2023 05:06 AM

Renewed.

marav 02-03-2023 01:16 PM

A new Release 4.5.3 for slpkg was published

Changelog:
Code:

4.5.3 - 27/01/2023
Added:
- Short options
- New configuration for ascii characters


marav 02-03-2023 04:13 PM

Quote:

Originally Posted by marav (Post 6408953)
A new Release 4.5.3 for slpkg was published

Changelog:
Code:

4.5.3 - 27/01/2023
Added:
- Short options
- New configuration for ascii characters


Short options, here they are:
Code:

-u, update
-U, upgrade
-c, check-updates
-L, clean-logs
-D, clean-tmp
-g, configs
-b, build
-i, install
-d, download
-r, remove
-f, find
-w, view
-s, search
-e, dependees
-t, tracking
-y, --yes
-j, --jobs
-ro, --resolve-off
-R, --reinstall
-si, --skip-installed
-fr, --full-reverse
-S, --search
-ns, --no-silent
-dir=, --directory=PATH
-pv, --pkg-version
-fp=, --file-pattern=PATTERN


Andy Alt 02-09-2023 12:43 PM

Thanks for your work on this. I've included slpkg in the Slackware build essential docker image.

rizitis 02-13-2023 12:22 PM

Code:

install(){
    sudo slpkg -i $1 -fp='*'
}

I just want to share with you this. I added it in my .bashrc now when I want to install a package, example vlc, I command "install vlc"
slpkg search if vlc deps are installed and everything that is installed escape from the installation/upgradepkg list. it works like alias=sudo slpkg -i <package> -fp='*'

marav 03-02-2023 12:41 PM

A new Release 4.5.4 for slpkg was published

Changelog:
Code:

4.5.4 - 05/02/2023
Updated:
- Message for configs
Added:
- For concatenating the short options (Thanks to marav)
- Help command for extra helping
- Ponce repository
- lftp downloader
Fixed:
- TOML decoder error for blacklist file
- Fixed to compare versions for dependencies (Thanks to marav)


rizitis 03-03-2023 04:11 AM

I tested slpkg with ponce repo for Slackware-current and I found it ok.
I want to share here a small howto for everyone who running Slackware-current and want to use ponce repo via slpkg.

1) IF you install slpkg for first time then you should edit /etc/slpkg/slpkg.toml like this
Code:

nano /etc/slpkg/slpkg.toml
and edit line 55 like this
Code:

# You can choose downloader between wget and curl.
  # Ponce repository works only with 'lftp' downloader.
  # Default is wget. [wget/curl/lftp].
  DOWNLOADER = "lftp"

also line 94
Code:

PONCE_REPO = true
then save and exit.
you are ready for
Code:

slpkg update
2) If you already have slpkg in the installation, then when you upgrade slpkg version, you should have a file /etc/slpkg/slpkg.toml.new
this is the file you must edit like above, save and exit
Then command
Code:

mv /etc/slpkg/slpkg.toml.new /etc/slpkg/slpkg.toml
and thats all you are ready to use slpkg focus to ponce repo for Slackware-current.

marav 03-03-2023 10:36 AM

A new Release 4.5.5 for slpkg was published

Changelog:
Code:

4.5.5 - 02/03/2023
Fixed:
- Genarator type to list return


marav 03-04-2023 05:25 AM

Quote:

Originally Posted by rizitis (Post 6415034)
Then command
Code:

mv /etc/slpkg/slpkg.toml.new /etc/slpkg/slpkg.toml
and thats all you are ready to use slpkg focus to ponce repo for Slackware-current.

Code:

# slackpkg new-config
also works

If you want to see diff, to merge your old conf with the new one, etc.

marav 03-04-2023 07:51 AM

Code:

Added:
- For concatenating the short options

Now, we can do, e.g. for reinstalling a pkg, multi jobs, "yes" by default:
Code:

# slpkg -irjy <package>
-irjy = install --reinstall --jobs --yes

note:
MAKEFLAGS must be set in your environment for --jobs (e.g. MAKEFLAGS="-j$(nproc)")

marav 03-07-2023 10:56 AM

A new Release 4.5.6 for slpkg was published

Changelog:
Code:

4.5.6 - 02/03/2023
Updated:
- Ponce repository
- slpkg.toml file for ponce repository
Added:
- Option --generate-only for ponce repository
- Command clean-data to delete repositories data
- Dialog text help for items
- Read packages from file
- Ask question to the config

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

dslackw 03-07-2023 11:18 AM

Hi to all,

For everyone who installed 4.5.5 and use the 'ponce' repository, it will be needed to run `slpkg clean-data` & `slpkg update` to recreate the database, otherwise, the database will crash.

With the version 4.5.6 the 'ponce' repository is fully supported.

Cheers

marav 03-09-2023 03:40 AM

A new Release 4.5.7 for slpkg was published

Changelog:
Code:

4.5.7 - 07/03/2023
Added:
- Ignore comments for list.pkgs files (Thanks to rizitis)
- The file pattern in the config file
- Command new-configs to managing .new files
Updated:
- Blacklist config file
- To support '.sqf' files (Thanks to rizitis)
Fixed:
- TypeError: '<' not supported between instances of 'str' and 'int

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

dslackw 03-09-2023 04:18 AM

Quote:

Originally Posted by marav (Post 6415224)
Code:

# slackpkg new-config
also works

If you want to see diff, to merge your old conf with the new one, etc.

Added a new command 'slpkg new-config' only for slpkg configs files!

Cheers

marav 03-10-2023 02:40 AM

A new Release 4.5.8 for slpkg was published

Changelog:
Code:

4.5.8 - 09/03/2023
Updated:
- View the name of the repository instead of the size
- Highlighted with grey of the installed packages
- Ignored question when there are updates available

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

marav 03-14-2023 02:23 PM

A new Release 4.5.9 for slpkg was published

Changelog:
Code:

4.5.9 - 10/03/2023
BugFixed:
- Default build path /tmp/slpkg/build
- Build a package with multiple sources
Added:
- lftp as the source file downloader
- Support for multiprocess downloading
- Config for parallel download
- Option --parallel to download in parallel
- Build tag to the view packages (Thanks to marav)
Updated:
- Upgrade packages with the same versions but with different build tags (Thanks to marav)
- Moved new-configs to slpkg_new-configs

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

nobodino 03-15-2023 01:50 AM

Hello, a little problem here:

Code:

Traceback (most recent call last):
  File "/usr/sbin/slpkg", line 5, in <module>
    from slpkg.main import main
  File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 20, in <module>
    from slpkg.download_only import Download
  File "/usr/lib64/python3.9/site-packages/slpkg/download_only.py", line 11, in <module>
    from slpkg.downloader import Downloader
  File "/usr/lib64/python3.9/site-packages/slpkg/downloader.py", line 12, in <module>
    from slpkg.progress_bar import ProgressBar
  File "/usr/lib64/python3.9/site-packages/slpkg/progress_bar.py", line 5, in <module>
    from progress.spinner import PixelSpinner
ModuleNotFoundError: No module named 'progress'

but I already have progress module:

Code:

-rw-r--r-- 1 root root    968 mars  12 16:09 progress-0.16-x86_64-1_SBo
-rw-r--r-- 1 root root    1287 mars  12 16:08 python2-pythondialog-3.4.0-x86_64-1_SBo
-rw-r--r-- 1 root root    1678 mars  12 16:08 python3-pythondialog-3.5.3-x86_64-1_SBo
-rw-r--r-- 1 root root  42326 mars  12 16:06 SQLAlchemy-1.4.46-x86_64-1_SBo


dslackw 03-15-2023 03:15 AM

Quote:

Originally Posted by nobodino (Post 6417818)
Hello, a little problem here:

Code:

Traceback (most recent call last):
  File "/usr/sbin/slpkg", line 5, in <module>
    from slpkg.main import main
  File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 20, in <module>
    from slpkg.download_only import Download
  File "/usr/lib64/python3.9/site-packages/slpkg/download_only.py", line 11, in <module>
    from slpkg.downloader import Downloader
  File "/usr/lib64/python3.9/site-packages/slpkg/downloader.py", line 12, in <module>
    from slpkg.progress_bar import ProgressBar
  File "/usr/lib64/python3.9/site-packages/slpkg/progress_bar.py", line 5, in <module>
    from progress.spinner import PixelSpinner
ModuleNotFoundError: No module named 'progress'

but I already have progress module:

Code:

-rw-r--r-- 1 root root    968 mars  12 16:09 progress-0.16-x86_64-1_SBo
-rw-r--r-- 1 root root    1287 mars  12 16:08 python2-pythondialog-3.4.0-x86_64-1_SBo
-rw-r--r-- 1 root root    1678 mars  12 16:08 python3-pythondialog-3.5.3-x86_64-1_SBo
-rw-r--r-- 1 root root  42326 mars  12 16:06 SQLAlchemy-1.4.46-x86_64-1_SBo



Hi,

You need to install 'python3-progress', I guess 'progress' is a different package.

nobodino 03-15-2023 12:21 PM

thanks, that did the trick.

marav 03-15-2023 03:23 PM

A new Release 4.6.0 for slpkg was published

Changelog:
Code:

4.6.0 - 14/03/2023
Updated:
- Dialog text help for dependencies
- For configs error messages
- Wget options, removed -N timestamping
Fixed:
- Summary for upgrade packages
- Process for KeyboardInterrupt
Added:
- Progress spinner and color to choose in the config

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

marav 03-17-2023 05:28 AM

A new Release 4.6.1 for slpkg was published

Changelog:
Code:

4.6.1 - 15/03/2023
Updated:
- For empty arguments
- Checks for invalid options
- The error messages
Added:
- Vimdiff in the slpkg_new-configs command file (Thanks to tkor)

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

marav 04-01-2023 08:43 AM

1 Attachment(s)
FYI

In parallel to continuous code improvement, many additions for the next release:
Code:

- Added repo ponce_bin
- Added multilib repo
- Added restricted repo
- Added slackel repo
- Added salixos repo
- Added salixos_extra repo
- Added slint repo
- Added slackonly repository
- Added conraid repository
- Added msb repository (MATE)
- Added csb repository (Cinnamon)
- Added gnome repository

Preview:

rizitis 04-01-2023 10:42 AM

And gnome :)

Ps. For current will be 43 and ,44 ;)

bittin_ 04-02-2023 07:42 AM

Installed this too try out now :)

marav 04-02-2023 01:48 PM

A new Release 4.7.0 for slpkg was published

Changelog:
Code:

4.7.0 - 02/04/2023
Updated:
- Checks for recurring options
- Improve speed and quality
Removed:
- File pattern from cli menu
Added:
- Binaries support repositories
- Sixteen binaries repositories
- Repositories information

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

marav 04-02-2023 02:08 PM

fast as lightning

A new Release 4.7.1 for slpkg was published

Changelog:
Code:

4.7.1 - 02/04/2023
Fixed:
- TypeError: can only concatenate str (not "NoneType") to str

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

rizitis 04-02-2023 02:40 PM

Here is an example for SLackware-current which I use.
/etc/slpkg/repositories.toml
Code:

################# REPOSITORIES CONFIGURATION FILE ######################
# The philosophy behind this is to have two repositories for          #
# Slackbuilds one for the Slackware stable and one for the -current    #
# and many binaries for all versions.                                  #
# Set 'true' to 'PONCE_REPO' to switch Slackbuild.org repository.      #
# Set 'true' to the binaries repositories you want to enable.          #
# Default is the 'sbo' Slackbuilds.org repository.                    #
########################################################################

########################################################################
# Note: Before using a repository, make sure you have read about it.  #
#      Some repositories are for -current only. Change the mirror if  #
#      it is necessary. The mirror should end with a slash '/'.      #
########################################################################

[REPOSITORIES]

  # Repository for Slackware 15.0 stable.
  SBO_REPO_NAME = "sbo"
  SBO_REPO_MIRROR = "https://slackbuilds.org/slackbuilds/15.0/"
  SBO_REPO_SLACKBUILDS = "SLACKBUILDS.TXT"
  SBO_REPO_CHANGELOG = "ChangeLog.txt"
  SBO_REPO_TAR_SUFFIX = ".tar.gz"
  SBO_REPO_TAG = "_SBo"

  # Repository for Slackware -current.
  PONCE_REPO = true
  PONCE_REPO_NAME = "ponce"
  PONCE_REPO_MIRROR = "https://cgit.ponce.cc/slackbuilds/plain/"
  PONCE_REPO_SLACKBUILDS = "SLACKBUILDS.TXT"
  PONCE_REPO_CHANGELOG = "ChangeLog.txt"
  PONCE_REPO_TAG = "_SBo"

  # Official repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://slackware.uk/slackware/slackware64-current/
  SLACK_REPO = false
  SLACK_REPO_NAME = "slack"
  SLACK_REPO_MIRROR = "https://slackware.uk/slackware/slackware64-15.0/"
  SLACK_REPO_PACKAGES = "PACKAGES.TXT"
  SLACK_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SLACK_REPO_CHANGELOG = "ChangeLog.txt"

  # Official repository for Slackware patches x86_64 15.0 stable.
  # For Slackware patches x86_64 -current:
  # https://slackware.uk/slackware/slackware64-current/extra/
  SLACK_EXTRA_REPO = true
  SLACK_EXTRA_REPO_NAME = "slack_extra"
  SLACK_EXTRA_REPO_MIRROR = "https://slackware.uk/slackware/slackware64-current/"
  SLACK_EXTRA_REPO_PACKAGES_MIRROR = "https://slackware.uk/slackware/slackware64-current/extra/"
  SLACK_EXTRA_REPO_PACKAGES = "PACKAGES.TXT"
  SLACK_EXTRA_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SLACK_EXTRA_REPO_CHANGELOG = "ChangeLog.txt"

  # Official repository for Slackware patches x86_64 15.0 stable.
  # For Slackware patches x86_64 -current:
  # https://slackware.uk/slackware/slackware64-current/patches/
  SLACK_PATCHES_REPO = true
  SLACK_PATCHES_REPO_NAME = "slack_patches"
  SLACK_PATCHES_REPO_MIRROR = "https://slackware.uk/slackware/slackware64-current/"
  SLACK_PATCHES_REPO_PACKAGES_MIRROR = "https://slackware.uk/slackware/slackware64-current/patches/"
  SLACK_PATCHES_REPO_PACKAGES = "PACKAGES.TXT"
  SLACK_PATCHES_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SLACK_PATCHES_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # http://slackware.uk/people/alien/sbrepos/current/x86_64/
  ALIEN_REPO = true
  ALIEN_REPO_NAME = "alien"
  ALIEN_REPO_MIRROR = "http://slackware.uk/people/alien/sbrepos/"
  ALIEN_REPO_PACKAGES_MIRROR = "http://slackware.uk/people/alien/sbrepos/current/x86_64/"
  ALIEN_REPO_PACKAGES = "PACKAGES.TXT"
  ALIEN_REPO_CHECKSUMS = "CHECKSUMS.md5"
  ALIEN_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://slackware.nl/people/alien/multilib/current/
  MULTILIB_REPO = false
  MULTILIB_REPO_NAME = "multilib"
  MULTILIB_REPO_MIRROR = "https://slackware.nl/people/alien/multilib/"
  MULTILIB_REPO_PACKAGES_MIRROR = "https://slackware.nl/people/alien/multilib/15.0/"
  MULTILIB_REPO_PACKAGES = "PACKAGES.TXT"
  MULTILIB_REPO_CHECKSUMS = "CHECKSUMS.md5"
  MULTILIB_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://slackware.nl/people/alien/restricted_sbrepos/current/x86_64/
  RESTRICTED_REPO = true
  RESTRICTED_REPO_NAME = "restricted"
  RESTRICTED_REPO_MIRROR = "https://slackware.nl/people/alien/restricted_sbrepos/"
  RESTRICTED_REPO_PACKAGES_MIRROR = "https://slackware.nl/people/alien/restricted_sbrepos/current/x86_64/"
  RESTRICTED_REPO_PACKAGES = "PACKAGES.TXT"
  RESTRICTED_REPO_CHECKSUMS = "CHECKSUMS.md5"
  RESTRICTED_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://reddoglinux.ddns.net/linux/gnome/43.x/x86_64/
  GNOME_REPO = true
  GNOME_REPO_NAME = "gnome"
  GNOME_REPO_MIRROR = "https://reddoglinux.ddns.net/linux/gnome/41.x/x86_64/"
  GNOME_REPO_PACKAGES = "PACKAGES.TXT"
  GNOME_REPO_CHECKSUMS = "CHECKSUMS.md5"
  GNOME_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://slackware.uk/msb/current/1.26/x86_64/
  MSB_REPO = false
  MSB_REPO_NAME = "msb"
  MSB_REPO_MIRROR = "https://slackware.uk/msb/"
  MSB_REPO_PACKAGES_MIRROR = 'https://slackware.uk/msb/15.0/1.26/x86_64/'
  MSB_REPO_PACKAGES = "PACKAGES.TXT"
  MSB_REPO_CHECKSUMS = "CHECKSUMS.md5"
  MSB_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://slackware.uk/csb/current/x86_64/
  CSB_REPO = false
  CSB_REPO_NAME = "csb"
  CSB_REPO_MIRROR = "https://slackware.uk/csb/"
  CSB_REPO_PACKAGES_MIRROR = 'https://slackware.uk/csb/15.0/x86_64/'
  CSB_REPO_PACKAGES = "PACKAGES.TXT"
  CSB_REPO_CHECKSUMS = "CHECKSUMS.md5"
  CSB_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 -current.
  CONRAID_REPO = true
  CONRAID_REPO_NAME = "conraid"
  CONRAID_REPO_MIRROR = "https://slack.conraid.net/repository/slackware64-current/"
  CONRAID_REPO_PACKAGES = "PACKAGES.TXT"
  CONRAID_REPO_CHECKSUMS = "CHECKSUMS.md5"
  CONRAID_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  # For Slackware x86_64 -current:
  # https://packages.slackonly.com/pub/packages/current-x86_64/
  SLACKONLY_REPO = false
  SLACKONLY_REPO_NAME = "slackonly"
  SLACKONLY_REPO_MIRROR = "https://packages.slackonly.com/pub/packages/15.0-x86_64/"
  SLACKONLY_REPO_PACKAGES = "PACKAGES.TXT"
  SLACKONLY_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SLACKONLY_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Salix OS x86_64 15.0 stable.
  SALIXOS_REPO = false
  SALIXOS_REPO_NAME = "salixos"
  SALIXOS_REPO_MIRROR = "https://download.salixos.org/x86_64/slackware-15.0/"
  SALIXOS_REPO_PACKAGES = "PACKAGES.TXT"
  SALIXOS_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SALIXOS_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Salix OS x86_64 15.0 stable.
  SALIXOS_EXTRA_REPO = false
  SALIXOS_EXTRA_REPO_NAME = "salixos_extra"
  SALIXOS_EXTRA_REPO_MIRROR = "https://download.salixos.org/x86_64/slackware-15.0/"
  SALIXOS_EXTRA_REPO_PACKAGES_MIRROR = 'https://download.salixos.org/x86_64/slackware-15.0/extra/'
  SALIXOS_EXTRA_REPO_PACKAGES = "PACKAGES.TXT"
  SALIXOS_EXTRA_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SALIXOS_EXTRA_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Salix OS x86_64 15.0 stable.
  SALIXOS_PATCHES_REPO = false
  SALIXOS_PATCHES_REPO_NAME = "salixos_patches"
  SALIXOS_PATCHES_REPO_MIRROR = "https://download.salixos.org/x86_64/slackware-15.0/"
  SALIXOS_PATCHES_REPO_PACKAGES_MIRROR = 'https://download.salixos.org/x86_64/slackware-15.0/patches/'
  SALIXOS_PATCHES_REPO_PACKAGES = "PACKAGES.TXT"
  SALIXOS_PATCHES_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SALIXOS_PATCHES_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackel OS x86_64 -current.
  SLACKEL_REPO = false
  SLACKEL_REPO_NAME = "slackel"
  SLACKEL_REPO_MIRROR = "http://www.slackel.gr/repo/x86_64/current/"
  SLACKEL_REPO_PACKAGES = "PACKAGES.TXT"
  SLACKEL_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SLACKEL_REPO_CHANGELOG = "ChangeLog.txt"

  # Repository for Slackware x86_64 15.0 stable.
  SLINT_REPO = false
  SLINT_REPO_NAME = "slint"
  SLINT_REPO_MIRROR = "https://slackware.uk/slint/x86_64/slint-15.0/"
  SLINT_REPO_PACKAGES = "PACKAGES.TXT"
  SLINT_REPO_CHECKSUMS = "CHECKSUMS.md5"
  SLINT_REPO_CHANGELOG = "ChangeLog.txt"

For update binaries repo command is
Code:

slpkg update --bin-repo=alien
or for all binaries repos
slpkg update --bin-repo='*'

For install binary package
Code:

slpkg -i libreoffice --bin-repo=alien
to read package info
Code:

slpkg -w libreoffice --bin-repo=alien
Repository: alien
Last Updated: Sat Apr  1 17:54:58 UTC 2023
Name: libreoffice
Version: 7.5.2
Build: 1
Package: libreoffice-7.5.2-x86_64-1alien.txz
Download: http://slackware.uk/people/alien/sbrepos/current/x86_64/libreoffice/libreoffice-7.5.2-x86_64-1alien.txz
Md5sum: e59a65fe4520c836337d78c8a4c0d621
Mirror: http://slackware.uk/people/alien/sbrepos/current/x86_64/
Location: libreoffice
Size Comp: 189848 KB
Size Uncomp: 781550 KB
Requires: boost-compat icu4c-compat openjdk11
Conflicts:
Suggests:
Description:

to build/install find deps etc... for a package from SBo and ponce commands are the same But no "--bin-repo="
example
Code:

slpkg -t vlc
The list below shows the packages 'vlc' with dependencies:

vlc
 += ORBit2
    libbonobo
    gnome-mime-data
    libreplaygain
    libcuefile
    libdaemon
    protobuf3
    libnfs
    x265
    x264
    chromaprint
    libminizip
    schroedinger
    libdvdcss
    rtmpdump
    live555
    gnome-vfs
    dirac
    vcdimager
    musepack-tools
    libmodplug
    libavc1394
    faad2
    zvbi
    libsidplay2
    jack
    projectM
    avahi
    libshout
    libdca
    faac
    libkate
    libtar
    gsm
    twolame
    portaudio
    lua
    libmpeg2
    libdvbpsi
    libdc1394
    libass

41 dependencies for vlc


nobodino 04-03-2023 01:25 AM

problem with latest version:

Code:

# slpkg -U
Traceback (most recent call last):
  File "/usr/sbin/slpkg", line 10, in <module>
    main()
  File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 795, in main
    arguments[args[0]]()
  File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 495, in upgrade
    packages: list = list(upgrade.packages())
  File "/usr/lib64/python3.9/site-packages/slpkg/upgrade.py", line 37, in packages
    if self.is_package_upgradeable(inst_package):
  File "/usr/lib64/python3.9/site-packages/slpkg/upgrade.py", line 58, in is_package_upgradeable
    return parse(repo_version + repo_build) > parse(inst_version + inst_build)
TypeError: can only concatenate str (not "NoneType") to str


dslackw 04-03-2023 01:31 AM

Quote:

Originally Posted by nobodino (Post 6421932)
problem with latest version:

Code:

# slpkg -U
Traceback (most recent call last):
  File "/usr/sbin/slpkg", line 10, in <module>
    main()
  File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 795, in main
    arguments[args[0]]()
  File "/usr/lib64/python3.9/site-packages/slpkg/main.py", line 495, in upgrade
    packages: list = list(upgrade.packages())
  File "/usr/lib64/python3.9/site-packages/slpkg/upgrade.py", line 37, in packages
    if self.is_package_upgradeable(inst_package):
  File "/usr/lib64/python3.9/site-packages/slpkg/upgrade.py", line 58, in is_package_upgradeable
    return parse(repo_version + repo_build) > parse(inst_version + inst_build)
TypeError: can only concatenate str (not "NoneType") to str



Hi,

Thanks for the report.
Do you use -current or stable version? And can you give this:

Code:

cat /usr/lib64/python3.9/site-packages/slpkg/upgrade.py

marav 04-03-2023 03:29 AM

Quote:

Originally Posted by nobodino (Post 6421932)
problem with latest version:

No issue here
Code:

# slpkg -v
Version: 4.7.1
Author: Dimitris Zlatanidis (dslackw)
License: MIT License
Homepage: https://dslackw.gitlab.io/slpkg

@nobodino After each update, you must run : slpkg_new-configs

dslackw 04-03-2023 03:30 AM

Quote:

Originally Posted by marav (Post 6421944)
No issue here
Code:

# slpkg -v
Version: 4.7.1
Author: Dimitris Zlatanidis (dslackw)
License: MIT License
Homepage: https://dslackw.gitlab.io/slpkg

@nobodino After each update, you must run : slpkg_new-configs

I think he uses 4.7.0 version.

nobodino 04-03-2023 05:37 AM

Code:

root@xxxxxx:/etc/slpkg# slpkg -v
Version: 4.7.1
Author: Dimitris Zlatanidis (dslackw)
License: MIT License
Homepage: https://dslackw.gitlab.io/slpkg

Code:

root@xxxxxx:/etc/slpkg# slpkg_new-configs
Checking for NEW configuration files...

  No .new files found.

already done.

nobodino 04-03-2023 05:52 AM

reinstalled once more.
This time it works.

marav 04-03-2023 12:21 PM

A new Release 4.7.2 for slpkg was published

Changelog:
Code:

4.7.2 - 02/04/2023
Updated:
- Packaging parse versions
- For options '-B=', '-z=' to '-B' and '-z'
Fixed:
- Upgrade dependencies without -r option
- Patch slackbuild repo tag
- File pattern '*' for find all installed files

https://gitlab.com/dslackw/slpkg/blo.../ChangeLog.txt

hpfeil 04-03-2023 08:02 PM

4.7.2 ==> https://gitlab.com/dslackw/slpkg/-/tags

Please avoid generating target-marketing data for google by referring to youtube content. Slpkg site is: https://gitlab.com/dslackw/slpkg

marav 04-04-2023 02:59 AM

Quote:

Originally Posted by hpfeil (Post 6422142)
4.7.2 ==> https://gitlab.com/dslackw/slpkg/-/tags

Please avoid generating target-marketing data for google by referring to youtube content. Slpkg site is: https://gitlab.com/dslackw/slpkg

what are you talking about ?

chrisretusn 04-04-2023 07:42 AM

Quote:

Originally Posted by hpfeil (Post 6422142)
4.7.2 ==> https://gitlab.com/dslackw/slpkg/-/tags

Please avoid generating target-marketing data for google by referring to youtube content. Slpkg site is: https://gitlab.com/dslackw/slpkg

Quote:

Originally Posted by marav (Post 6422198)
what are you talking about ?

Agree. Wonder what the answer will be. The URL hpfeil posted was simply a link to your tags for slpkg. I'm scratching my head on this one. :scratch:

rizitis 04-04-2023 08:33 AM

Maybe my post?
Code:

https://www.linuxquestions.org/questions/slackware-14/slpkg-slackbuild-org-package-manager-4175720937/#post6405432

marav 04-04-2023 09:04 AM

To be clear,

No one in my threads comes to say what to do or not, nor what is right or wrong

There are rules on this forum, as long as they are respected, there is nothing to say


All times are GMT -5. The time now is 11:18 AM.