getmod: not working for me

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.
User avatar
francois
Contributor
Contributor
Posts: 6514
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

getmod: not working for me

Post#1 by francois » 25 May 2025, 21:12

Porteus-XFCE-v5.0-x86_64.iso

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# getmod -u
bash: getmod: command not found
root@porteus:/home/guest# 
Is it normal
Prendre son temps, profiter de celui qui passe.

User avatar
AcnapyxoB
Contributor
Contributor
Posts: 239
Joined: 24 Dec 2014, 10:15
Distribution: Porteus
Location: Tellus

getmod: not working for me

Post#2 by AcnapyxoB » 26 May 2025, 05:12

francois wrote:
25 May 2025, 21:12
Is it normal
You need slapt-get module:
[Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules
Porteus v5.01 KDE x86_64

User avatar
Ed_P
Contributor
Contributor
Posts: 8956
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

getmod: not working for me

Post#3 by Ed_P » 26 May 2025, 05:24

francois, note at the bottom of AcnapyxoB's link:

"Last edited by Ed_P on October 10th, 2023, 11:26 pm, edited 28 times in total.
Reason: getmod included in Porteus 5.01 as slapt-mod."

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

getmod: not working for me

Post#4 by francois » 26 May 2025, 15:19

Sorry guys, but I would really appreciate a more complete answer.

slapt-get is available on porteus once you have downloaded it.

Do I understand that for:
porteus 5.0 it was

Code: Select all

getmod -u
and for 5.1 getmod has changed to

Code: Select all

slapt-mod -u

Code: Select all

root@porteus:/home/guest# uname -a
Linux porteus.example.net 5.18.8-porteus #1 SMP PREEMPT_DYNAMIC Sat Jul 2 10:05:31 MSK 2022 x86_64 Intel(R) Core(TM)2 Solo CPU    U3500  @ 1.40GHz GenuineIntel GNU/Linux
root@porteus:/home/guest# getmod -u
bash: getmod: command not found
root@porteus:/home/guest# slapt-mod -u
bash: slapt-mod: command not found
root@porteus:/home/guest# slaptmod -u
bash: slaptmod: command not found
root@porteus:/home/guest# 
How do you explain that?
Prendre son temps, profiter de celui qui passe.

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

getmod: not working for me

Post#5 by beny » 26 May 2025, 18:22

hi francois, why you don't take a look at /usr/local/bin
you have:getpkg and pmod so you can only work with slackware 15 repository,fot the use of slapt-mod you have to have slapt-get installed and in this porteus version is not installed,but you know i can go wrong
well into the /var/log/packages i have seen the slackpkg+ that allow to use other repositories via slackpkg,try if work for you.

User avatar
Ed_P
Contributor
Contributor
Posts: 8956
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

getmod: not working for me

Post#6 by Ed_P » 26 May 2025, 19:05

slapt-mod works on my 5.01 system.

Code: Select all

~#  uname -as:/mnt/nvme0n1p4/porteus5.0/Guest$ ./SysSnapshot.sh
Linux porteus.example.net 6.8.10-porteus #1 SMP PREEMPT_DYNAMIC Fri May 17 18:09:34 MSK 2024 x86_64 13th Gen Intel(R) Core(TM) i5-13420H GenuineIntel GNU/Linux

~#  cat /etc/porteus/*
001-core.xzm:20250131
002-xorg.xzm:20241212
002-xtra.xzm:20240924
003-cinnamon.xzm:20240924
initrd.xz:20230923

~#  ls -l /mnt/live/memory/images
000-kernel.xzm : May 17 2024
001-core.xzm : Jan 31 09:05
002-xorg.xzm : Dec 12 12:15
002-xtra.xzm : Sep 24 2024
003-cinnamon.xzm : Dec 29 2023

~#  cat /proc/cmdline
quiet BOOT_IMAGE=(loop)/boot/syslinux/vmlinuz from=/ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64-250130.iso volume=33 reboot=cold noload=mychanges;pipe;menu4

ISO: /ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64-250130.iso


guest@porteus:/mnt/nvme0n1p4/porteus5.0/Guest$ su
Password: 
root@porteus:/mnt/nvme0n1p4/porteus5.0/Guest# slapt-mod
 
   slapt-mod: A simple wrapper for slapt-get to build Porteus module. 
              All operations must be run as root user. 

   slapt-mod [-c] [-u] [-d|-m|-M|-n|-N PACKAGE_NAME] [-l PATTERN] [-s PATTERN]

Options:
  -c: Purge cached packages
  -d: Download only
  -m: Download and build module (ZSTD compression)
  -M: Download and build module (XZ compression)
  -n: Download and build module without dependencies (ZSTD compression)
  -N: Download and build module without dependencies (XZ compression)
  -l: List installed packages
  -s: Search package
  -u: Update database
  -h: This usage

   To change the temporary directory (default is /tmp), pass the TMP variable.
   $ TMP=/path/to/directory slapt-mod -m packagename

   Temporary directory is for storing downloaded packages, installing and converting them to modules.

   See /etc/slapt-get/slapt-modrc to set preferences for stripping and language of created modules.

root@porteus:/mnt/nvme0n1p4/porteus5.0/Guest# 
Ed_P wrote:
26 May 2025, 05:24
francois, note at the bottom of AcnapyxoB's link:

"Last edited by Ed_P on October 10th, 2023, 11:26 pm, edited 28 times in total.
Reason: getmod included in Porteus 5.01 as slapt-mod."
Haven't tried it in a 5.1alpha system.

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

getmod: not working for me

Post#7 by beny » 26 May 2025, 19:24

hi, work because is the first version with the slapt-get package so the slapt-mod wrapper, porteus5.0 do not have it

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

getmod: not working for me

Post#8 by francois » 27 May 2025, 00:35

Hello beny,

Thanks for the troubleshooting. I was working on a linux box that I left aside for a good period of time.
You /usr/bin trick is logical:

Code: Select all

root@porteus:/usr/local/bin# ls
cell_hwdec*      mpv_hwdec*    pmod*                update-firefox-live*
check-kernel*    obamenu.py*   polyglot*            update-vbox-live*
fastest-mirror*  pfilesearch*  trans*
getpkg*          phelp*        transfer*
man*             pkginfo*      update-chrome-live*
root@porteus:/usr/local/bin# 
I will update to the most recent stable version.

Sorry for the trouble guys,
Prendre son temps, profiter de celui qui passe.

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

getmod: not working for me

Post#9 by beny » 27 May 2025, 17:30

hi francois,no problem at all,if you have follow the news for the new repository of lu9dce i suggest you to add it at your package manager,because is builded from the slackbuild of slackware 15 in real time,so you have the last version of all,you have to have the ip6 link,ok try it

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

getmod: not working for me

Post#10 by francois » 01 Jun 2025, 12:45

repository of lu9dce
Two new repositories

Thanks so much beny.
Prendre son temps, profiter de celui qui passe.

Post Reply