Package Manager

Post here if you are a new Porteus member and you're looking for some help.
franc
White ninja
White ninja
Posts: 6
Joined: 25 May 2023, 08:28
Distribution: Porteus-Cinnamon

Package Manager

Post#1 by franc » 25 May 2023, 20:04

Hello

can anyone point me to a HowTo where I can read about installing a package manager on Desktop 5.0 version (Cinnamon or Gnome)?
I found this doc: http://www.porteus.org/tutorials/9-modules/149-usm.html
but in my terminal (as root) the command usm is unknown. Though installpkg is available, but I dont know how to use it, to install packages.

Thanks.frank

Porteus Desktop 5.0 Gnome and Cinnamon in Vmware Workstation (Win) and Fusion (Mac) installed on vmdk (vm disk).

User avatar
Karmi
Samurai
Samurai
Posts: 162
Joined: 03 Apr 2022, 19:46
Distribution: Linux
Location: Old Town, Florida USA

Package Manager

Post#2 by Karmi » 25 May 2023, 20:31

franc wrote: ↑
25 May 2023, 20:04
Hello

can anyone point me to a HowTo where I can read about installing a package manager on Desktop 5.0 version (Cinnamon or Gnome)?
I found this doc: http://www.porteus.org/tutorials/9-modules/149-usm.html
but in my terminal (as root) the command usm is unknown. Though installpkg is available, but I dont know how to use it, to install packages.
Someone a lot more knowledgeable than me will be along shortly, but I had found this thread to be a good starting point:

[Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules

This is a package finder that has helped me:

https://slackware.nl/slakfinder/

Usually I just end up asking the forum where I can get a certain module β€” my bad! πŸ˜‰

UPDATE: Here's one I just found β€” looks handy for modules:

80+ modules available
Last edited by Karmi on 25 May 2023, 20:53, edited 1 time in total.

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

Package Manager

Post#3 by beny » 25 May 2023, 20:50

hi this link: https://drive.google.com/uc?export=down ... 13TxjR9A8F you can download the slapt-get software for porteus, but you have inside porteus also pmod that is a wrapper for slackpkg,well you have to use in the same way for slapt-get you have to use getmod -u sync the repository and getmod -m choose the package.PS: you have also a software that build packages and more is hardlinked in the
05-devel.xzm

Code: Select all

 guest@porteus:~$ sudo slpkg
Password: 
Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}

             Commands:
             [update, --repositories=[...]]
             [upgrade, --repositories=[...]]
             [repo-add [repository name] [URL]]
             [repo-remove [repository]]
             [repo-enable]
             [repo-list]
             [repo-info [repository]]
             [update [slpkg]]
             [health, --silent]
             [deps-status, --tree, --graph=[type]]
             [new-config]
             [clean-tmp]

             Optional arguments:
             [-h] [-v]
             [-a [script] [sources...]]
             [-b [package...] --add, --remove,
                 [list]]
             [-q [package...] --add, --remove,
                 [list, build, install, build-install]]
             [-g [print, edit, reset]]
             [-l [repository], --index, --installed, --name]
             [-c [repository], --upgrade, --rebuild, --skip=[...],
                               --resolve-off, --checklist]
             [-s [repository] [package...], --rebuild, --reinstall,
                                            --resolve-off, --download-only,
                                            --directory-prefix=[dir],
                                            --case-ins, --patches]
             [-t [repository] [package], --check-deps, --graph=[type],
                                         --case-ins]
             [-p [repository] [package], --color=[]]
             [-n [SBo package], --checklist, --case-ins]
             [-F [package...], --case-ins]
             [-f [package...], --case-ins, --third-party]
             [-i [options] [package...]]
             [-u [options] [package...]]
             [-r [options] [package...], --deps, --check-deps, --tag,
                                         --checklist, --third-party]
             [-d [package...]]
             
For more information try 'slpkg -h, --help' or view manpage

guest@porteus:~$ 

                                                                

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

Package Manager

Post#4 by Ed_P » 25 May 2023, 22:43

