USM Unified Slackware Package Manager

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#76 by brokenman » 11 Feb 2014, 11:22

This functionality could certainly be added however it could get a little messy after a while. For example you have libgsf sitting in your 'gnumeric' subfolder. You then download another package that has libgsf as a dependency, it would be downloaded a second time when it isn't really needed.

I understand that for the end user it is (probably) much nicer to keep all dependencies of a package together with the package in a subfolder so that all deps can be installed along with a package when needed. So, which is the preferred method?
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: USM Unified Slackware Package Manager

Post#77 by francois » 11 Feb 2014, 12:17

@phhpro:
I am not talking about slackbuild, but about already builtup packages.

@brokenman:
This is it. You need to have a system that helps you to know which package belong to which library, wether you load everything thru the /porteus/modules folder or not. You might want from time to time to displace some package an dependencies into the /porteus/optional folder. If you are to do so, you need to have some neat arrangement of the packages in /porteus/modules.

As you see, I do not ask to impose that way of working to everyone, its optional. Do you want a subfolder, yes or no, would be the question. Once into subfolder package, it is easy to eyeball and see if a given library is there and extra with what package it belongs.
Prendre son temps, profiter de celui qui passe.

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

Re: USM Unified Slackware Package Manager

Post#78 by brokenman » 11 Feb 2014, 14:20

Understood. I've implemented the request. If the user answers 'yes' that they would like to create a subfolder then a subfolder with the name of the chosen package is created.

Example: bluefish-2.2.4

This folder would contain the original package and it's deps.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: USM Unified Slackware Package Manager

Post#79 by francois » 12 Feb 2014, 03:17

Thanks a lot. :D
Prendre son temps, profiter de celui qui passe.

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

Re: USM Unified Slackware Package Manager

Post#80 by brokenman » 12 Feb 2014, 15:28

I should have a basic GUI ready shortly for some testing. Nothing super flash but better to start testing it in the early stages so you can make suggestions for improvement.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Slaxmax
Contributor
Contributor
Posts: 408
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: USM Unified Slackware Package Manager

Post#81 by Slaxmax » 13 Feb 2014, 03:46

Problem alien repo (maybe) see...
I choose two times vlc

Code: Select all

root@porteus:/home/guest# usm -g vlc

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) vlc-2.1.2-i486-1sl.txz       4) vlc-2.1.2-x86_64-3alien.txz
2) vlc-2.1.2-i486-3alien.txz    5) vlc-qt-0.10.0-i486-1sl.txz
3) vlc-2.1.2-i686-1dj.txz
#? 2

Processing:   vlc-2.1.2-i486-3alien.txz 
Libraries required:  186
Libraries found in system: 112
Libraries to resolve: 74

Processing library: libCHARSET3.so

 More than one package contains:  libCHARSET3.so
