slpkg for porteus 5.01: getting it to work.

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
inukaze
Black ninja
Black ninja
Posts: 47
Joined: 06 Jul 2023, 07:40
Distribution: Slackware

slpkg for porteus 5.01: getting it to work.

Post#1 by inukaze » 03 Oct 2023, 22:26

i know the follow solution :

Well i know this solution :

Code: Select all

sudo su
cd /tmp

#Resolving dependencies mentioned on the slpkg official site : https://dslackw.gitlab.io/slpkg/install/
slapt-get -u
slapt-get -i python3-build SQLAlchemy python3-pythondialog

#Resolving dependencies that are never mentioned anywhere
wget -c https://download.salixos.org/x86_64/15.0/salix/a/spkg-1.7-x86_64-2gv.tgz ; installpkg spkg-1.7-x86_64-2gv.tgz
slapt-get -i python3-pep517

slackpkg update
slackpkg install python-tomli python-packaging pyparsing python-pip python-setuptools lftp
pip install flit-core progress installer
If you want the slpkg 3.9.8

Code: Select all

slapt-get -i slpkg
slpkg repo-enable
slpkg update
If you want the slpkg 4.9.2

Code: Select all

wget -c 'https://downloads.sourceforge.net/project/slpkg/binary/slpkg-4.9.2-x86_64-1_dsw.txz'
installpkg slpkg-4.9.2-x86_64-1_dsw.txz
You should edit the repositories file

Code: Select all

editor /etc/slpkg/repositories.toml
Notes :

