pmod: Slackpkg not found

Post here if you are a new Porteus member and you're looking for some help.
BenBooth1344
Ronin
Ronin
Posts: 3
Joined: 23 Apr 2024, 12:32
Distribution: Porteus v5.01

pmod: Slackpkg not found

Post#1 by BenBooth1344 » 23 Apr 2024, 13:05

I have a mostly working install of Porteus v5.01 working on my old chromebook.

I installed using Porteus-KDE-v5.01-x86_64.iso, and it boots into the KDE desktop (I can provide more details if needed)

When I run this command in the terminal:

Code: Select all

{
pmod -s htop
}
I get:

Code: Select all

{
/usr/local/bin/pmod: line 9: slackpkg: command not found
}
As a test I adjusted my APPEND line to boot directly from the Porteus-CINNAMON-v5.01-x86_64.iso and that also works and boots into the
Cinnamon desktop.

But the above issue with pmod is still present.

Does anyone know what the issue might be? I assume I'm doing something wrong

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

pmod: Slackpkg not found

Post#2 by beny » 23 Apr 2024, 15:54

hi, slackpkg is present like software on porteus, pmod is a wrapper to slackpkg to download the packages and convert to porteus .xzm in terminal type slackpkg update and see if the database rsync with the slackware repository and only after this step you can use pmod.you have to be root to use the slackpkg and other software that make change on system.
PS: you can use pmod -u to upgrade slackware database

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

pmod: Slackpkg not found

Post#3 by Ed_P » 23 Apr 2024, 17:00

BenBooth1344 wrote:
23 Apr 2024, 13:05
Does anyone know what the issue might be? I assume I'm doing something wrong
Yes, you are. And by the same token so is pmod. pmod needs to be run as ROOT and pmod should inform the user that when it is being run as guest.

And your first pmod run should be pmod -u as beny noted to update the slackware database.

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: line 5: slackpkg: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# pmod -u

Updating the package lists...
	Downloading...
                Signatures
2024-04-23 12:25:47 URL:https://mirrors.slackware.com/slackware/slackware64-15.0/CHECKSUMS.md5.asc [195/195] -> "/tmp/slackpkg.3e6mKG/CHECKSUMS.md5.asc" [1]
2024-04-23 12:25:48 URL:https://slackware.nl/slackpkgplus15/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.3e6mKG/CHECKSUMS.md5-slackpkgplus.asc" [1]
 :
 :
 :
:)
Ed

BenBooth1344
Ronin
Ronin
Posts: 3
Joined: 23 Apr 2024, 12:32
Distribution: Porteus v5.01

pmod: Slackpkg not found

Post#4 by BenBooth1344 » 23 Apr 2024, 19:40

Thanks! that solved this issue.

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

pmod: Slackpkg not found

Post#5 by Ed_P » 24 Apr 2024, 16:22

BenBooth1344 wrote:
23 Apr 2024, 19:40
Thanks! that solved this issue.
:good: Good to hear.

The pmod script should have this line added after line 17:

Code: Select all

printf "\nMust be run as root user.\n\n"
:happy62:

A similar change to slapt-mod after line 105 might be useful also. It could eliminate being root to see the help screen. :)
Ed

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

pmod: Slackpkg not found

Post#6 by ncmprhnsbl » 25 Apr 2024, 06:27

use slapt-mod since it supersedes pmod which i neglected to remove.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

pmod: Slackpkg not found

Post#7 by beny » 25 Apr 2024, 16:41

hi ncmprhnsbl ,but now porteus have the slapt-get package built in or the user have to download it to use

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

pmod: Slackpkg not found

Post#8 by ncmprhnsbl » 25 Apr 2024, 23:29

beny wrote:
25 Apr 2024, 16:41
hi ncmprhnsbl ,but now porteus have the slapt-get package built in or the user have to download it to use
if that's a question: yes, slapt-get is included and slapt-mod is the wrapper for it (to make modules)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

seed_clapper
Black ninja
Black ninja
Posts: 44
Joined: 17 Oct 2022, 13:22
Distribution: Porteus 5 LXQT

pmod: Slackpkg not found

Post#9 by seed_clapper » 26 Apr 2024, 00:47

ncmprhnsbl wrote:
25 Apr 2024, 06:27
use slapt-mod since it supersedes pmod which i neglected to remove.
Do you plan to update main site with up-to-date information? It still says that people should use Porteus Package Manager or slackyd to download programs.

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

pmod: Slackpkg not found

Post#10 by ncmprhnsbl » 26 Apr 2024, 05:06

