LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2015, 04:59 PM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Yet another package manager for Slackware and derivatives: usm


While trying in VMs several Slackware derivatives I came across a new package manager called Unified Slackware Package Manager or usm, written by Jay Flood aka Brokenman initially for Porteus but that works on Slackware version 14.1 and presumably on all distributions based on it.

It's young but very promising.

It can be accessed either from the CLI or a GUI (gtkdialog >= 0.8.3 needed for the GUI), and can deal with packages from several repositories, at time of writing:
DISTROS="slackware slackwarepatches slacky salix alien ponce slackonly"

It does everything you would expect but installing or removing the packages (that's your responsibility, isn't it?)[1], can deal with dependencies if you want (I didn't check how yet), and also download and build the packages from http://slackbuild.org.

And, it is very simple to configure and use, so give it a try! There is also a repository on GitHub.

[1]Correction: it doesn't propose to install the packages that it builds, but does for those that it downloads.

Last edited by Didier Spaier; 10-21-2015 at 02:06 PM. Reason: Typo fix
 
Old 10-18-2015, 06:34 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yet another good find for Slackware (no pun intended).

It would be nice, yet it is optional, for Slackware to use any level of dependency tracking. AFAIK only sbotools is capable of doing this using the SlackBuilds .info file descriptors, while others use add-on files not normally used, but that is for from-source builds only. We really don't have anything for binary packages yet unless you look at SalixOS's examples.

Still, Slackware is one of those distributions that you can add-on to nearly endlessly and customize in so many various ways.
 
1 members found this post helpful.
Old 10-18-2015, 09:42 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
AFAIK only sbotools is capable of doing this using the SlackBuilds .info file descriptors
Of course sqg, shipped in sbopkg, can do that. Check /usr/doc/sbopkg-0.37.0/contrib/sqg if you have it installed.

@All: please try usm before answering. Also to quote Brokenman "This application is in it's infancy and is continually being developed. Suggestions and feedback are most welcome.".

PS I just built sbotools typing "usm -b sbotools"

Last edited by Didier Spaier; 10-19-2015 at 04:46 AM. Reason: Typo fix.
 
Old 10-18-2015, 09:52 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Quote:
Originally Posted by Didier Spaier View Post
Of course sqg, shipped in sbopkg, can do that. Check /usr/doc/sbopkg-0.37.0/contrib/sqg if you have it installed.

@All: please try it before answering. Also to quote brokenman "This application is in it's infancy and is continually being developed. Suggestions and feedback are most welcome.".

PS I just built sbotools typing "usm -b sbotools"
if you think sqg is stable enough, i can consider to include it on main package on the next release
i have been using it and it's stable enough for me
 
Old 10-19-2015, 12:43 AM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
fascinating what people are doing with bash scripts, ... even if its the wrong tool for the task -imho
 
2 members found this post helpful.
Old 10-19-2015, 01:57 AM   #6
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
sqg has been working here flawlessly
 
Old 10-19-2015, 02:26 AM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Ah the beauty of scripts and scripting.
 
Old 10-19-2015, 03:55 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
if you think sqg is stable enough, i can consider to include it on main package on the next release
i have been using it and it's stable enough for me
It behaves as expected as far as I have used it. Of course it can't be more reliable than the <package>.info it relies on.

It wouldn't hurt to have it installed in /usr/bin anyway and that it be more prominently mentioned, as I assume that some folks don't use it just because they are not aware of it and/or it's not in their PATH.

As it is it saves a lot of tedious work so that's worth using it, IMHO.

As for stability I am not sure to know a good definition...

Last edited by Didier Spaier; 10-19-2015 at 03:56 AM.
 
Old 10-19-2015, 05:10 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
It ... can deal with dependencies if you want (I didn't check how yet)
Through usage of ldd, see /usr/share/usm/funcsystemDeps to know more. But again, that is optional.
 
Old 10-19-2015, 06:14 AM   #10
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Didier Spaier View Post
Through usage of ldd, see /usr/share/usm/funcsystemDeps to know more. But again, that is optional.
for dependencies of installed packages you should use sbbdep anyway ;-)
 
Old 10-19-2015, 06:24 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by a4z View Post
for dependencies of installed packages you should use sbbdep anyway ;-)
Just transmit you "constructive" criticism to the author. But maybe have a look at the script first...

Last edited by Didier Spaier; 10-19-2015 at 06:27 AM.
 
Old 10-19-2015, 06:52 AM   #12
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Didier Spaier View Post
Just transmit you "constructive" criticism to the author. But maybe have a look at the script first...
sorry if you find this was criticism, it was not meant to affect you. and i did ...
 
Old 10-19-2015, 07:03 AM   #13
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
I didn't affect me, I just think that feedback about actual usage of usm would be more useful than providing an opinion if we don't know on what it is based.

That said, maybe the dependency resolution provided by sbbdep is better? You just need to elaborate why, and if you do I am sure that Brokenman will welcome your suggestions. He could even integrate it to usm then, who knows?

PS I don't want to trigger another religious war sterile discussion[1] "shell script vs binary", we have had enough of that and I am not Jonathan Swift

[1]Even more useless when the script actually runs a binary...

PPS While we are at it: out of curiosity, did you compare the output and performances of sbbdep with those of depfinder written by George Vlahavas aka gapan?

Last edited by Didier Spaier; 10-19-2015 at 10:35 AM. Reason: Typo fix.
 
Old 10-19-2015, 08:59 AM   #14
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
ldd is a simple but incorrect solution
ldd 'executes' files and give the whole dependency tree including indirect dependencies (A needs B , B needs C), therefore ldd reports A B C.

readelf and objdump give you the real dependencies, without the indirect ones,
but than you have to care about what the linker finds,
this does ldd , so you could use both, and take from ldd only the required ones, but that's than even slower.

you can also simulate the linker behaviour and check where the libs you are looking for are, check things like runpath, rpath infos, and if files have expected sonames.
if you do this you want a cache, like ldd has one,
sbbdep creates also one, and cares about the synchronization of the cache.
that's why it so fast when the cache is available, and it tells you not just what a lib/pkg needs but also who uses a lib/pkg.
you can check the examples to get an idea.

You can reproduce this of course with scripts, but I do not think that this is an easy task and that the result will have a decent performance,
 
7 members found this post helpful.
Old 10-19-2015, 09:50 AM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Thanks for the find Didier, I'll have to check it out later this week.

Quote:
Originally Posted by willysr View Post
if you think sqg is stable enough, i can consider to include it on main package on the next release
i have been using it and it's stable enough for me
I definitely think it shouldn't be buried under the /usr/doc directory. It should be in something that is covered by $PATH. I have been using it since I found out about it (probably a few years) and it's a great addition to sbopkg.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware Package Manager hilario Slackware 10 08-15-2009 11:37 PM
Slackware package manager arnuld Slackware 7 05-03-2007 02:15 PM
Slackware package manager blood_omen Slackware 11 04-26-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration