[Porteus 5.01's Package Manager] slapt-mod: to build modules

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
Ed_P
Contributor
Contributor
Posts: 8812
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#1 by Ed_P » 03 Nov 2024, 16:21

The current Porteus package manager app.

Code: Select all

guest@porteus:~$ 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.

Be sure to run slapt-mod -u before starting to download packages. :happy62:

Jack
Contributor
Contributor
Posts: 1955
Joined: 09 Aug 2013, 14:25
Distribution: Nemesis Cinnamon 64
Location: USA

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#2 by Jack » 15 Dec 2024, 01:40

Will I need to install 05-devel.xzm to use with slapt-mod?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#3 by ncmprhnsbl » 15 Dec 2024, 04:42

Jack wrote:
15 Dec 2024, 01:40
Will I need to install 05-devel.xzm to use with slapt-mod?
no, it works without it.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1955
Joined: 09 Aug 2013, 14:25
Distribution: Nemesis Cinnamon 64
Location: USA

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#4 by Jack » 15 Dec 2024, 07:21

Which is better to use -m -M -n -N when you build a module?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#5 by Ed_P » 15 Dec 2024, 19:47

FWIW I use -m.

User avatar
SEMERENDO.cr
Black ninja
Black ninja
Posts: 39
Joined: 08 Nov 2023, 20:36
Distribution: alt, Porteus

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#6 by SEMERENDO.cr » 03 Feb 2025, 22:52

OK but in the terminal:

Code: Select all

command not found
I actually use Porteux in my PC and search it in "/usr" also!
ncmprhnsbl wrote:
15 Dec 2024, 04:42
Jack wrote:
15 Dec 2024, 01:40
Will I need to install 05-devel.xzm to use with slapt-mod?
no, it works without it.

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

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#7 by Ed_P » 03 Feb 2025, 23:09

slapt-mod is a Porteus app. PorteuX may have a function in it's menu for building applets.

User avatar
SEMERENDO.cr
Black ninja
Black ninja
Posts: 39
Joined: 08 Nov 2023, 20:36
Distribution: alt, Porteus

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#8 by SEMERENDO.cr » 04 Feb 2025, 00:28

OK, I might try it later on a Porteus virtual machine when I boot altlinux to leave up any doubts.
Honestly, since all the appimages work and you can manually download Firefox and keep it updated, my interest would only lie in installing Apache if possible.

Ed_P wrote:
03 Feb 2025, 23:09
slapt-mod is a Porteus app. PorteuX may have a function in it's menu for building applets.

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

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#9 by Ed_P » 07 Feb 2025, 22:04

slapt-mod with Porteus 5.01:

Code: Select all

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

Code: Select all

chown: warning: '.' should be ':': ‘guest.’
when creating -m modules.

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

[Porteus 5.01's Package Manager] slapt-mod: to build modules

Post#10 by ncmprhnsbl » 07 Feb 2025, 23:45

Ed_P wrote:
07 Feb 2025, 22:04
chown: warning: '.' should be ':': ‘guest.’
looks like a deprecation in chown, not fatal but easy to fix, thanks for the report ;)
if anybody wants to test a fix: line 161 of /usr/local/bin/slapt-mod, change

Code: Select all

		chown guest. $TMP/$PKGNAM.xzm
to

Code: Select all

		chown guest: $TMP/$PKGNAM.xzm
or maybe better:

Code: Select all

		chown guest:users $TMP/$PKGNAM.xzm
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply