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
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#46 by Slaxmax » 29 Jan 2014, 13:39

Download of packages continues if one fails doesnt work.

Code: Select all

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

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

1) ruby-1.9.3_p448-i486-1.txz
2) ruby-1.9.3_p484-i486-1_slack14.1.txz
#? 2

Processing:   ruby-1.9.3_p484-i486-1_slack14.1.txz 
Libraries required:  24
Libraries found in system: 20
Libraries to resolve: 4

Processing library: libruby.so.1.9
Processing library: libtcl8.6.so
Processing library: libtk8.6.so
Processing library: libyaml-0.so.2


Processing:   tcl-8.6.1-i486-1.txz 
Libraries required:  5
Libraries found in system: 4
Libraries to resolve: 1

Processing library: libtcl8.6.so


Processing:   tk-8.6.1-i486-1.txz 
Libraries required:  19
Libraries found in system: 17
Libraries to resolve: 2

Processing library: libtcl8.6.so
Processing library: libtk8.6.so


Processing:   libyaml-0.1.4-i486-1.txz 

The following packages are required. 
ruby-1.9.3_p484-i486-1_slack14.1.txz []
tcl-8.6.1-i486-1.txz [2480K]
tk-8.6.1-i486-1.txz [1684K]
libyaml-0.1.4-i486-1.txz [104K]

Total size: 4 MB

 Press [r] to remove packages, [q] to quit, or any other key to start downloading.
Downloading: ruby-1.9.3_p484-i486-1_slack14.1.txz  DONE
 There was a problem downloading the file:  ruby-1.9.3_p484-i486-1_slack14.1.txz
Thanks
“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#47 by brokenman » 29 Jan 2014, 17:58

Obrigado.

+-------------------------
Wed Jan 29 15:51:11 UTC 2014
usm-3.0.7-noarch-1.txz: updated
Fixed bad database file for slackwarepatches (thanks slaxmax)
Added downloader search (curl/wget)
Changed format of usm.conf file
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 675
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#48 by tome » 02 Feb 2014, 15:56

It would be nice if user can specify which distro (alien|salix|ponce|slackware|slacky or user specified order) should be searched for package and set preference to search precompiled binary before source. How can I test i.e. alien repo - maybe there is bug in USM that allow only search and download from slackware repo.

Code: Select all

usm -s plume
or

Code: Select all

usm -s plume-creator
gives

Code: Select all

Nothing found for plume
and in alien repo already exists plume-creator-0.54-x86_64-1alien.tgz
You have mind and feelings. Be wise and clever.

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

Re: USM Unified Slackware Package Manager

Post#49 by beny » 02 Feb 2014, 18:21

tome:
bash-4.2# usm -g plume

IMPORTANT NOTICE
All packages will download to: /tmp/usm

Would you like to change the destination now? [y/n]

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

1) plume-creator-0.54-x86_64-1alien.tgz
#?
so?

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

Re: USM Unified Slackware Package Manager

Post#50 by beny » 02 Feb 2014, 18:23

ash-4.2# usm -s plume

plume-creator-0.54-x86_64-1alien.tgz was found in alien
Packages found: 1

Use: usm -i <package> for more info
Use: usm -g <package> to download

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#51 by Slaxmax » 02 Feb 2014, 20:33

@tome
You are using porteus 2.1?
usm is not guaranteed to work in porteus 2.1 and slackware 14.0
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

tome
Contributor
Contributor
Posts: 675
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#52 by tome » 02 Feb 2014, 20:43

Thanks beny, but it doesn't work. Bug is in USM - if I create 'usm' link in /var to another folder in real filesystem to save database (I use fresh mode) then after updating alien (usm -u alien; usm -s plume) I have this:

Code: Select all

 You are missing required database files! 
 Please run: usm -u all

awk: fatal: cannot open file `/var/usm/sbo/SLACKBUILDS.TXT' for reading (No such file or directory)
Nothing found for plume
But without link everything is correct.
You have mind and feelings. Be wise and clever.

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

Re: USM Unified Slackware Package Manager

Post#53 by beny » 02 Feb 2014, 21:26

tome seem that point to wrong file and i think fresh mode isn't ok for a tool like usm you need the repos files upgraded always in? i can be wrong of course so waiting for brokenman hint

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

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

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

Re: USM Unified Slackware Package Manager

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

Post Reply