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...
Post Reply
User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: USM Unified Slackware Package Manager

Post#91 by Slaxmax » 08 Feb 2014, 02:15

@brokenman

A little issue
If the terminal interrupt the package does not download more. Because exist a package incomplete in download directory.

Obrigado camarada!
“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: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#92 by brokenman » 08 Feb 2014, 16:49

@Neko
I learned some things from your script that will make my job easier for the GUI.

@slaxmax
Thanks, I will try to fix this so that if the download is interrupted it is automatically removed.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: USM Unified Slackware Package Manager

Post#93 by francois » 09 Feb 2014, 01:33

@brokenman:
As everything was going fine for me with usm, I just read the the posts on this thread. I will try to be a little more creative, at least I hope. If you have any specific demand, I might be your man. :wink:

Trying beny's download on spacefm under porteus linux 3.0 rc2, I get:

Code: Select all

root@porteus:~# usm -g spacefm

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

1) spacefm-0.8.2-x86_64-2dj.txz
#? 1

Processing:   spacefm-0.8.2-x86_64-2dj.txz 
Libraries required:  51
Libraries found in system: 51
Libraries to resolve: 0



The following packages are required. 
spacefm-0.8.2-x86_64-2dj.txz [796K]

Total size: 796 KB

 Press [r] to remove packages, [q] to quit, or any other key to start downloading.
Downloading: spacefm-0.8.2-x86_64-2dj.txz  DONE

root@porteus:~#
Bonus! I built spacefm from source and it just work as fine as the package. :good:

I got gimp and dependencies working flawlessly thru usm.

So everything is fine, and no dependencies are needed. And spacefm works like a charm. :twisted:
Last edited by francois on 09 Feb 2014, 14:58, edited 1 time in total.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#94 by brokenman » 09 Feb 2014, 13:03

Thanks Francois. As the CLI seems to be stable now I am looking toward building the GUI front end. Neko's code is great so I am stealing a lot of it. :oops:
How do i become super user?
Wear your underpants on the outside and put on a cape.

neko
Contributor
Contributor
Posts: 910
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#95 by neko » 09 Feb 2014, 14:27

1. I changed 'usm' source a little for multi language,
and tested run.

(1)coding miss
"`gettext "string1" "string2"`"
--> "`gettext "string1"`" "`gettext "string2"`"

(2)Shell variables are pushed out from gettext's string

(3)diff
#====================================#
141c141
< bold " Usage: usm <option> [argument]"
---
> bold "`gettext " Usage: usm <option> [argument]"`"
146c146
< echo " Use example: $SCRIPT -u all" "`gettext "(to update all databases)"`"
---
> echo "`gettext " Use example:"`" "$SCRIPT -u all" "`gettext "(to update all databases)"`"
524c524
< echo "`gettext "It seems $1 is a library."`"
---
> echo "$1, `gettext "It seems a library."`"
1599c1599
< [ "$2" == "?" ] && help_give "`gettext "usm -u <distro>" "For example: usm -u slackware"`"
---
> [ "$2" == "?" ] && help_give "`gettext "usm -u <distro>"`" "`gettext "For example: usm -u slackware"`"
1602c1602
< help_give "`gettext "usm -u <distro>" "For example: usm -u slackware"`"
---
> help_give "`gettext "usm -u <distro>"`" "`gettext "For example: usm -u slackware"`"
1616c1616
< help_check $2 && help_give "`gettext "usm -s <package>" "For example: usm -s imagemagick"`"
---
> help_check $2 && help_give "`gettext "usm -s <package>"`" "`gettext "For example: usm -s imagemagick"`"
1641c1641
< help_check $2 && help_give "`gettext "usm set <storage>" "For example: usm set /root/usm"`"
---
> help_check $2 && help_give "`gettext "usm set <storage>"`" "`gettext "For example: usm set /root/usm"`"
#====================================#

2.usm-3.0.7-noarch-2.xzm
http://www.mediafire.com/download/e5vf2 ... arch-2.xzm
md5sum: 58e7bb04b50d1dada57285815b098d6b usm-3.0.7-noarch-2.xzm

includes the modified usm and Japanese po/mo.

test run:
`export TEXTDOMAIN=usm; usm`

* note:
I did not know that
a tab code '\t' must be coded with '\\t' in po file.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#96 by brokenman » 10 Feb 2014, 02:26

Thanks neko. I have made some changes to the /usr/sbin/usm file to work with the GUI more easily and have merged your changes. :good:
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: USM Unified Slackware Package Manager

Post#97 by francois » 11 Feb 2014, 01:04

For packages with multiple dependencies, so that past packages and new packages are not mixed up, would it be possible to be probed lf one would like to download the package and the associated libraries in a subfolder of the designated folder for downloads. For example, for gnumerics:

Code: Select all

root@porteus:~# usm -g gnumeric

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

1) gnumeric-1.12.9-x86_64-1rl.txz
2) gnumeric-1.12.9-x86_64-2sl.txz
#? 1

Processing:   gnumeric-1.12.9-x86_64-1rl.txz 
Libraries required:  65
Libraries found in system: 62
Libraries to resolve: 3

Processing library: libgoffice-0.10.so.10
Processing library: libgsf-1.so.114
Processing library: libspreadsheet-1.12.9.so
...

...
The following packages are required. 
gnumeric-1.12.9-x86_64-1rl.txz [11735K]
goffice-0.10.9-x86_64-1rl.txz [1576K]
libgsf-1.14.26-x86_64-1.txz [220K]
libspectre-0.2.7-x86_64-1.txz [40K]

Total size: 13 MB

[b]As you have dependencies in addition to the gnumeric package, do you want to create a download subfolder [Y]
Y
gnumeric[/b]



Press [r] to remove packages, [q] to quit, or any other key [b]for downloading into /tmp/usm/gnumeric[/b].
Voltaire: Le mieux est l'ennemi du bien.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: USM Unified Slackware Package Manager

Post#98 by phhpro » 11 Feb 2014, 05:04

...
Last edited by phhpro on 04 Feb 2016, 01:43, edited 1 time in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#99 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: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: USM Unified Slackware Package Manager

Post#100 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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#101 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: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: USM Unified Slackware Package Manager

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

Thanks a lot. :D
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#103 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: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: USM Unified Slackware Package Manager

Post#104 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: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#105 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.

Post Reply