samba-4.1.0-i486-2.txz            9760K  slackware
samba-4.1.4-i486-1_slack14.1.txz  9828K  slackwarepatches

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) samba-4.1.0-i486-2.txz
2) samba-4.1.4-i486-1_slack14.1.txz
#? 1
Processing library: libaa.so.1
Processing library: libaddns.so
Processing library: libasn1-samba4.so.8
Processing library: libasn1util.so
Processing library: libauth_sam_reply.so
Processing library: libauthkrb5.so
Processing library: libcaca.so.0
Processing library: libccan.so
Processing library: libcli-ldap-common.so
Processing library: libcli-nbt.so
Processing library: libcli_cldap.so
Processing library: libcli_smb_common.so
Processing library: libcliauth.so
Processing library: libdbwrap.so
Processing library: libdcerpc-binding.so.0
Processing library: libdcerpc-samba.so
Processing library: liberrors.so
Processing library: libflag_mapping.so
Processing library: libgensec.so.0
Processing library: libgnutls.so.28
Processing library: libgse.so
Processing library: libgssapi-samba4.so.2
Processing library: libhcrypto-samba4.so.5
Processing library: libheimbase-samba4.so.1
Processing library: libhx509-samba4.so.5
Processing library: libinterfaces.so
Processing library: libkrb5-samba4.so.26
Processing library: libkrb5samba.so
Processing library: libldb.so.1
Processing library: libldbsamba.so
Processing library: liblibcli_lsa3.so
Processing library: liblibsmb.so
Processing library: libmsrpc3.so
Processing library: libndr-krb5pac.so.0
Processing library: libndr-nbt.so.0
Processing library: libndr-samba.so
Processing library: libndr-standard.so.0
Processing library: libndr.so.0
Processing library: libntdb.so.0
Processing library: libp11-kit.so.0
Processing library: libreplace.so
Processing library: libroken-samba4.so.19
Processing library: libsamba-credentials.so.0
Processing library: libsamba-hostconfig.so.0
Processing library: libsamba-modules.so
Processing library: libsamba-security.so
Processing library: libsamba-sockets.so
Processing library: libsamba-util.so.0
Processing library: libsamba3-util.so
Processing library: libsamdb-common.so
Processing library: libsamdb.so.0
Processing library: libsecrets3.so
Processing library: libserver-role.so
Processing library: libsmb_transport.so
Processing library: libsmbclient.so.0
Processing library: libsmbconf.so.0
Processing library: libsmbd_shim.so
Processing library: libsmbregistry.so
Processing library: libtalloc.so.2
Processing library: libtdb-wrap.so
Processing library: libtdb.so.1
Processing library: libtevent-util.so.0
Processing library: libtevent.so.0
Processing library: libutil_cmdline.so
Processing library: libutil_ntdb.so
Processing library: libutil_reg.so
Processing library: libutil_setid.so
Processing library: libutil_tdb.so
Processing library: libvlc.so.5

 More than one package contains:  libvlc.so.5
vlc-2.1.3-i486-1alien.txz  23312K  alien
vlc-2.1.2-i486-1sl.txz     8622K   slacky

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) vlc-2.1.3-i486-1alien.txz
2) vlc-2.1.2-i486-1sl.txz
#? 1
Processing library: libvlccore.so.7
Processing library: libwbclient.so.0
Processing library: libwinbind-client.so
Processing library: libwind-samba4.so.0


Processing:   samba-4.1.0-i486-2.txz 
Libraries required:  159
Libraries found in system: 29
Libraries to resolve: 130

Processing library: libCHARSET3.so
Processing library: libHDB_SAMBA4.so
Processing library: libLIBWBCLIENT_OLD.so
Processing library: libMESSAGING.so
Processing library: libaddns.so
Processing library: libads.so
Processing library: libaio.so.1
Processing library: libasn1-samba4.so.8
Processing library: libasn1util.so
Processing library: libauth.so
Processing library: libauth4.so
Processing library: libauth_sam_reply.so
Processing library: libauth_unix_token.so
Processing library: libauthkrb5.so
Processing library: libccan.so
Processing library: libcli-ldap-common.so
Processing library: libcli-ldap.so
Processing library: libcli-nbt.so
Processing library: libcli_cldap.so
Processing library: libcli_smb_common.so
Processing library: libcli_spoolss.so
Processing library: libcliauth.so
Processing library: libcluster.so
Processing library: libcmdline-credentials.so
Processing library: libcups.so.2

 More than one package contains:  libcups.so.2