beny wrote: ↑
25 May 2023, 20:50
you can download the slapt-get software for porteus,
slapt-get is a part of Porteus 5.0, it does not need to be downloaded.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# slapt-get
slapt-get - Jason Woodward <woodwardj at jaos dot org>
An implementation of the Debian APT system to Slackware
Usage:
slapt-get [option(s)] [target]

root@porteus:/home/guest# slapt-get -v
slapt-get version 0.11.6
And getmod is an interface for it as Karmi noted above.
Ed

stuff79
White ninja
White ninja
Posts: 7
Joined: 18 May 2023, 08:59
Distribution: 5.0

Package Manager

Post#5 by stuff79 » 26 May 2023, 03:01

Ed_P wrote: ↑
25 May 2023, 22:43
slapt-get is a part of Porteus 5.0, it does not need to be downloaded.
... it seems that it is not true ... at least for the openbox ISO.

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

Package Manager

Post#6 by Ed_P » 26 May 2023, 03:11

stuff79 wrote: ↑
26 May 2023, 03:01
... it seems that it is not true ... at least for the openbox ISO.
I just reread [Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules and checked my /modules folder and you are right. :oops: :sorry:
Ed

franc
White ninja
White ninja
Posts: 6
Joined: 25 May 2023, 08:28
Distribution: Porteus-Cinnamon

Package Manager

Post#7 by franc » 26 May 2023, 08:53

beny wrote: ↑
25 May 2023, 20:50
pmod
slapt-get is unknown but pmod is working, thanks :)

EDIT: and I downloaded the getmod package manager (011-slapt-get-0.11.6-x86_64-2gv.xzm, short download) and installed it too, works :)

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

Package Manager

Post#8 by beny » 26 May 2023, 11:36

hi pmod is only a wrapper to the slapt-get packages manager is a script made by the porteus crew download the packages and convert into the xzm packages and if you want can merge all the deps into one packages, you have to download the software of the link that i have posted above ok i see you have done..
SOURCE=https://slackware.uk/csb/15.0/x86_64/ this is the cinamont repos you can add into one of the config script and after the rsync can use it

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

Package Manager

Post#9 by francois » 26 May 2023, 15:24

slapt-get has to be downloaded and activated:
https://drive.google.com/uc?export=down ... 13TxjR9A8F

You will be able to work with slapt-get or getmod, a simple and intuitive interface:
[Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules

Then if you want a very nice gui interface for slapt-get with gksu:

Code: Select all

root@porteus:/home/guest# getmod -d gslapt-0.5.9caf-x86_64-1gv
root@porteus:/home/guest# getmod -d gksu 2.0.2-x86_64-1salix15.0
getmod is more efficient than pmod. But both could be useful.
Prendre son temps, profiter de celui qui passe.

User avatar
Karmi
Samurai
Samurai
Posts: 162
Joined: 03 Apr 2022, 19:46
Distribution: Linux
Location: Old Town, Florida USA

Package Manager

Post#10 by Karmi » 28 May 2023, 10:39

IMHO, a big issue with Linuxes is fragmentation: 'It’s more of a personal annoyance how the fragmentation of the different vendors have, I think, held the desktop back a bit … It seems to be that Chromebooks and Android are the paths towards the desktop' β€” Linus Torvalds.

Does anyone know how many Linux Package Managers there are? My first experience w/ a package manager was years ago (2002/2003?) – w/ Synaptic package manager. It was easy for an inexperience user like me, and it even installs all the needed dependencies (if you select the ones offered). I wished all Linuxes offered it...

Then I couldn't stand the Debian & Ubuntu's any more (Sparky & Puppy are two exceptions) because they offer no fulltime root user option, just the 'Linux Nanny' looking over your shoulder – throwing Authenticate popups at the user whilst also demanding a password before you're allowed to use the bathroom. πŸ˜‰

Years later it became DNF & dragora after I moved to Fedora Cinnamon SPIN. Dragora was OK, but it never seemed as easy as Synaptic had been – I learned how to use DNF in the terminal before I figured out dragora. Dragora has gotten much better over the two recent releases, IMHO.

Yesterday, I thought I had installed Gslapt Package Manager...well, it is still installed, but it opened only once!?! I'm done w/ it now, so won't be trying to install it on my main Porteus 5 Cinnamon USB, i.e., it was just another one of my failed tests – as in one 'n done.

The learning curve for a Linux OS's Package Manager can sometimes be more difficult than learning the OS. 🀯

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

Package Manager

Post#11 by francois » 28 May 2023, 12:33

Kami:
gslapt works without a flaw here. You should start a thread to troubleshoot.

Your commentaries are very pertinent. gslapt as you write similar to synaptic is very useful. It is an easy way to see what is available on the system and provides a nice interface to download packages before tgz2xzm them into modules.

Please do not be so pessimistic. :)
Prendre son temps, profiter de celui qui passe.

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

