Porteus 5.0's USM replacement: slapt-get, getmod

Post tutorials, HOWTO's and other useful resources here.
User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#46 by Rava » 18 Sep 2022, 18:16

^
After running

Code: Select all

slapt-get -u https://docs.salixos.org/wiki/Repository_mirrors
there was not a change made in /etc/slapt-get/slapt-getrc

Code: Select all

root@porteus:/mnt/live/memory/images/011-slapt-get-0.11.6-x86_64-2gv.xzm/etc/slapt-get# l /etc/slapt-get/slapt-getrc 
-rw-r--r-- 1 root 830 2022-07-23 04:27 /etc/slapt-get/slapt-getrc
root@porteus:/mnt/live/memory/images/011-slapt-get-0.11.6-x86_64-2gv.xzm/etc/slapt-get# diff /etc/slapt-get/slapt-getrc slapt-getrc 
root@porteus:/mnt/live/memory/images/011-slapt-get-0.11.6-x86_64-2gv.xzm/etc/slapt-get# 
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 7103
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#47 by Ed_P » 19 Sep 2022, 00:30

Rava wrote:
18 Sep 2022, 18:16
After running

Code: Select all

slapt-get -u https://docs.salixos.org/wiki/Repository_mirrors
Retrieving package data [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Rava wrote:
18 Sep 2022, 16:03

Code: Select all

root@porteus:/var/lib/pkgtools/packages# slapt-get --update
Retrieving package data [http://slackware.uk/salix/x86_64/slackware-15.0/]...  0Done
Are -u and --update different commands? One returns Cached and one returns 0Done. Both reference the same mirror.

In opening the /var/slapt-get/package_date file with xed I get:
There was a problem opening the file /var/slapt-get/package_data.
The file you opened has some invalid characters. If you continue editing this file you could corrupt this document.
You can also choose another character encoding and try again.
Added in 31 minutes 44 seconds:
Any plans to include Jason's GSlapt app?
Ed

User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#48 by Rava » 19 Sep 2022, 06:19

Ed_P wrote:
19 Sep 2022, 01:01
Are -u and --update different commands? One returns Cached and one returns 0Done. Both reference the same mirror.
according to slapt-get the command should be the very same

Code: Select all

root@porteus:/# slapt-get |grep MIRROR
-u, --update   retrieve pkg data from MIRROR
Did you run the command ending in "0Done" first and the one resulting in "Cached" after that?
Cheers!
Yours Rava

rych
Shogun
Shogun
Posts: 350
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0rc3 x64 OpenBox
Location: NZ
Contact:

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#49 by rych » 19 Sep 2022, 09:34

(just a sanity check on my system both update commands work well, no need for mirrors:

Code: Select all

getmod -u
pmod -u

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3575
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#50 by ncmprhnsbl » 19 Sep 2022, 12:15

pretty sure "https://docs.salixos.org/wiki/Repository_mirrors" ain't a mirror .. . .it's a wiki page with links to various mirrors...to be added to your config or used individually with slapt-get -u MIRROR(one of)... you can't just point slapt-get at it..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#51 by Rava » 19 Sep 2022, 12:18

ncmprhnsbl wrote:
19 Sep 2022, 12:15
you can't just point slapt-get at it..
For me it worked, though.
Maybe slapt-get is clever enough to understand what's on that URL.
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3575
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#52 by ncmprhnsbl » 19 Sep 2022, 12:24

Rava wrote:
19 Sep 2022, 12:18
For me it worked, though.
Maybe slapt-get is clever enough to understand what's on that URL.
not a chance.. read the output.. it's ignoring the nonsensical "mirror" and simply updating from the default config.. that it didn't fail like the first time is coincidental.
as it says on the wiki page at the top:
The following mirrors are available for the Salix repositories. Individual directories for every Salix architecture and version are under the following URLs. Users can pick the one that is closest/fastest for them and edit their /etc/slapt-get/slapt-getrc and /etc/slapt-get/slapt-srcrc mirror settings accordingly.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#53 by Rava » 19 Sep 2022, 14:03

ncmprhnsbl wrote:
19 Sep 2022, 12:24
not a chance.. read the output.. it's ignoring the nonsensical "mirror" and simply updating from the default config.. that it didn't fail like the first time is coincidental.
Oh my bad then.

So, when it's not about the URL then, could one of the mirrors on it used in its config file, or does one just choose one at random and hope it works this time?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 1448
Joined: 02 Jan 2011, 11:33
Location: italy

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#54 by beny » 19 Sep 2022, 14:34

hi Rava take a look at this config salix takes precedence over all repositories but you can have other....

Code: Select all

 :# Working directory for local storage/cache.
WORKINGDIR=/var/slapt-get

# Exclude package names and expressions.
# To exclude pre and beta packages, add this to the exclude: 
#   [0-9\_\.\-]{1}pre[0-9\-\.\-]{1}
EXCLUDE=^aaa_elflibs,^aaa_base,^devs,^glibc.*,^kernel-.*,^rootuser-settings,^zzz-settings.*,-i?86-

# The Slackware repositories, including dependency information
SOURCE=http://slackware.uk/salix/x86_64/slackware-15.0/:OFFICIAL
SOURCE=http://slackware.uk/salix/x86_64/slackware-15.0/extra/:OFFICIAL

# The Salix repository
SOURCE=http://slackware.uk/salix/x86_64/15.0/:PREFERRED
# And the Salix extra repository
SOURCE=http://slackware.uk/salix/x86_64/extra-15.0/:OFFICIAL

# The Slakfinder repository
SOURCE=https://slakfinder.org/sbomt64-15.0/:DEFAULT

SOURCE=http://ponce.cc/slackware/slackware64-15.0/packages/

SOURCE=https://slackware.nl/people/alien/sbrepos/15.0/x86_64

# Local repositories
# SOURCE=file:///var/www/packages/:CUSTOM
                                                                             

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3575
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#55 by ncmprhnsbl » 19 Sep 2022, 23:20

Rava wrote:
19 Sep 2022, 14:03
does one just choose one at random and hope it works this time?
generally, with mirrors, you choose one geographically closest, though this doesn't necessarily mean fastest or most up to date(not too import since these repos don't change that often)
you could possibly use ping to test for speed i guess..<SEE EDIT
and as beny^ points out, there are lot's of repos other than salix that can be used, as well..

EDIT: or better maybe use what our script: fastest-mirror does:

Code: Select all

curl --max-time 4 --silent --output /dev/null --write-out %{time_total} $URL
or adapt that script to scrape the urls from the wiki page to automate the process..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#56 by Rava » 20 Sep 2022, 05:52

Aside from the speed…
ncmprhnsbl wrote:
19 Sep 2022, 23:20
most up to date(not too import since these repos don't change that often)
[…]
and as beny^ points out, there are lot's of repos other than salix that can be used, as well..
is there some experience from the past which of the repos is the most up-to-date?

Or in other words - can slapt-get only use one single repo? Is it not possible to use more and slapt-get realizes by itself on which repo the looked-after package has the highest version number? (like our deceased usm did)?
ncmprhnsbl wrote:
19 Sep 2022, 23:20

Code: Select all

curl --max-time 4 --silent --output /dev/null --write-out %{time_total} $URL
or adapt that script to scrape the urls from the wiki page to automate the process..
Good tips.
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 1448
Joined: 02 Jan 2011, 11:33
Location: italy

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#57 by beny » 21 Sep 2022, 10:26

hi Rava,as i have told you the apt-get software is linked to salix repositories all the search that you have done are processed by salix, after if salix do not has the software that you need slackfinder maybe aid you in this search,and if you want to see the list of the software in all the repos that you have in terminal /usr/sbin/slapt-get -l.

User avatar
Ed_P
Contributor
Contributor
Posts: 7103
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#58 by Ed_P » 22 Sep 2022, 01:06

Porteus 5.0's USM replacement works also and is less words for non-English speakers to translate.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#59 by Rava » 23 Sep 2022, 02:54

francois wrote:
22 Sep 2022, 20:46
Let us bring this discussion between us three in the moderator's section. And clean up the lasts few comments of ours.
Please do so.
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 3949
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#60 by Rava » 25 Sep 2022, 04:51

According to https://github.com/wjaguar/mtpaint_handbook
Slackware users can install the handbook with the relevant TGZ package from the Sourceforge site.
Neither https://slakfinder.org/index.php?act=se ... e=#results nor https://pkgs.org/search/?q=mtpaint_handbook give any results, and nor does slapt-get

Code: Select all

root@porteus:/# slapt-get --search mtpaint_handbook
root@porteus:/# 

Code: Select all

root@porteus:/# slapt-get --search mtpaint
mtpaint-3.50-x86_64-1salix15.0 [inst=no]: mtpaint (Mark Tyler's Painting Program)
mtpaint-3.49.32-x86_64-3_ncm [inst=yes]: mtpaint (Mark Tyler's Painting Program)
Any ideas why that is?
The newest that exists should be mtpaint_handbook-3.50.zip - but there are also (outdated) Linux-like-versions
e.g. mtpaint_handbook-3.21.tar.gz or mtpaint_handbook_3_40_alt2_1.rpm

Why do I find no mtpaint_handbook-3.50 Linux tar archive or package - not even on https://pkgs.org/ (I find not even outdated mtpaint_handbook on pkgs.org ) ?
Cheers!
Yours Rava

Post Reply