cups-1.5.4-i486-3.txz        1856K  slackware
aaa_elflibs-14.1-i486-3.txz  4708K  slackware

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) cups-1.5.4-i486-3.txz
2) aaa_elflibs-14.1-i486-3.txz
#? 1
Processing library: libdb-glue.so
Processing library: libdbwrap.so
Processing library: libdcerpc-binding.so.0
Processing library: libdcerpc-samba.so
Processing library: libdcerpc-samba4.so
Processing library: libdcerpc-server.so.0
Processing library: libdcerpc.so.0
Processing library: libdfs_server_ad.so
Processing library: libdlz_bind9_for_torture.so
Processing library: libdsdb-module.so
Processing library: liberrors.so
Processing library: libevents.so
Processing library: libflag_mapping.so
Processing library: libgensec.so.0
Processing library: libgnutls.so.28
Processing library: libgpo.so
Processing library: libgse.so
Processing library: libgssapi-samba4.so.2
Processing library: libhcrypto-samba4.so.5
Processing library: libhdb-samba4.so.11
Processing library: libheimbase-samba4.so.1
Processing library: libhx509-samba4.so.5
Processing library: libidmap.so
Processing library: libiniparser.so
Processing library: libinterfaces.so
Processing library: libkdc-samba4.so.2
Processing library: libkrb5-samba4.so.26
Processing library: libkrb5samba.so
Processing library: libldb-cmdline.so
Processing library: libldb.so.1
Processing library: libldbsamba.so
Processing library: liblibcli_lsa3.so
Processing library: liblibcli_netlogon3.so
Processing library: liblibsmb.so
Processing library: libmsrpc3.so
Processing library: libndr-krb5pac.so.0
Processing library: libndr-nbt.so.0
Processing library: libndr-samba.so
Processing library: libndr-samba4.so
Processing library: libndr-standard.so.0
Processing library: libndr.so.0
Processing library: libnet_keytab.so
Processing library: libnetapi.so.0
Processing library: libnetif.so
Processing library: libnpa_tstream.so
Processing library: libnss_info.so
Processing library: libntdb.so.0
Processing library: libntvfs.so
Processing library: libp11-kit.so.0
Processing library: libpac.so
Processing library: libpdb.so.0
Processing library: libpopt_samba3.so
Processing library: libposix_eadb.so
Processing library: libprinting_migrate.so
Processing library: libprocess_model.so
Processing library: libpyldb-util.so.1
Processing library: libpytalloc-util.so.2
Processing library: libpython2.7.so.1.0
Processing library: libregistry.so.0
Processing library: libreplace.so
Processing library: libroken-samba4.so.19
Processing library: libsamba-credentials.so.0
Processing library: libsamba-hostconfig.so.0
Processing library: libsamba-modules.so
Processing library: libsamba-net.so
Processing library: libsamba-policy.so.0
Processing library: libsamba-security.so
Processing library: libsamba-sockets.so
Processing library: libsamba-util.so.0
Processing library: libsamba3-util.so
Processing library: libsamba_python.so
Processing library: libsamdb-common.so
Processing library: libsamdb.so.0
Processing library: libsecrets3.so
Processing library: libserver-role.so
Processing library: libservice.so
Processing library: libshares.so
Processing library: libsmb_transport.so
Processing library: libsmbclient-raw.so.0
Processing library: libsmbclient.so.0
Processing library: libsmbconf.so.0
Processing library: libsmbd_base.so
Processing library: libsmbd_conn.so
Processing library: libsmbd_shim.so
Processing library: libsmbldap.so.0
Processing library: libsmbldaphelper.so
Processing library: libsmbpasswdparser.so
Processing library: libsmbregistry.so
Processing library: libsubunit.so
Processing library: libtalloc.so.2
Processing library: libtdb-wrap.so
Processing library: libtdb.so.1
Processing library: libtevent-util.so.0
Processing library: libtevent.so.0
Processing library: libtorture.so.0
Processing library: libtrusts_util.so
Processing library: libutil_cmdline.so
Processing library: libutil_ntdb.so
Processing library: libutil_reg.so
Processing library: libutil_setid.so
Processing library: libutil_tdb.so
Processing library: libwbclient.so.0
Processing library: libwinbind-client.so
Processing library: libwind-samba4.so.0
Processing library: libxattr_tdb.so


Processing:   aalib-1.4rc5-i486-5.txz 
Libraries required:  10
Libraries found in system: 9
Libraries to resolve: 1

Processing library: libaa.so.1


Processing:   libcaca-0.99.beta18-i486-2.txz 
Libraries required:  29
Libraries found in system: 28
Libraries to resolve: 1

Processing library: libcaca.so.0


Processing:   gnutls-3.1.16-i486-1.txz 
Libraries required:  19
Libraries found in system: 13
Libraries to resolve: 6

