Using slapt-get as a package manager for Porteus

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

Using slapt-get as a package manager for Porteus

Post#1 by francois » 05 Jan 2011, 00:31

There are very few post on the experience of the different users of slax or the actual OS with slapt-get as package manager. For hdd frugal install, this method of package manager might be a very good alternative to modules. This thead is devised to as a more specific discussion on package managers, but with main focus the slapt-get package manager. For general information on slapt-get thru wikipedia:
Slapt-get

Gslapt *** to be developped

Slapt-src *** to be developped. package difficult to find and to install
https://download.salixos.org/x86_64/15. ... slapt-src/

Installation:

Yet I know of two ways of installing slapt-get on the actual OS:

1) installation with the slax module slax-get (developped by some-guy). This is the thread on that module:
http://www.slax.org/forum.php?action=vi ... ht=slackyd

Here you can get that module adapted for slackware 12.0 or slackware 13.0:
http://www.slax.org/modules.php?action=detail&id=70
http://www.slax.org/modules.php?action=detail&id=3897

2) installation thru slackyd, a package coming stock since remix05 (citation of beny, look at detailed procedure followed by francois.e):
http://www.slax.org/forum.php?action=vi ... ostid71309
beny:
... i have installed slap-get on v9-remix you need:gnupg-1.4.10-i486-1.txz. gpgme-1.2.0-i486-1.txz.slapt-get-0.10.2d-i486-3sl.txz.
...you can use slackyd on console to find software, in console slackyd -u prepare environment and slackyd -g for find package...

francois.e:
I will try to reproduce your results:
A) Preparing slakyd, and downloading necessary files:
root@slax:~# slackyd -g gpgme-1.2.0-i486-1.txz
...


In the same process you might want to grab gslapt the gui front end for slapt-get.

In cli mode: slapt-get --update will update packages. Even if the manager does not update all your package sources, you might be able to grab the one that you need. It might be easier to find oneself in looking for packages thru gslapt. Gslapt made more easy for me the addition of new sources for specific packages

Comparing package mananagers including sbo
https://github.com/tuorqai/pkutils/blob ... /README.md
look at the table comparing slapt-get, slpkg, ...

Package dependency resolution:

To get resolution dependencies with glapt, you need to add the following source:
SOURCE=http://www.stabellini.net/filesystem/slackware-13.1
For detailed instructions to install this SOURCE from gslapt see number 6 post in this thread.

Note: Slackyd seem to have been a favorite of fanthom. It has been introduced to remix05 users by beny (seach the thread with slackyd) and jayflood started a small thread on the software:
http://www.slax.org/forum.php?action=vi ... ht=slackyd
http://www.slax.org/forum.php?action=vi ... ht=slackyd

My favorite method was number 2.


Any comment on this package manager is welcome. Especially comparison with other types of package managers.

Adding useful hyperlinks:
https://slackwiki.com/Slapt-get

Adding repositories:
-following brokenman's choices:
uest@porteus:/var/usm$ ls
alien/ local/ ponce/ salix/ sbo/ slackonly/ slackware/
slackwarepatches/ slacky/


Old way of creating a slackware local repo for slapt-get, ktown example ###obsolete?:
https://forum.salixos.org/viewtopic.php?t=4487
https://docs.salixos.org/wiki/index.php ... cy_support

adddepinfo.sh
http://slackware.uk/salix/i486/slackwar ... depinfo.sh

alien bob packages and sources
https://slackware.nl/

Additional sources
slackonly in slapt-get
https://slackonly.com/pub/packages/README.html

Remy preferred sources:
https://www.remy.org.uk/tech.php?tech=1483142400
A little outdated, you have to update to slackware 15.0 which gives:
http://slackware.uk/people/alien/sbrepos/15.0/x86_64/
but reading slackbook of alien bob https://slackware.nl/people/alien/sbrepos/15.0/x86_64/ is good

General thread on slapt-get:
https://xpt.sourceforge.net/techdocs/ni ... es/single/
gslapt GUI
Last edited by francois on 22 Apr 2011, 14:45, edited 4 times in total.
Prendre son temps, profiter de celui qui passe.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Using slapt-get as a package manager for the OS

