Post here if you are a new Porteus member and you're looking for some help.
-
vinnie
- Shogun

- Posts: 333
- Joined: 13 Jun 2024, 08:25
- Distribution: gnemesis!
Post#16
by vinnie » 16 Jun 2024, 23:28
Okay, I tried it and it works.
I deleted everything but "/usr/lib64/python3.9/pydoc" by hand and then repackaged with dir2xzm.
I didn't quite understand what it was for but the removepkg command anyway seems not to be there and wasn't needed.
Thanks
vinnie
-
ncmprhnsbl
- DEV Team

- Posts: 4584
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.1-alpha*-64bit
- Location: australia
-
Contact:
Post#17
by ncmprhnsbl » 17 Jun 2024, 01:56
vinnie wrote: ↑16 Jun 2024, 23:28
I didn't quite understand what it was for but the removepkg command anyway seems not to be there and wasn't needed.
for future reference: removepkg is in /sbin so is only in root's PATH (so if you try to use it as guest, it won't be found)
and on a general note when building modules be sure to have the correct ownerships and permissions for files/directories.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
ncmprhnsbl
-
jjr
- Black ninja

- Posts: 67
- Joined: 18 Nov 2023, 17:10
- Distribution: 5.0
Post#18
by jjr » 17 Jun 2024, 04:08
[o/t]
Last edited by
jjr on 17 Jun 2024, 07:06, edited 1 time in total.
jjr
-
ncmprhnsbl
- DEV Team

- Posts: 4584
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.1-alpha*-64bit
- Location: australia
-
Contact:
Post#19
by ncmprhnsbl » 17 Jun 2024, 06:19
jjr wrote: ↑17 Jun 2024, 04:08
Long post, sorry. I just got triggered and worry a little.

np
if you look back to my post, i edited it(after you saw it), adding a revision with a similar conclusion to you, with the opposite expansion:
which strips everything but the .extension off
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
ncmprhnsbl
-
jjr
- Black ninja

- Posts: 67
- Joined: 18 Nov 2023, 17:10
- Distribution: 5.0
Post#20
by jjr » 17 Jun 2024, 07:06
ncmprhnsbl wrote: ↑17 Jun 2024, 06:19
jjr wrote: ↑17 Jun 2024, 04:08
Long post, sorry. I just got triggered and worry a little.

np
if you look back to my post, i edited it(after you saw it), adding a revision with a similar conclusion to you, with the opposite expansion:
which strips everything but the .extension off
Ah, nice
glad I was being useless

jjr
-
pterid
- Contributor

- Posts: 110
- Joined: 01 Feb 2025, 20:13
- Distribution: Porteus 5.01 Xfce on ext4 USB
Post#21
by pterid » 02 May 2026, 17:22
Resurrecting this old thread because I got mad at the lack of pydoc, and tried this hail mary quick fix to make a standalone module, which surprisingly worked!
Code: Select all
cd /tmp
mkdir python3
cd python3
wget http://slackware.uk/salix/x86_64/slackware-15.0/patches/packages/python3-3.9.25-x86_64-1_slack15.0.txz
unxz python3-3.9.25-x86_64-1_slack15.0.txz
tar -tf python3-3.9.25-x86_64-1_slack15.0.tar | grep pydoc > pydocfiles.txt
tar xf python3-3.9.25-x86_64-1_slack15.0.tar
while read -r pdf; do cp -a --parents "$pdf" "pydoc/"; done < pydocfiles.txt
sudo dir2xzm pydoc python-pydoc.xzm
sudo activate python-pydoc.xzm
then check that
pydoc sys works from Bash, and
help(dict) from the Python command line, then move the xzm to your modules or optional folder.
pterid