Package Manager

Post#12 by francois » 28 May 2023, 12:37

And I will add that package management is one of the most important feature of an operating system. We are presently replacing brokenman USM with different options. Things are begining to be quite interesting.

A great feature of porteus is that you can break the system. It is no sweat to restore it to its previous step.
Prendre son temps, profiter de celui qui passe.

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

Package Manager

Post#13 by Ed_P » 28 May 2023, 13:45

francois wrote: ↑
28 May 2023, 12:33
gslapt works without a flaw here.

Code: Select all

guest@porteus:~$ gslapt
bash: gslapt: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# gslapt
bash: gslapt: command not found
root@porteus:/home/guest# 
My system:

Code: Select all

~#  uname -a
Linux porteus.example.net 6.2.12-porteus #1 SMP PREEMPT_DYNAMIC Fri Apr 21 18:08:53 MSK 2023 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux

~#  cat /etc/porteus/*
001-core.xzm:20230430
002-xorg.xzm:20230430
002-xtra.xzm:20221211
003-cinnamon.xzm:20220925
initrd.xz:20220928
Ed

User avatar
Karmi
Samurai
Samurai
Posts: 162
Joined: 03 Apr 2022, 19:46
Distribution: Linux
Location: Old Town, Florida USA

Package Manager

Post#14 by Karmi » 28 May 2023, 13:54

francois wrote: ↑
28 May 2023, 12:33
Kami:
gslapt works without a flaw here. You should start a thread to troubleshoot.

Your commentaries are very pertinent. gslapt as you write similar to synaptic is very useful. It is an easy way to see what is available on the system and provides a nice interface to download packages before tgz2xzm them into modules.

Please do not be so pessimistic. :)
I test a lot of Linuxes (all the time) – Porteus is in my Top 2. Totally agree that Package Management is very important to an OS; however, I can't spend a lot of time trying to troubleshoot every Package Manager I have difficulty with – there are just too many. πŸ™‚

Yeah, am sure I missed something yesterday whilst installing Gslapt Package Manager...heck, I spent hours trying to get your root@porteus:/home/guest# getmod -d gslapt-0.5.9caf-x86_64-1gv & root@porteus:/home/guest# getmod -d gksu 2.0.2-x86_64-1salix15.0 from #9 in this thread to work. Never did get root@porteus:/home/guest# getmod -d gksu 2.0.2-x86_64-1salix15.0 to work, and now forget how I finally got gksu installed - tho perhaps it was a getmod -m gksu. πŸ€” Ended up w/ all kinds of stuff in the porteus/changes/tmp folder – converted as much of it as I could into modules (probably 3-5 of them!?!).

Fortunately, like you mention, I can break Porteus a *LOT* 'n simply "restore" it – fact is, one of my Porteus USB installations is just for testing – my main Porteus USB installation only gets the stuff that is proven to work from the test USB. And yes, I can see that y'all are in the process of coming up w/ a newer Package Manager. πŸ‘ŒπŸ‘Sorry if I sounded "so pessimistic" – that was not my intent. πŸ˜‰

BTW, I tested PorteuX a lot recently, tested Linuxfx & Windowsfx the past two days, and am trying to get Springdale Linux tested.

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

Package Manager

Post#15 by beny » 28 May 2023, 15:06

hi, glapt work with slapt-get packages manager so you have to activate this one to work with gslapt,but if you want a better way to work with modules getmod is ok because work with a lot of dep in a single row merge and build a xzm package ready to use it.

Post Reply