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...
tome
Contributor
Contributor
Posts: 678
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Re: USM Unified Slackware Package Manager

Post#61 by tome » 04 Feb 2014, 17:17

Next bug - try search or download spacefm on Porteus 3.0 - problem with Salix repository - Slackware 14.0 instead of 14.1 that doesn't contain spacefm package.
You have mind and feelings. Be wise and clever.

neko
DEV Team
DEV Team
Posts: 2113
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#62 by neko » 05 Feb 2014, 06:41

@brokenman

Thank you for your kindness.
I study your code now.
Especially I am interested on how to use 'gtkdialog'.

I have an experience on developing by C language.
But I do not have one by script languages.

I am enjoy to write a script source.

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#63 by brokenman » 05 Feb 2014, 15:30

Thanks tome will check this out tonight.

Neko i like your GUI. We take different approaches. Yours is based on separating the distros while mine searches all distros together. There are many things I like about your GUI. It is very easy to understand and very fast. I like the layout left --> right.
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 678
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Re: USM Unified Slackware Package Manager

Post#64 by tome » 05 Feb 2014, 20:53

Must I run

Code: Select all

usm -u all
to download salix packages. If I use

Code: Select all

usm -u salix
then after

Code: Select all

usm -g test
is

Code: Select all

 You are missing required database files! 
 Please run: usm -u all
but I have required database for searching Salix repository.
You have mind and feelings. Be wise and clever.

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

Re: USM Unified Slackware Package Manager

Post#65 by beny » 06 Feb 2014, 00:25

bash-4.2# usm -u salix
Starting salix database update
Connection is good
Downloading: CHECKSUMS.md5 DONE
Downloading: PACKAGES.TXT DONE
Downloading: LIBS.TXT.gz DONE
Downloading: OPTIFEST.gz DONE
Downloading: MANIFEST.bz2 DONE
salix database updated.


bash-4.2# 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


awk: linea com.:1: (FILENAME=- FNR=1) fatale: tentativo di accedere al campo -1
grep: /etc/usm/mirrors-.txt: File o directory non esistente
grep: /var/usm//PACKAGES.TXT: File o directory non esistente
grep: /var/usm//PACKAGES.TXT: File o directory non esistente

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

Total size: 0 KB

Press [r] to remove packages, [q] to quit, or any other key to start downloading.



you are right tome seem salix not good to downloads packages i try another one but....

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#66 by brokenman » 06 Feb 2014, 00:30

Thanks Beny i have confirmed the bug. I get the same output.

Yes Tome you must run: usm -u all before you can do anything. Later if you just want to update a single repository (because the changelog shows new packages) you have the option to update just one.
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#67 by brokenman » 06 Feb 2014, 01:55

Problem fixed. It was indeed a problem with the x86_64 salix file. Please try again.

@Neko
Very nicely written script. I get no errors. Very easy to read and i like structure of the script. 5 stars *****
How do i become super user?
Wear your underpants on the outside and put on a cape.

neko
DEV Team
DEV Team
Posts: 2113
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#68 by neko » 07 Feb 2014, 03:53

@brokenman

I'm very glad to receive a good rating from you.
Now, I begin translating to a Japanese message of the CUI usm,
which is already multilingual version by you.

Thanks.

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#69 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: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#70 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: 6438
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#71 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.
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#72 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
DEV Team
DEV Team
Posts: 2113
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

Post#73 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: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM Unified Slackware Package Manager

Post#74 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: 6438
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#75 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].
Prendre son temps, profiter de celui qui passe.

Post Reply