Processing library: libgc.so.1

 More than one package contains:  libgc.so.1
gc-7.2d-i486-1.txz     232K  slackware
gc-7.4.0-i486-1sl.txz  193K  slacky

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) gc-7.2d-i486-1.txz
2) gc-7.4.0-i486-1sl.txz
#? 1
Processing library: libgnutls.so.28
Processing library: libguile-2.0.so.22
Processing library: libltdl.so.7

 More than one package contains:  libltdl.so.7
libtool-2.4.2-i486-2.txz     416K   slackware
aaa_elflibs-14.1-i486-3.txz  4708K  slackware

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) libtool-2.4.2-i486-2.txz
2) aaa_elflibs-14.1-i486-3.txz
#? 1
Processing library: libp11-kit.so.0
Processing library: libunistring.so.0


Processing:   p11-kit-0.16.4-i486-1.txz 
Libraries required:  4
Libraries found in system: 2
Libraries to resolve: 2

Processing library: libp11-kit.so.0
Processing library: libtasn1.so.6


Processing:   vlc-2.1.3-i486-1alien.txz  #####STOPPED HERE
thx
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

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

Re: USM Unified Slackware Package Manager

Post#82 by brokenman » 13 Feb 2014, 11:56

Thanks slaxmax. I was playing with this yesterday and noticed the same thing with VLC. Will check it out.

EDIT: Version mismatch for vlc. It appears I will need to update the databases more regularly or things will break. I will create an automated system for this. Hamza, I may need your help on the server.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: USM Unified Slackware Package Manager

Post#83 by brokenman » 14 Feb 2014, 00:21

+-------------------------
Thu Feb 13 22:10:13 UTC 2014
usm-3.0.8-noarch-1.txz: updated
Altered some colored text that works with light and dark backgrounds
Altered some code to accommodate GUI
Add option to create subfolder for downloads (thanks francois)
Fixed bug where file remains if user cancels midway through download (thanks slaxmax)
Fixed bug with VLC MANIFEST not containing record of symlink (thanks slaxmax)
Added japanese locale files (thanks Neko)
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Slaxmax
Contributor
Contributor
Posts: 408
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: USM Unified Slackware Package Manager

Post#84 by Slaxmax » 14 Feb 2014, 03:14

thx bro

now resolve dependencies option
if choose ponce package see...

Code: Select all

root@porteus:/home/guest# usm -d /var/log/packages/mlt*


 Missing dependencies:  6
####################################

libjack.so.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltjackrack.so)

libswfdec-0.8.so.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltswfdec.so)

libquicktime.so.0 => not found
libdv.so.4 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltkino.so)

libdv.so.4 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltdv.so)

libsox.so.2 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltsox.so)

libpython2.7.so.1.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/python2.7/site-packages/_mlt.so)

####################################

Searching  libdv.so.4:  found 3 packages.
Choose a package to download or choose 'None' to neglect
1) libdv-1.0.0-i486-1ponce.txz  3) libdv-1.0.0-i486-10sl.txz
2) libdv-1.0.0-i486-1gv.txz     4) None
#? 1

/usr/sbin/usm: line 1408: declare: .: syntax error: operand expected (error token is ".")
If choose salix package no problem

Code: Select all

root@porteus:/home/guest# usm -d /var/log/packages/mlt*


 Missing dependencies:  6
####################################

libjack.so.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltjackrack.so)

libswfdec-0.8.so.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltswfdec.so)

libquicktime.so.0 => not found
libdv.so.4 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltkino.so)

libdv.so.4 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltdv.so)

libsox.so.2 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/mlt/libmltsox.so)

libpython2.7.so.1.0 => not found
Required by: mlt-0.9.0-i486-1sl (/usr/lib/python2.7/site-packages/_mlt.so)

####################################

Searching  libdv.so.4:  found 3 packages.
Choose a package to download or choose 'None' to neglect
1) libdv-1.0.0-i486-1ponce.txz  3) libdv-1.0.0-i486-10sl.txz
2) libdv-1.0.0-i486-1gv.txz     4) None
#? 2