Post#2 by fanthom » 05 Jan 2011, 10:20

i have never used 'slapt-get' myself - would be thankful to one who could explain me it's advantages over 'slackyd'
Please add [Solved] to your thread title if the solution was found.

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.

Re: Using slapt-get as a package manager for the OS

Post#3 by francois » 06 Jan 2011, 12:08

I am not the expert as to slapt-get. What I know is that it is the slackware equivalent of apt-get for debian packages. A really nice gui frontend is available, its called gslapt, the equivalent of synaptic.

Yet I did not used much slackyd. You are a best judge than me as to say if its any better than the slapt-get/gslapt system. However, the development of slackyd, as announced by Ponce has been discontinued:
http://www.slax.org/forum.php?action=vi ... highlight=[Slax-Remix]
FYI, I read today a message from slackyd author on slacky forum that this app won't be maintained anymore (he moved to arch too).
http://www.slacky.eu/forum/viewtopic.ph ... 10#p283440

Cited from wikipedia (citation):
slapt-get builds functionality on top of the native Slackware package tools (installpkg, upgradepkg and removepkg) enabling package query, remote fetching, system updates, integrated changelog information, and many optional advanced features[1] such as dependency resolution, package conflicts, suggestions, checksum and public key verification, and transfer resumption.
Hyperlink: Slapt-get: cite note-0


The features are the following (citation):
slapt-get tries to emulate Debian's apt-get as closely as possible.

* uses native Slackware tools (installpkg, upgradepkg, and removepkg)
* supports packages as tgz, tlz, tbz, and txz files
* supports multiple package sources (including linuxpackages.net) with
the ability to assign priorities to each source.
* cache data concerning packages and updates from package sources
* supports sources from ftp, ftps, http, https, file:/// and more (libcurl)
* resumes broken downloads and will verify package integrity with MD5
checksum
* show packages that are available (from cached data) and installed
* search package listing using POSIX and extended regular expressions
by package name, location, and description
* retrieve, install, and remove packages by name or by specific version
* retrieve and apply updates
* upgrade from one Slackware release to another in a few simple steps
* show description of packages, including mirror location, version, size,
dependencies (where available), conflicts (where available), suggestions
(where available), description, installation status, and the package
changelog entry (where available).
* exclude (hold) packages from upgrades, by name or by regular expression
* transaction engine for install, remove, and upgrades, reporting concise
information on what is to be done, ensuring each step happens correctly
* "compare package version" algorithm to prevent downgrades
* recursive dependency resolution using slack-required meta-data (see FAQ)
supporting hard, soft, and conditional dependencies
* package conflict resolution using slack-conflicts meta-data (see FAQ)
* package suggestion support for complimentary packages (see FAQ)
* Package data download robustness, only writing changes if all sources
download successfully as well as only downloading those sources that
have changed since the last download
* i18n support via GNU gettext with 26 language translations
* extremely fast and easy to script with
Hyperlink: http://software.jaos.org/git/slapt-get/plain/README


Maybe you can look at FAQs for slapt-get to get in a glimpse some more specific info on the manager:
http://software.jaos.org/git/slapt-get/plain/FAQ
Prendre son temps, profiter de celui qui passe.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Using slapt-get as a package manager for the OS

Post#4 by fanthom » 06 Jan 2011, 20:41

thanks for the info. Let's hope that Porteus gonna have native package manager and slackyd or slapt-get wont be necessary :)
Please add [Solved] to your thread title if the solution was found.

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.

Re: Using slapt-get as a package manager for the OS

Post#5 by francois » 06 Jan 2011, 22:40

As I said I am no expert in terms of package manager. However, I have the impression that if we can take advantage of some already available package to build this distribution, instead of reinventing the wheel, we could put the efforts on other aspects of the distribution.

I know of at least three slackware derivative that use slapt-get as their package manager: vector, salix, wolvix. They might have build an important set of additional packages, slackware wise. This might be a valuable asset.

