USM Unified Slackware Package Manager
-
- Contributor
- Posts: 676
- 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
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.
-
- DEV Team
- Posts: 2109
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
Re: USM Unified Slackware Package Manager
@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.
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.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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.
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.
Wear your underpants on the outside and put on a cape.
-
- Contributor
- Posts: 676
- 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
Must I run to download salix packages. If I use then after is but I have required database for searching Salix repository.
Code: Select all
usm -u all
Code: Select all
usm -u salix
Code: Select all
usm -g test
Code: Select all
You are missing required database files!
Please run: usm -u all
You have mind and feelings. Be wise and clever.
Re: USM Unified Slackware Package Manager
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....
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....
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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.
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.
Wear your underpants on the outside and put on a cape.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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 *****
@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.
Wear your underpants on the outside and put on a cape.
-
- DEV Team
- Posts: 2109
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
Re: USM Unified Slackware Package Manager
@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.
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.
- Slaxmax
- Contributor
- Posts: 408
- Joined: 03 Jan 2013, 09:51
- Distribution: KDE4
- Location: Campinas Brazil https://goo.gl/yrxwKi
Re: USM Unified Slackware Package Manager
@brokenman
A little issue
If the terminal interrupt the package does not download more. Because exist a package incomplete in download directory.
Obrigado camarada!
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
― Bill Gates, The Road Ahead
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
@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.
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.
Wear your underpants on the outside and put on a cape.
- francois
- Contributor
- Posts: 6435
- 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
@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.
Trying beny's download on spacefm under porteus linux 3.0 rc2, I get:
Bonus! I built spacefm from source and it just work as fine as the package.
I got gimp and dependencies working flawlessly thru usm.
So everything is fine, and no dependencies are needed. And spacefm works like a charm.
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.
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:~#
I got gimp and dependencies working flawlessly thru usm.
So everything is fine, and no dependencies are needed. And spacefm works like a charm.
Last edited by francois on 09 Feb 2014, 14:58, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- DEV Team
- Posts: 2109
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
Re: USM Unified Slackware Package Manager
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.
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.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
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.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- francois
- Contributor
- Posts: 6435
- 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
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.