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
brokenman
Site Admin
Site Admin
Posts: 6104
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

Re: USM Unified Slackware Package Manager

Post#76 by brokenman » 03 Feb 2014, 02:08

Thanks Tome, I will add the -L switch to find so if someone uses a symlink it will follow the link.

Fresh mode is OK but you will need to make a module from the database files and leave it in the modules folder.
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 669
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: against russian attacks
Contact:

Re: USM Unified Slackware Package Manager

Post#77 by tome » 03 Feb 2014, 07:48

@beny It is not fresh mode correctly - I don't use changes cheatcode but data can be saved by activating module that contains links to writable folder - it has few advantages over changes.
You have mind and feelings. Be wise and clever.

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

Re: USM Unified Slackware Package Manager

Post#78 by neko » 03 Feb 2014, 10:46

I tried to make a simple GUI for usm.
Thanks.

SGUIusm-14.02.03-noarch-0.xzm (8 K)
http://www.mediafire.com/download/ac7uz ... arch-0.xzm
md5sum: cbb39d9c915ef411da4241192c455866 SGUIusm-14.02.03-noarch-0.xzm

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

Re: USM Unified Slackware Package Manager

Post#79 by beny » 03 Feb 2014, 17:17

neko
/usr/bin/SGUIusm: line 601: gtkdialog: command not found i have put in gtkdialog
bash-4.2# sh /usr/bin/SGUIusm

** (gtkdialog:3757): ERROR **: gtkdialog: Error in line 70, near token 'string': syntax error

/usr/bin/SGUIusm: line 390: 3755 Done echo "$USM_SEARCH"
3756 | sed '/^##/d'
3757 Rilevato trace/breakpoint | gtkdialog -s > $SGUIUSMWRK/JUNK
bash-4.2#

i have stripped the xzm for me more useful but not work yet

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

Re: USM Unified Slackware Package Manager

Post#80 by brokenman » 03 Feb 2014, 20:18

Fantastic! I am so happy other people are using gtkdialog now.

I have a basic GUI for usm which only searches for and downloads packages. I will take a look at your version tomorrow and see how we can use it.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: USM Unified Slackware Package Manager

Post#81 by neko » 04 Feb 2014, 07:10

@beny

I can not understand what happens.
I searched the site
http://puppylinux.info/topic/swatch-int ... ons/page/2
that has the same error message
"** ERROR **: gtkdialog: Error in line 17, near token 'string': syntax error".

If you fix this problem, I expect that you will report on other thread about a problem.

Excuse me for my poor skill.


@brokenman
>>I have a basic GUI for usm

Would you open your basic GUI ?
I would like to study your code.

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

Re: USM Unified Slackware Package Manager

Post#82 by brokenman » 04 Feb 2014, 14:19

You can download what I have so far here. It only has basic functionality at the moment. Only search for packages (not download yet). You will need all files from the CLI version and use these in addition. You must also run: usm -u all in the CLI before running this GUI.

https://dl.dropboxusercontent.com/u/6868871/guiusm.xzm
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 669
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: against russian attacks
Contact:

Re: USM Unified Slackware Package Manager

Post#83 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: 2095
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

Post#85 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: 669
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: against russian attacks
Contact:

Re: USM Unified Slackware Package Manager

Post#86 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: 1878
Joined: 02 Jan 2011, 11:33
Location: italy

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

Post#89 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: 2095
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: USM Unified Slackware Package Manager

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

Post Reply