1 - "/usr/bin/editor" on my system is just a symbolic link of "/usr/bin/vi" and in this version you can use "configs" but not "repo-enabled" (i dont have idea why of this change, repo-enable was so ease to dis/enable repositories

Just notice the lines with url slackware version "15.0" or "current" depends you need
In the TOP Line of each repositorie just change "false" to "true", save when you finish

2 - If you leave enabled sbo reposotirie, this clone "SlackBuilds.org" content inside the folder :
/var/lib/slpkg/repositories/sbo
the content size are between 200~300 MiB.

Now update the repositories :

Code: Select all

slpkg update
Well if posible you see a message like :
mirror: Error fatal: SSL_connect: tlsv1 alert protocol version
Well i don't know how solve this SSL_connect: tlsv1 alert protocol version

If you upgrade slpkg 3.9.8 to 4.9.2 using upgradepkg

Code: Select all

wget -c 'https://downloads.sourceforge.net/project/slpkg/binary/slpkg-4.9.2-x86_64-1_dsw.txz'
upgradepkg --install-new slpkg-4.9.2-x86_64-1_dsw.txz
cp -rf /usr/sbin/slpkg /usr/bin/slpkg
Last edited by inukaze on 04 Oct 2023, 19:55, edited 2 times in total.

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

slpkg for porteus 5.1: getting it to work.

Post#2 by francois » 04 Oct 2023, 09:07

Great job!
Thanks a lot.

Are you very accustomed with slpkg? Do you know good and simple hyperlinks on the subject? Or is there a good and short introduction on the subject on video?

Thanks.
Prendre son temps, profiter de celui qui passe.

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

slpkg for porteus 5.1: getting it to work.

Post#3 by Rava » 04 Oct 2023, 11:53

@inukaze
Could it be you mean Porteus 5.0.1 ?
Since there is as of yet no Porteus 5.1.

Added in 11 minutes 10 seconds:
inukaze wrote:
03 Oct 2023, 22:26
1 - "/usr/bin/editor" on my system is just a symbolic link of "/usr/bin/vi"
Just as heads up, prior to the setup and install inukaze mentioned, there is no "/usr/bin/editor":

Code: Select all

root@rava:~# file /usr/bin/editor
/usr/bin/editor: cannot open `/usr/bin/editor' (No such file or directory)
Also as tip:
Many people have issues with vi (which is most likely vim [vi improved]) due to how it not tells you what the most crucial commands are: e.g these "esc" ":" "q" "w" "!"
Therefore, most folks would find the usability of mc's own editor mcedit much more easy. If so, replace /usr/bin/editor as a link to mcedit like so:

Code: Select all

root@rava:~# file /usr/bin/mcedit
/usr/bin/mcedit: symbolic link to mc
root@rava:~# cd /usr/bin/
root@rava:/usr/bin# ln -sf mcedit editor
root@rava:/usr/bin# file /usr/bin/editor
/usr/bin/editor: symbolic link to mcedit
The main part is this:

Code: Select all

root@rava:~# cd /usr/bin/
root@rava:/usr/bin# ln -sf mcedit editor
You need the -f parameter (force) or else the existing symlink won't be overwritten.
Parameter -s creates a symlink.

Cave! When as root do only use

Code: Select all

ln
when you know exactly what you are doing, especially when using

Code: Select all

ln -f
since you could mess up important links or files.
Cheers!
Yours Rava

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

slpkg for porteus 5.1: getting it to work.

Post#4 by beny » 04 Oct 2023, 16:05

hi is enough to change the line false to true into the repositories.toml and start another slpkg -u

Code: Select all

   
guest@porteus:~$ sudo slpkg -u
Password: 
Checking for news, please wait... ⣟

There are new updates available for the 'ponce' repository!

There are new updates available for the 'slack' repository!

There are new updates available for the 'alien' repository!

There are new updates available for the 'restricted' repository!

There are new updates available for the 'salixos' repository!

There are new updates available for the 'salixos_extra' repository!

There are new updates available for the 'salixos_patches' repository!
 
Downloading the 'ponce' repository in the '/var/lib/slpkg/repositories/ponce' folder, please wait...

Generating the SLACKBUILDS.TXT file... Done                                    

Updating the database for 'ponce'... ✔️

Downloading the 'slack' repository in the '/var/lib/slpkg/repositories/slack' folder, please wait...

ChangeLog.txt       100%[===================>]   1.95M  4.69MB/s    in 0.4s    
PACKAGES.TXT        100%[===================>] 844.48K  3.55MB/s    in 0.2s    
CHECKSUMS.md5       100%[===================>]   1.13M  3.82MB/s    in 0.3s    

Updating the database for 'slack'... ✔️

Downloading the 'alien' repository in the '/var/lib/slpkg/repositories/alien' folder, please wait...

ChangeLog.txt       100%[===================>] 649.72K  3.36MB/s    in 0.2s    
PACKAGES.TXT        100%[===================>] 382.27K  --.-KB/s    in 0.1s    
CHECKSUMS.md5       100%[===================>] 304.95K  --.-KB/s    in 0.1s    

Updating the database for 'alien'... ✔️

Downloading the 'restricted' repository in the '/var/lib/slpkg/repositories/restricted' folder, please wait...

ChangeLog.txt       100%[===================>]  54.57K  --.-KB/s    in 0.06s   
PACKAGES.TXT        100%[===================>]   5.70K  --.-KB/s    in 0s      
CHECKSUMS.md5       100%[===================>]   5.28K  --.-KB/s    in 0s      

Updating the database for 'restricted'... ✔️

Downloading the 'salixos' repository in the '/var/lib/slpkg/repositories/salixos' folder, please wait...

ChangeLog.txt       100%[===================>]   1.95M  3.67MB/s    in 0.5s    
PACKAGES.TXT        100%[===================>]   1.37M  5.80MB/s    in 0.2s    
CHECKSUMS.md5       100%[===================>]   1.13M  3.40MB/s    in 0.3s    

Updating the database for 'salixos'... ✔️

Downloading the 'salixos_extra' repository in the '/var/lib/slpkg/repositories/salixos_extra' folder, please wait...

ChangeLog.txt       100%[===================>]   1.95M  6.39MB/s    in 0.3s    
PACKAGES.TXT        100%[===================>]  45.65K  --.-KB/s    in 0.03s   
CHECKSUMS.md5       100%[===================>]  48.52K  --.-KB/s    in 0.03s   

Updating the database for 'salixos_extra'... ✔️

Downloading the 'salixos_patches' repository in the '/var/lib/slpkg/repositories/salixos_patches' folder, please wait...

ChangeLog.txt       100%[===================>]   1.95M   779KB/s    in 2.6s    
PACKAGES.TXT        100%[===================>]  86.77K  --.-KB/s    in 0.09s   
CHECKSUMS.md5       100%[===================>]  80.50K  --.-KB/s    in 0.09s   

Updating the database for 'salixos_patches'... ✔️


guest@porteus:~$ 
                                                                         
but the salix repository always has problems with slpkg and unlike getmod it doesn't do package conversion

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

slpkg for porteus 5.1: getting it to work.

Post#5 by Rapha_ » 04 Oct 2023, 16:51

inukaze,

It's quite complicated for those who are only using modules... :shock:

After a "slapt-get -u" as root :

Code: Select all

root@porteus:/home/guest# slapt-get -i python3-build SQLAlchemy python3-pythondialog
Reading Package Lists...Done
The following NEW packages will be installed:
  python3-pep517 python3-build SQLAlchemy python3-pythondialog 
0 upgraded, 0 reinstalled, 4 newly installed, 0 to remove, 0 not upgraded.
Need to get 1.9MB of archives.
After unpacking 7.7MB of additional disk space will be used.
1/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ python3-pep517 0.12.0-x86_64-1salix15.0 [26.0kB]...Done
2/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ python3-build 0.7.0-x86_64-1salix15.0 [25.0kB]...Done
3/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ SQLAlchemy 1.4.34-x86_64-1salix15.0 [1.8MB]...Done
4/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ python3-pythondialog 3.5.3-x86_64-1salix15.0 [77.0kB]...Done

Preparing to install python3-pep517-0.12.0-x86_64-1salix15.0
sh: line 1: /sbin/spkg: No such file or directory
Failed to execute command: [/sbin/spkg -i /var/slapt-get/./salix/python/python3-pep517-0.12.0-x86_64-1salix15.0.txz]

There is an error...

And we had to know that the files were downloaded to a directory in the depths of Porteus ! ( /var/slapt-get/salix/development/ )

Code: Select all

updatedb
oot@porteus:/home/guest# updatedb

root@porteus:/home/guest# locate SQLAlchemy 1.4.34-x86_64-1salix15.0
/var/slapt-get/salix/development/SQLAlchemy-1.4.34-x86_64-1salix15.0.txz
and as I continue, I find myself in a blue window, then I'm asked to overwrite files or not... :angry7:

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

slpkg for porteus 5.1: getting it to work.

Post#6 by beny » 04 Oct 2023, 17:03

hi Rapha_ why you don't use getmod instead slapt-get

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

slpkg for porteus 5.1: getting it to work.

Post#7 by Rapha_ » 04 Oct 2023, 18:02

@beny

still in porteus 5.1...

Code: Select all

root@porteus:/home/guest# getmod
bash: getmod: command not found
I suspect it's in 05-devel.xzm

Code: Select all

guest@porteus:~$ pmod

Options:
  -u: update database
  -s: search package
  -S: search file
  -g: download pkg only
  -m: download and convert to module
  -h: this usage
guest@porteus:~$ pmod -u
/usr/local/bin/pmod: ligne 5: slackpkg : command introuvable
(Trad : /usr/local/bin/pmod: line 5: slackpkg : command not found )


Porteus-v5.01.....
A simple wrapper for slapt-get: slapt-mod

Code: Select all

root@porteus:/home/guest# slapt-mod -M slpkg
Reading Package Lists...Done
The following NEW packages will be installed:
  slpkg 
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 138.0kB of archives.
Do you want to continue? [y/N] y
1/1 Get http://slackware.uk/salix/x86_64/extra-15.0/ slpkg 3.9.8-x86_64-1salix15.0 [138.0kB]...Done
The version is older...and there seems to be no dependency

inukaze
Black ninja
Black ninja
Posts: 47
Joined: 06 Jul 2023, 07:40
Distribution: Slackware

slpkg for porteus 5.0.1: getting it to work.

Post#8 by inukaze » 04 Oct 2023, 18:48

francois wrote:
04 Oct 2023, 09:07
Are you very accustomed with slpkg? Do you know good and simple hyperlinks on the subject? Or is there a good and short introduction on the subject on video?
Yes i prefer slpkg 3.9.8 from slapt-get (salix) mirror version, because the lastest for me does work well, no, i dont know about that, this i just get this solution because i am trying to make a "OpenMRS" using Porteus.

But the thing with OpenMRS does work i need XD but that is another theme.

i don't know if good idea post topic questioning how install and configure OpenMRS server using Slackware(64) 15 or Porteus(64) 5.X


Let me show you the things happend when i use slpkg 4.9.2

Code: Select all

slpkg update
Checking for news, please wait... ⢿
                                                                                                                             
There are new updates available for the 'slack' repository!                                                                  

There are new updates available for the 'slack_extra' repository!

There are new updates available for the 'slack_patches' repository!

There are new updates available for the 'slackonly' repository!

There are new updates available for the 'salixos' repository!

There are new updates available for the 'salixos_extra' repository!

There are new updates available for the 'salixos_patches' repository!

There are new updates available for the 'slint' repository!
 
Downloading the 'slack' repository in the '/var/lib/slpkg/repositories/slack' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   186KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>] 844,48K   186KB/s    en 4,7s    
CHECKSUMS.md5                   100%[====================================================>]   1,13M   186KB/s    en 6,4s    

Updating the database for 'slack'... ✔

Downloading the 'slack_extra' repository in the '/var/lib/slpkg/repositories/slack_extra' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   186KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]  35,70K   123KB/s    en 0,3s    
CHECKSUMS.md5                   100%[====================================================>]  48,52K   129KB/s    en 0,4s    

Updating the database for 'slack_extra'... ✔

Downloading the 'slack_patches' repository in the '/var/lib/slpkg/repositories/slack_patches' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   186KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]  57,78K   139KB/s    en 0,4s    
CHECKSUMS.md5                   100%[====================================================>]  80,50K   149KB/s    en 0,5s    

Updating the database for 'slack_patches'... ✔

Downloading the 'slackonly' repository in the '/var/lib/slpkg/repositories/slackonly' folder, please wait...

ChangeLog.txt                   100%[====================================================>] 381,84K   184KB/s    en 2,1s    
PACKAGES.TXT                    100%[====================================================>]   3,13M   117KB/s    en 26s     
CHECKSUMS.md5                   100%[====================================================>]   3,10M   138KB/s    en 22s     

Updating the database for 'slackonly'... ✔

Downloading the 'salixos' repository in the '/var/lib/slpkg/repositories/salixos' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   148KB/s    en 14s     
PACKAGES.TXT                    100%[====================================================>]   1,37M   161KB/s    en 9,7s    
CHECKSUMS.md5                   100%[====================================================>]   1,13M   156KB/s    en 7,8s    

Updating the database for 'salixos'... ✔

Downloading the 'salixos_extra' repository in the '/var/lib/slpkg/repositories/salixos_extra' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   148KB/s    en 14s     
PACKAGES.TXT                    100%[====================================================>]  45,65K   196KB/s    en 0,2s    
CHECKSUMS.md5                   100%[====================================================>]  48,52K   166KB/s    en 0,3s    

Updating the database for 'salixos_extra'... ✔

Downloading the 'salixos_patches' repository in the '/var/lib/slpkg/repositories/salixos_patches' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   127KB/s    en 16s     
PACKAGES.TXT                    100%[====================================================>]  86,77K   130KB/s    en 0,7s    
CHECKSUMS.md5                   100%[====================================================>]  80,50K   127KB/s    en 0,6s    

Updating the database for 'salixos_patches'... ✔

Downloading the 'slint' repository in the '/var/lib/slpkg/repositories/slint' folder, please wait...

ChangeLog.txt                   100%[====================================================>]  97,69K   105KB/s    en 0,9s    
PACKAGES.TXT                    100%[====================================================>] 790,75K   144KB/s    en 5,8s    
CHECKSUMS.md5                   100%[====================================================>]  87,81K   139KB/s    en 0,6s    

Updating the database for 'slint'... ✔

                                                                                                                          
There are new updates available for the 'sbo' repository!                                                                 
Checking for news, please wait... ⡿ 
Downloading the 'sbo' repository in the '/var/lib/slpkg/repositories/sbo' folder, please wait...

mirror: Error fatal: SSL_connect: tlsv1 alert protocol version
Ok i just run "slpkg update" but when i try to search "joe"

Code: Select all

slpkg -s joe

slpkg: Error: You need to update the package lists first, run:

              $ slpkg update

Well i better try specifng the repository i know where is "joe"

Code: Select all

slpkg install joe --repository=slack
Database loading... ✔

slpkg: Error: You need to update the package lists first, run:

              $ slpkg update


i try to update again slpkg

Code: Select all

slpkg -u
Checking for news, please wait... ⣾
                                                                                                                             
There are new updates available for the 'slack' repository!                                                                  

There are new updates available for the 'slack_extra' repository!

There are new updates available for the 'slack_patches' repository!

There are new updates available for the 'slackonly' repository!

There are new updates available for the 'salixos' repository!

There are new updates available for the 'salixos_extra' repository!

There are new updates available for the 'salixos_patches' repository!

There are new updates available for the 'slint' repository!
 
Downloading the 'slack' repository in the '/var/lib/slpkg/repositories/slack' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   186KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>] 844,48K   184KB/s    en 4,7s    
CHECKSUMS.md5                   100%[====================================================>]   1,13M   186KB/s    en 6,4s    

Updating the database for 'slack'... ✔

Downloading the 'slack_extra' repository in the '/var/lib/slpkg/repositories/slack_extra' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   174KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]  35,70K   140KB/s    en 0,3s    
CHECKSUMS.md5                   100%[====================================================>]  48,52K   132KB/s    en 0,4s    

Updating the database for 'slack_extra'... ✔

Downloading the 'slack_patches' repository in the '/var/lib/slpkg/repositories/slack_patches' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   186KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]  57,78K   138KB/s    en 0,4s    
CHECKSUMS.md5                   100%[====================================================>]  80,50K   150KB/s    en 0,5s    

Updating the database for 'slack_patches'... ✔

Downloading the 'slackonly' repository in the '/var/lib/slpkg/repositories/slackonly' folder, please wait...

ChangeLog.txt                   100%[====================================================>] 381,84K   180KB/s    en 2,1s    
PACKAGES.TXT                    100%[====================================================>]   3,13M   186KB/s    en 17s     
CHECKSUMS.md5                   100%[====================================================>]   3,10M   186KB/s    en 17s     

Updating the database for 'slackonly'... ✔

Downloading the 'salixos' repository in the '/var/lib/slpkg/repositories/salixos' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   189KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]   1,37M   189KB/s    en 7,5s    
CHECKSUMS.md5                   100%[====================================================>]   1,13M   188KB/s    en 6,3s    

Updating the database for 'salixos'... ✔

Downloading the 'salixos_extra' repository in the '/var/lib/slpkg/repositories/salixos_extra' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   188KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]  45,65K   197KB/s    en 0,2s    
CHECKSUMS.md5                   100%[====================================================>]  48,52K   211KB/s    en 0,2s    

Updating the database for 'salixos_extra'... ✔

Downloading the 'salixos_patches' repository in the '/var/lib/slpkg/repositories/salixos_patches' folder, please wait...

ChangeLog.txt                   100%[====================================================>]   1,95M   188KB/s    en 11s     
PACKAGES.TXT                    100%[====================================================>]  86,77K   197KB/s    en 0,4s    
CHECKSUMS.md5                   100%[====================================================>]  80,50K   201KB/s    en 0,4s    

Updating the database for 'salixos_patches'... ✔

Downloading the 'slint' repository in the '/var/lib/slpkg/repositories/slint' folder, please wait...

ChangeLog.txt                   100%[====================================================>]  97,69K   146KB/s    en 0,7s    
PACKAGES.TXT                    100%[====================================================>] 790,75K   186KB/s    en 4,4s    
CHECKSUMS.md5                   100%[====================================================>]  87,81K   155KB/s    en 0,6s    

Updating the database for 'slint'... ✔
Let me try something

Code: Select all

slpkg -u
Checking for news, please wait... ⣷
                                                                                                                             
No changes in ChangeLog.txt between your last update and now.                                                                
 
Do you want to continue? [y/N] n

slpkg update

root@openmrs:/tmp# slpkg -s joe

slpkg: Error: You need to update the package lists first, run:

              $ slpkg update

Again

Code: Select all

slpkg update
Checking for news, please wait... ⢿
                                                                                                                             
No changes in ChangeLog.txt between your last update and now.                                                                
 
Do you want to continue? [y/N] N
Well again i try install joe from the repository i know where is :

Code: Select all

# slpkg install joe --repository=slack
Database loading... ✔
Resolving dependencies... ✔
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                   Slpkg Install Packages                                                  │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ The following packages will be installed or upgraded:                                                                     │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Package:                                                        Version:                     Size:                  Repo: │
│ joe                                                             4.6                          492 KB                 slack │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Total 1 packages will be installed and 0 will be upgraded, and total 492 KB will be downloaded and 2 MB will be installed. 

Do you want to continue? [y/N] N

Must be a method with less text to make it work i should try

Code: Select all

# slpkg -i <package> -o <repositorie>

Code: Select all

slpkg -i joe -o slack
Database loading... ✔
Resolving dependencies... ✔
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                   Slpkg Install Packages                                                  │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ The following packages will be installed or upgraded:                                                                     │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Package:                                                        Version:                     Size:                  Repo: │
│ joe                                                             4.6                          492 KB                 slack │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Total 1 packages will be installed and 0 will be upgraded, and total 492 KB will be downloaded and 2 MB will be installed. 

Do you want to continue? [y/N] y

Started to download total (1) packages:

joe-4.6-x86_64-4.txz            100%[====================================================>] 490,29K   181KB/s    en 2,7s    

Started the processing of (1) packages:

  • joe-4.6-x86_64-4.txz ✔                 

Finished successfully: 00:00:12
slpkg 4.9.2 : Thing i don't like of this version :
* does not work the search, you must know from where repository you want download package(s)
* you must update multiples times to get it work
* repo-enable option does not exist on this version, you must edit a configuration file

inukaze
Black ninja
Black ninja
Posts: 47
Joined: 06 Jul 2023, 07:40
Distribution: Slackware

slpkg for porteus 5.0.1: getting it to work.

Post#9 by inukaze » 04 Oct 2023, 19:08

Rava wrote:
04 Oct 2023, 12:04
@inukaze
Could it be you mean Porteus 5.0.1 ?
Since there is as of yet no Porteus 5.1.
yes sorry for that, my bad, ready i fix the title, thanks for that
Rava wrote:
04 Oct 2023, 12:04
Added in 11 minutes 10 seconds:
Rava wrote:
04 Oct 2023, 12:04
inukaze wrote:
03 Oct 2023, 22:26
1 - "/usr/bin/editor" on my system is just a symbolic link of "/usr/bin/vi"
Rava wrote:
04 Oct 2023, 12:04
Just as heads up, prior to the setup and install inukaze mentioned, there is no "/usr/bin/editor":

Code: Select all

root@rava:~# file /usr/bin/editor
/usr/bin/editor: cannot open `/usr/bin/editor' (No such file or directory)
Also as tip:
Many people have issues with vi (which is most likely vim [vi improved]) due to how it not tells you what the most crucial commands are: e.g these "esc" ":" "q" "w" "!"
Therefore, most folks would find the usability of mc's own editor mcedit much more easy. If so, replace /usr/bin/editor as a link to mcedit like so:

Code: Select all

root@rava:~# file /usr/bin/mcedit
/usr/bin/mcedit: symbolic link to mc
root@rava:~# cd /usr/bin/
root@rava:/usr/bin# ln -sf mcedit editor
root@rava:/usr/bin# file /usr/bin/editor
/usr/bin/editor: symbolic link to mcedit
I don't feel very comfortable using 'vi' even though I'm used to it, I prefer to use 'joe' instead, but practically any Linux distro, including those that don't use the operating system 'GNU', will almost certainly have vi installed, including ' Android' (not vim), an editor i don't understand is emacs XD
Rava wrote:
04 Oct 2023, 12:04
The main part is this:

Code: Select all

root@rava:~# cd /usr/bin/
root@rava:/usr/bin# ln -sf mcedit editor
You need the -f parameter (force) or else the existing symlink won't be overwritten.
Parameter -s creates a symlink.

Cave! When as root do only use

Code: Select all

ln
when you know exactly what you are doing, especially when using

Code: Select all

ln -f
since you could mess up important links or files.

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

slpkg for porteus 5.0.1: getting it to work.

Post#10 by beny » 04 Oct 2023, 19:11

hi Rapha_ take a look at this link maybe is useful you can download also the deps listed: https://slackware.nl/slakfinder/show.php?pkg=1480758

inukaze
Black ninja
Black ninja
Posts: 47
Joined: 06 Jul 2023, 07:40
Distribution: Slackware

slpkg for porteus 5.0.1: getting it to work.

Post#11 by inukaze » 04 Oct 2023, 19:36

Rapha_ wrote:
04 Oct 2023, 16:51
inukaze,

It's quite complicated for those who are only using modules... :shock:
Yes i know but i don't know how put all dependencies inside on one module for just make slpkg-4.9.2 module
or slpkg 3.9.8 module (i prefer this older version)
Rapha_ wrote:
04 Oct 2023, 16:51
After a "slapt-get -u" as root :

Code: Select all

root@porteus:/home/guest# slapt-get -i python3-build SQLAlchemy python3-pythondialog
Reading Package Lists...Done
The following NEW packages will be installed:
  python3-pep517 python3-build SQLAlchemy python3-pythondialog 
0 upgraded, 0 reinstalled, 4 newly installed, 0 to remove, 0 not upgraded.
Need to get 1.9MB of archives.
After unpacking 7.7MB of additional disk space will be used.
1/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ python3-pep517 0.12.0-x86_64-1salix15.0 [26.0kB]...Done
2/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ python3-build 0.7.0-x86_64-1salix15.0 [25.0kB]...Done
3/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ SQLAlchemy 1.4.34-x86_64-1salix15.0 [1.8MB]...Done
4/4 Get http://slackware.uk/salix/x86_64/extra-15.0/ python3-pythondialog 3.5.3-x86_64-1salix15.0 [77.0kB]...Done

Preparing to install python3-pep517-0.12.0-x86_64-1salix15.0
sh: line 1: /sbin/spkg: No such file or directory
Failed to execute command: [/sbin/spkg -i /var/slapt-get/./salix/python/python3-pep517-0.12.0-x86_64-1salix15.0.txz]
Try by this way :

Code: Select all

wget -c https://download.salixos.org/x86_64/15.0/salix/a/spkg-1.7-x86_64-2gv.tgz ; installpkg spkg-1.7-x86_64-2gv.tgz
slapt-get -i python3-pep517 ; ldconfig
Sorry i post in the reverse order that lines, with this, you should not have problem to get it work.
Rapha_ wrote:
04 Oct 2023, 16:51
There is an error...

And we had to know that the files were downloaded to a directory in the depths of Porteus ! ( /var/slapt-get/salix/development/ )

Code: Select all

updatedb
oot@porteus:/home/guest# updatedb

root@porteus:/home/guest# locate SQLAlchemy 1.4.34-x86_64-1salix15.0
/var/slapt-get/salix/development/SQLAlchemy-1.4.34-x86_64-1salix15.0.txz
and as I continue, I find myself in a blue window, then I'm asked to overwrite files or not... :angry7:

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

slpkg for porteus 5.0.1: getting it to work.

Post#12 by Rava » 05 Oct 2023, 02:22

inukaze wrote:
04 Oct 2023, 19:08
I don't feel very comfortable using 'vi' even though I'm used to it
I am comfortable using 'vi' when the keyboard layout is set to my physical keyboard ("de" as in: "Germany") since its needed keys like ":" are hard to recall when the keyboard is set to en-US.
Often I have to struggle when in an environment with keyboard set to en-US. Last time I had to use the minimal environment when Port cannot load cause it doesn't find its porteus/ folder to fix the porteus.cfg … and all there you have is a minimal vi …
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

slpkg for porteus 5.0.1: getting it to work.

Post#13 by francois » 05 Oct 2023, 16:11

beny wrote:
04 Oct 2023, 17:03
hi Rapha_ why you don't use getmod instead slapt-get
I thought that getmod or slapt-mod (new appelation) was just a wrapper for slapt-get. Notice that the graphical interface for slapt-get which is named gslapt has the option to download files only. Then with txz2xzm you get your module.

I find getmod a very efficient wrapper. But gslapt will rapidly show what there is on you system. sboui does a good job too.
Prendre son temps, profiter de celui qui passe.

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

slpkg for porteus 5.0.1: getting it to work.

Post#14 by Rapha_ » 06 Oct 2023, 11:04

beny wrote:
04 Oct 2023, 19:11
hi Rapha_ take a look at this link maybe is useful you can download also the deps listed: https://slackware.nl/slakfinder/show.php?pkg=1480758
Thanks beny !
I was able to create the module with all the recent dependencies proposed for uploading...I just have to test if it works...Then i will upload for everyone

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

slpkg for porteus 5.0.1: getting it to work.

Post#15 by Rava » 08 Oct 2023, 07:59

Info
I moved all posts that have been off topic and more about all kinds of package management into package building and management except getmod
Discuss everything package building and management not related to only slpkg on Porteus 5.0.1 there. Thanks.
Cheers!
Yours Rava

Post Reply