Maybe we could make the lzm module building compatible with slapt-get syntax. And use slapt-get in some way to build lzm modules.
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.

Re: Using slapt-get as a package manager for the OS

Post#6 by francois » 15 Jan 2011, 03:24

To get resolution dependencies with glapt, you need to add the following source:
SOURCE=http://www.stabellini.net/filesystem/slackware-13.1

From within gslapt, you will add the source going thru:
Edit > Preferences > Sources > Add

If you do not use the gui, you have to add the source in /etc/slapt-get/slaptgetrc as in:
WORKINGDIR=/var/slapt-get
EXCLUDE=^aaa_elflibs,^devs,^glibc-.*,^kernel-.*,^udev,.*-[0-9]+dl$,x86_64
SOURCE=ftp://ftp.slackware.com/pub/slackware/s ... /:OFFICIAL
SOURCE=http://software.jaos.org/slackpacks/13.0/:OFFICIAL
SOURCE=http://www.stabellini.net/filesystem/slackware-13.1/
SOURCE=http://ftp.heanet.ie/mirrors/ftp.slackw ... ware-13.1/

Informations taken in:
http://www.stabellini.net/depslack.html
http://www.slackwiki.org/Upgrade_Using_ ... slaptgetrc
Prendre son temps, profiter de celui qui passe.

User avatar
KSA_ARAB
Black ninja
Black ninja
Posts: 52
Joined: 29 Dec 2010, 00:54
Location: Saudi Arabia
Contact:

Re: Using slapt-get as a package manager for Porteus

Post#7 by KSA_ARAB » 17 Jan 2011, 06:02

it's good to work from terminal with 'slapt-get' but will be friendly to use graphical interface 'gslapt' and better for users.

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.

Re: Using slapt-get as a package manager for Porteus

Post#8 by francois » 16 Apr 2011, 05:01

Its been some time I've worked with slapt-get or gslapt, as my previous porteus installation became corrupted, I had to install a new save file. Using option 2 of this first post to install slapt-get and gslapt, the program do not work. I get the following error message;
root@slax:~# slapt-get -u
Failed to open /etc/slapt-get/slapt-getrc
/etc/slapt-get/slapt-getrc: No such file or directory
root@slax:~# slapt-get --clean
Failed to open /etc/slapt-get/slapt-getrc
/etc/slapt-get/slapt-getrc: No such file or directory
root@slax:~# slapt-get -u
Failed to open /etc/slapt-get/slapt-getrc
/etc/slapt-get/slapt-getrc: No such file or directory
root@slax:~# slapt-get --add-keys
Failed to open /etc/slapt-get/slapt-getrc
/etc/slapt-get/slapt-getrc: No such file or directory
root@slax:~#

Googling :
slapt-get -u Failed to open /etc/slapt-get/slapt-getrc /etc/slapt-get/slapt-getrc: No such file or director

One gets about any kind of problem:
http://www.google.ca/search?q=slapt-get ... =firefox-a

Posted after 17 minutes 5 seconds:
Finally, googling further with other keywords: create /etc/slapt-get/slapt-getrc
http://www.slax.org/forum.php?action=view&parentID=663
I got on some-guy solution to the problem: ... make a /etc/slapt-get/slapt-getrc...

One has just to create the file following his instructions. In fact, better than that there is a file called /etc/slapt-get/slapt-getrc.new. Just use it as it is or change the sources as you want.
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.

Re: Using slapt-get as a package manager for Porteus

Post#9 by francois » 22 Apr 2011, 14:42

1) For installation 2) from slackyd, trying to reinstall anew the necessary programs to build slapt-get from slackyd downloader (after updating the sources) as proposed in the first post of this thread, I was not able to download the necessary packages as in:

root@slax:~# slackyd -u

Repository: slackware [ftp.osuosl.org]
`- Downloading FILELIST.TXT [ok]
`- Downloading CHECKSUMS.md5 [ok]
...
root@slax:~# slackyd -g gpgme-1.2.0-i486-1.txz

Searching gpgme-1.2.0-i486-1.txz: nothing found.

Shortening the expression does the job:
root@slax:~# slackyd -g gpgme-1