seed_clapper wrote:
26 Apr 2024, 00:47
Do you plan to update main site with up-to-date information? It still says that people should use Porteus Package Manager or slackyd to download programs.
yeah, at some point it'll happen... it's updated in the onboard FAQ, so it shouldn't be too difficult to port that over..(althouugh it looks like it needs some work too..)
lol, just reading the onboard FAQ, i got the bit about pmod/slapt-mod totally wrong :p ..forgot that pmod is a wrapper for slackpkg.. which explains why i didn't remove it..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jnorichards
Ronin
Ronin
Posts: 1
Joined: 03 May 2024, 16:02
Distribution: Porteus 5; KDE Neon

pmod: Slackpkg not found

Post#11 by Jnorichards » 03 May 2024, 18:12

seed_clapper wrote:
26 Apr 2024, 00:47
[Do you plan to update main site with up-to-date information? It still says that people should use Porteus Package Manager or slackyd to download programs.
Hi all, I've just started out with Porteus (I needed a fast small distro I could carry around on a USB, and went with Porteus 5-KDE), and despite more than 25 years using Unix/Linux I'm finding it a bit of a steep learning curve - maybe it's my unfamiliarity with Slackware, but the ladder up from Harmless to Mostly Harmless seems to be missing a few rungs!
For instance, I have installed a change file on my USB persistence partition, which in this machine is /mnt/sdc2/porteussave.dat. I'm quite sure that this won't be drive #3 on the next machine I plug it into, so I was pleased to see here the item which says
Use the 'blkid' command to view your device's UUID and LABEL ... Every cheatcode which contains a /path can take advantage of 'UUID:' and 'LABEL:' extensions.
I was immediately tripped up by /sbin not being in guest's $PATH - I'm more familiar with /sbin in the user's path and execute permissions
managing the prompt for sudo, so I thought I must install blkid from the util-linux package. Then, I read the FAQ on the website:
How can I install new programs that are not included in the default Porteus ISO?
A new program is included with Porteus Version 1.0 and higher, called Porteus Package Manager (PPM). It can be opened from the KDE/LXDE menu under the 'System' heading, or run from the command line, as 'porteus-package-manager'. Click here for more information about it.
Of course, there is no PPM in the System section of the launcher, and

Code: Select all

# which porteus-package-manager
comes up empty. The link is 404.

Now I'm two levels deep in issues, and I haven't even started to understand Proteus modules and how they work! :%)
As of this moment, I understand that the System | Porteus FAQ, i.e. /usr/doc/Porteus-FAQ/index.html does correctly identify the package managers, but it took me a while.
I'm trying to be constructive and identify the stumbling blocks for the newcomer, and will post further if I come across others. To conclude, I'm willing to submit an edition of the FAQ from porteus.org, with the content adjusted to match the Porteus-FAQ document, if that's helpful?
Thanks for the distro., though - I haven't given up yet! :D

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

pmod: Slackpkg not found

Post#12 by Ed_P » 04 May 2024, 04:33

Jnorichards wrote:
03 May 2024, 18:12
I'm quite sure that this won't be drive #3 on the next machine I plug it into, so I was pleased to see here the item which says
Use the 'blkid' command to view your device's UUID and LABEL ... Every cheatcode which contains a /path can take advantage of 'UUID:' and 'LABEL:' extensions.
I was immediately tripped up by /sbin not being in guest's $PATH
Good that you see the advantage of UUID access. And the blkid command simply requires root access like so:

Code: Select all

guest@porteus:~$ blkid
bash: blkid: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# blkid
/dev/loop1: TYPE="squashfs"
/dev/nvme0n1p7: LABEL="Data" BLOCK_SIZE="512" UUID="FEA6A472A6A42CD9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ed5ed043-e4c6-4c2d-92ff-2ec8318faa40"
/dev/nvme0n1p5: LABEL="Image" BLOCK_SIZE="512" UUID="9A88A2BF88A29971" TYPE="ntfs" PARTUUID="b0fee5ac-1a1f-48d7-8bc8-f56183637f8b"
/dev/nvme0n1p3: LABEL="OS" BLOCK_SIZE="512" UUID="44FAA150FAA13F54" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b3b142e0-444e-430f-bf54-1abb833499b4"
/dev/nvme0n1p1: LABEL_FATBOOT="ESP" LABEL="ESP" UUID="887E-BEC9" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="eb0c9ee6-e3b2-4e8c-b34c-7fd67fe85b6b"
  :
  :
  :
Jnorichards wrote:
03 May 2024, 18:12
A new program is included with Porteus Version 1.0 and higher, called Porteus Package Manager (PPM).
Current Porteus is version 5.01. Things have changed a bit since version 1.0. The current package/module builder is slapt-mod. [Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules (Post by Ed_P #96310)
Start with slapt-mod -h then slapt-mod -u. Easier to run if you are in root mode via the su command.
Jnorichards wrote:
03 May 2024, 18:12
To conclude, I'm willing to submit an edition of the FAQ from porteus.org, with the content adjusted to match the Porteus-FAQ document, if that's helpful?
Thank you for your offer. I think that could prove to be very helpful.
Ed

Post Reply