Searching  libjack.so.0:  found 6 packages.
Choose a package to download or choose 'None' to neglect
1) jack-1.9.9.5-i486-2alien.txz
2) jack-audio-connection-kit-0.121.3-i486-2ponce.txz
3) jack-audio-connection-kit-0.121.3-i486-1dj.txz
4) jack-audio-connection-kit-0.121.3-i486-1dj.txz
5) jack-1.9.9.5-i486-1sl.txz
6) jack-1.9.9.5-i486-1sl.txz
7) None
#? 
other error

Code: Select all

root@porteus:/home/guest# usm -d /var/log/packages/gnutls*


####################################

libgc.so.1 => not found
libgc.so.1 => not found
Required by: gnutls-3.1.16-i486-1 (/usr/lib/guile/2.0/guile-gnutls-v-2.so.0.0.0)

####################################

Searching  libgc.so.1:  found 2 packages.
Choose a package to download or choose 'None' to neglect
1) gc-7.2d-i486-1.txz
2) gc-7.4.0-i486-1sl.txz
3) None
#? 2


 The following packages are ready to download: 

gc-7.4.0-i486-1sl.txz [193 KB]

Would you like to continue, or deselect some items?
[ Press c to continue or d to deselct items]

root@porteus:/home/guest# 
I press c but not continued
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

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

Re: USM Unified Slackware Package Manager

Post#85 by brokenman » 14 Feb 2014, 13:23

Thanks again. Fixed now and will push next update. Also fixed some errors generating ponce links.
How do i become super user?
Wear your underpants on the outside and put on a cape.

bour59
Shogun
Shogun
Posts: 203
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Re: USM Unified Slackware Package Manager

Post#86 by bour59 » 14 Feb 2014, 15:30

Hello !
usm -s bind shows 3 packages
how can i get the one in slackwarepatches
cause usm -g bind gives an only choice
I am a beginner in using usm (seems very interesting resolving dependences)
Second question : I'm using usm 3.0.7 (from porteus distro) ,
how can I upgrade to usm 3.08
(I thougt to download the 3.0.8. txz from sourceforge
and then installpkg ? or txz2xzm ? or another way
thanks

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

Re: USM Unified Slackware Package Manager

Post#87 by brokenman » 14 Feb 2014, 18:56

usm -s bind is used to search for packages. It will search for the string in any order. For example: bind-0.3 or keybind-1.2 or anything-bind-more-1.2.3.

Once you use usm -s to search for the package you want use: usm -g keybind-1.2 to download it. usm -g searches for packages starting with the string.
For example: usm -g bind would find bind-1.2.3 or bindump-1.2.3 or bindage-1.2.3

So to download it you would type: usm -g bind-9.9.4_P2-x86_64-1_slack14.1.txz

To update, you are correct. Download the latest version and install it using: installpkg usm-3.0.8-noarch-1.txz
How do i become super user?
Wear your underpants on the outside and put on a cape.

bour59
Shogun
Shogun
Posts: 203
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Re: USM Unified Slackware Package Manager

Post#88 by bour59 » 14 Feb 2014, 19:30

thx I had understood how to use usm
usm -g bind-9.9.4_P2-i486-1_slack14.1.txz says Nothig found for bind....
I'm looking for the 32 bits version
to avoid any finger error , the package name was copy/pasted
I will update to 3.0.8 using installpkg (txz2xzm does not recognize the .tgz as correct)

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

Re: USM Unified Slackware Package Manager

Post#89 by brokenman » 14 Feb 2014, 19:39

usm -g bind-9.9.4_P2-i486-1_slack14.1.txz says Nothig found for bind
Ok thanks, I will check it out.
How do i become super user?
Wear your underpants on the outside and put on a cape.

bour59
Shogun
Shogun
Posts: 203
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Re: USM Unified Slackware Package Manager

Post#90 by bour59 » 17 Feb 2014, 13:35

@brokenman
no problem with bind-9.9.4 after updating databases (usm -u)
will do this first if another error.
Sorry ! :%)

Post Reply