2) But finally, searching gpgme-1: found 1 package:

gpgme-1.3.0-i486-1.txz [from slackware]
Last edited by francois on 01 May 2011, 19:09, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Using slapt-get as a package manager for Porteus

Post#10 by Hamza » 22 Apr 2011, 14:52

Ok , try this command :

Code: Select all

wget http://ftp.lip6.fr/pub/linux/distributions/slackware/slackware-13.1/FILELIST.TXT && cat ./FILELIST.TXT | grep gpgme 
You'll see all gpgme pkgs available.
NjVFQzY2Rg==

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.

Re: Using slapt-get as a package manager for Porteus

Post#11 by francois » 04 May 2011, 02:14

Newcomers from other distributions maybe would appreciate to find a familiar environment provided by gslapt (e.g., slapt-get and Gslapt are included by several other distributions, including: Absolute Linux, GoblinX, Salix OS, Slamd64,VectorLinux and Wolvix. Developping an /etc/slapt-get/slapt-getrc (the slapt-get config file), with an outreaching setting of repertories and sources for porteus would be a great asset. The same would benefit to the config file of slackyd another package manager, see:
http://forum.porteus.org/viewtopic.php? ... 2&start=10

A complement package builder to slapt-get would be slapt-src and its gui equivalent sourcery. It is available on salix os:
http://www.salixos.org/wiki/index.php/Sourcery

I have tried to build it for porteus, but with no success yet. Maybe a talented computer-wise individual could do that.
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.

Re: Using slapt-get as a package manager for Porteus

Post#12 by francois » 20 Dec 2011, 02:09

I reiterate :) :
Playing around with ubuntu and debian xfce 4.8, I wonder if slapt-get and gslapt (gui equivalent, and analog to synaptic for apt-get) could not do a very good job as a package manager for those with plenty of space on their hdd.

His there someone with an optimum array of source list for slackware covering as much packages as possible, recent and older ones?

Maybe we should have a hard disk edition. Would it be a big job to convert porteus to debian packages?
Prendre son temps, profiter de celui qui passe.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Using slapt-get as a package manager for Porteus

Post#13 by Hamza » 20 Dec 2011, 12:50

What do you mean with "Maybe we should have a hard disk edition" ??

deb2xzm.
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Using slapt-get as a package manager for Porteus

Post#14 by brokenman » 20 Dec 2011, 19:04

This could be usable for people with large amounts of space ... but it was designed from the ground up for full disk installation distros. Porteus is a lightweight distro ... maybe run from a small portable device. Our current package manager offers packages across slackware, slacky, slackbuilds, fidoslax and debian (soon) ... which i think is a better deal than the synaptic method.
Maybe we should have a hard disk edition.
I think that's been done. They called it slackware. We will have a disk installer in the next version so i guess we could say we have already have a full disk installation version of porteus.

Maybe in the future we can offer the Momma Zona (big mamma) version of porteus with lots of stuff included that is sure to run on any machine and be very easy to use .... but at the moment we are a new fish in the sea and trying to refine things as much as we can. A child not reared correctly could be a nightmare once they are bigger!!
How do i become super user?
Wear your underpants on the outside and put on a cape.

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.

Re: Using slapt-get as a package manager for Porteus

Post#15 by francois » 20 Dec 2011, 20:24

Forgive me for bringing such an issue right in the middle of rc testing of porteus, the timing might not be the best.

Lets go for the big mama install when the time will be available for you developpers. What is nice about porteus is that it is simple and fast. I would like to have that on the top of a debian system. But maybe the big mama system, with a lot of standard packages could fill the need. Unless the number of packages renders to null the effect of module compression. This type of statement is really not my sector of expertise.

In terms of availability slackware does not seem to offer as much packages as debian (I hope I am not wrong on that point). There is a dependency resoloution option.

But maybe you will argue that slackware is faster and more robust than. From personal experience, I will agree with this. But really personal experience is no match for benchmark testing in terms of robustness. I have no cue of how to test that objectively.
Prendre son temps, profiter de celui qui passe.

Post Reply