Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 15 Dec 2019, 03:56
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Multiple package installation/removal with PPM
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 24 [351 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 22, 23, 24 Next
Author Message
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Fri 12 Dec 2014, 08:33    Post subject:  

Version 7 is uploaded
This is a bugfix update, with no new functions or GUI elements.
See first post for details.
v7 is tested (and fixed) to work in full installs too. Very Happy

Zig, notice that this is not the "quite" version posted in the previous page.
If you think you can get a progress window/bar going we may want to adopt the quite version before we diverse too much from v6.
Alternatively if a progress bar/window is unlikely we can run everything in a small terminal window (with small fonts etc) similar to what the "details" window of the Synaptics package-manager/GUI does, to basically show to the user that things are going on.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6609
Location: Valåmoen, Norway

PostPosted: Fri 12 Dec 2014, 09:53    Post subject:  

mavrothal
It's a bit hectic around here atm, but next weekend I get Christmas holiday, so if I could be 'in charge' and implement gui-stuff from next weekend, it would be great. You get it back as fast as I am ready. I fear there is plenty of stuff to improve, so it may take some days.

When it comes to a progressbar, I have not looked into it enough to tell the answer. What I would like to include is a statusbar with info of your space-calculation and probably some progress info...


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Fri 12 Dec 2014, 10:14    Post subject:  

zigbert wrote:
I could be 'in charge' and implement gui-stuff from next weekend, it would be great.


OK. Hopefully some people will actually test it and report some bugs to hopefully solve by then.

In the mean time I may go ahead and implement the "quite" mode with a small rolling terminal window to indicate progress (pic)
remove_terminal.png
 Description   
 Filesize   4.17 KB
 Viewed   420 Time(s)

remove_terminal.png


_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2545
Location: In The Way

PostPosted: Fri 12 Dec 2014, 14:34    Post subject:  

I will be testing it thoroughly.
Back to top
View user's profile Send private message MSN Messenger 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Fri 12 Dec 2014, 18:29    Post subject:  

stemsee wrote:
I will be testing it thoroughly.

You better try v8 then Wink
Is "silent", fixes a bug I found (hopefully you find more) and removed the Xdialog with the install options. This in now moved to the install/removed list window.
With the previous implementation if you had just one package to install you needed 5 clicks and 3 windows Shocked . As many as in the classic method.
Now you need only 2 as I also eliminate the confirmation after the space-needed check. Just installs silently if sufficient or aborts and warns if not.

Note:The 1st download of v8 is a bit different then the current v8. Please re-download if you were the first to get v8

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Sat 13 Dec 2014, 02:47    Post subject:  

I know this is Sigmund's territory, but I was playing with the wording rather than the actual GUI details.
Given that this dialogs will come up as soon as you click on an item in the main PPM, packages frame or in the Uninstall window, do you find them:
a) too "wordy" ie better remove the "introductory" text, or
a1) even the explanatory text and provide it as a popup when hovering over the buttons
b) Unclear/confusing, in which case please suggest improvements.
c) other ...

When reviewing, keep in mind that if the user selects anything but "classic mode", in which PPM goes back to what we know of, will be no further interaction before the final report window, unless a major error occurs.
auto_dialogs.jpg
 Description   
 Filesize   102.25 KB
 Viewed   360 Time(s)

auto_dialogs.jpg


_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2545
Location: In The Way

PostPosted: Sat 13 Dec 2014, 05:49    Post subject:  

My adjustments.

Code:
   Items for Installation listed below.
       Remove Item by selecting.

Supports Multiple Unattended Download or Installation. (quick)
      Revert to 'classic mode' Operation. (slow)

Install:Auto- Installs Packages + Depends.
Download Pkgs: Download  -  Depends.
Download All: Download  +  depends.
Classic Mode: Works One-by-One with Prompts.

Uninstall dialogue
Code:

Automatic Simultaneous Uninstalls. (quick)
                       Or
    Classic 'One-by-One' Mode (slow)
   
Auto Mode: Uninstall Multiple Packages at once. (quick)
Classic Mode: Uninstall One-by-One. (slow)
Back to top
View user's profile Send private message MSN Messenger 
zigbert


Joined: 29 Mar 2006
Posts: 6609
Location: Valåmoen, Norway

PostPosted: Sat 13 Dec 2014, 11:30    Post subject:  

I am not clever in the English language, so I am VERY happy for all syntax improvements... The texting is sure not my territory (if any Smile )
_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1947
Location: Japan

PostPosted: Sat 13 Dec 2014, 21:56    Post subject:  

In Slacko5.9 installed v8
From package list selected Splitvt and xlogo, pressed "Install".
These are my usual test packages because they are small and quick to download, but the multiple install process took forever.
I ended up with an unusable system and had to reboot. Taking a screenshot was a bit tough as all text in mtPaint (see background) was gone.
multiple_package_install.png
 Description   
 Filesize   140.22 KB
 Viewed   344 Time(s)

multiple_package_install.png

Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Sun 14 Dec 2014, 02:35    Post subject:  

MochiMoppel wrote:
In Slacko5.9 installed v8
From package list selected Splitvt and xlogo, pressed "Install".
These are my usual test packages because they are small and quick to download, but the multiple install process took forever.
I ended up with an unusable system and had to reboot. Taking a screenshot was a bit tough as all text in mtPaint (see background) was gone.


Thanks for testing!
I did repeat you test and it did brake me system too.
Apparently in the silent mode introduced in v8, it downloads all the dependencies regardless if they are installed or not, and this can brakes the system.
My test case (xfwm4) did not have so many dependencies...

I removed v8 till I find out what is the problem.

If you want to recover your system in case was not just a test install, boot from another puppy and try this.
make a file, say "slacko_installed_names.txt" with this content
Code:
libtermcap-1.2.3.files
splitvt-1.6.5.files
libpng-1.4.5-s.files
bzip2-1.0.6.files
expat-2.1.0.files
fontconfig-2.10.93.files
freetype-2.5.0.1.files
libICE-1.0.8.files
libpng-1.4.12.files
libSM-1.2.2.files
libX11-1.6.2.files
libXau-1.0.8.files
libXaw-1.0.12.files
libxcb-1.9.1.files
libXdmcp-1.1.1.files
libXext-1.3.2.files
libXft-2.3.1.files
libXmu-1.1.2.files
libXpm-3.5.11.files
libXrender-0.9.8.files
libXt-1.1.4.files
util-linux-2.21.2.files
zlib-1.2.8.files
xlogo-1.0.4.files

and then run this script
Code:
#!/bin/sh
for l in $(cat /root/slacko_installed_names.txt)
do
  for f in $(cat /initrd/mnt/dev_save/Slacko6/slackosave/root/.packages/$l)
   do
    [ -f /initrd/mnt/dev_save/Slacko6/slackosave/$f ] && rm -f /initrd/mnt/dev_save/Slacko6/slackosave/$f
   done
  rm -f /initrd/mnt/dev_save/Slacko6/slackosave/root/.packages/$l
done

Adjust paths accordingly.

Take a look at the code if you can.
Thx

Latter: Got it. Line 183 of installpreview.sh should be
Code:
elif [ "$MISSINGDEPS_PATTERNS" != "" ];then

instaed of
Code:
elif [ "$DB_dependencies" != "" ];then


I'll do some more testing and get v9 up.
Please test again.
xlogo.png
 Description   
 Filesize   14.76 KB
 Viewed   279 Time(s)

xlogo.png


_________________
== Here is how to solve your Linux problems fast ==

Last edited by mavrothal on Sun 14 Dec 2014, 06:04; edited 1 time in total
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Sun 14 Dec 2014, 06:02    Post subject:  

OK, the correct version 9 of the pet and patches is finally up.
Passes my tests but please test

(Come on people... after years of "complains" about PPM, and now one test report in 8 versions? Crying or Very sad
Do test and find some more bugs already!)

Latter
In the mean time, I did some tests to see if indeed automatic installation is any faster than the classical one when installing a single package (which I assume is the most common case). My test environment was a fresh frugal install of slacko 6 and ppm_multi-9.pet as the only addition to it. My test case was installing and removing xfwm4 from the slacko 14.1 repo.
To my surprise auto installation of xfwm4 and its 4 dependencies took 68-70 sec in "auto", while in"classic mode" took 84-86 sec. The 3 extra clicks required in "classic mode" can not account for that difference, but whatever the reason, I like it Smile
On the removal of the 5 packages the difference was huge. 75-78 vs 145-150 seconds. Was not only the 10 clicks on 10 different (moving around) windows but also the fact the fixmenus and indexgen.sh runs after every package, instead of once at the end.

In the way I also tested if the "report terminal" or the standard error/standard input redirection into it, affects speed of "auto installation" and, again to my surprise, it did not. Cool Very Happy

Bottom line, for more that one package installed/removed, speed-wise is a no-brainer. But even with one package there is a 10-15% speed increase.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Sun 14 Dec 2014, 15:00    Post subject:  

Hi mavrothal,

I am pleased to report that your version 9 has worked well for me with Precise 5.6 and Precise 5.7.1 (using pupmode 77 in both trials).

However, as you intimated in the opening post to this thread it is not compatible with Mochi-Moppel's "ppm-mochi-1.0.pet".

If it is impracticable to fix that incompatibility, my personal preference (with less than 260 MB ram for downloads) is to keep MochiMoppel's pet.

As it happens I use your jwm-app-tray-1.0.pet with PPM button to load your Unpet amended from a version by rg66 (see screenshot).

As regards "Unpet" and its "Uninstall SFSes" option there is seaside's excellent single/multiple SFSunloader (all or as ticked) which seaside very kindly wrote for me, but is unpublished. See second screen shot (which I'm 99.99% sure seaside will be happy for anyone to test or for Unpet to be adapted to work in a similar fashion). Please advise if the SFSunloader.pet is wanted.

My regards
unpet_amended_by_marothal.png
 Description   
 Filesize   44.12 KB
 Viewed   205 Time(s)

unpet_amended_by_marothal.png

SFSunloader_from_seaside.png
 Description   
 Filesize   19.6 KB
 Viewed   208 Time(s)

SFSunloader_from_seaside.png

Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Sun 14 Dec 2014, 15:25    Post subject:  

Jasper wrote:
However, as you intimated in the opening post to this thread it is not compatible with Mochi-Moppel's "ppm-mochi-1.0.pet".

Thanks for testing.
You certainly can not use ppm-mochi-1.0.pet nor ppm_down_dir-9.pet as they both affect files changed by the ppm_multi-9.pet.
However, I did try the ppm_down_dir_patches-9 back in v3 or v4 of this pet and they worked fine to add that functionality (ei to defining download folder and to keep installed pets) in auto-mode. MochiMoppel did not provide any patches so I do not know, but I believe it could become compatible.
However, for now I would rather have none of these and just get some testing on the "auto" functions without introducing other variables.
Assuming we are happy the way this runs we can consider other functions down the road.

Regarding SFSunloader, SFSs are not handled by PPM and I would rather keep it that way. However would be nice to have available as a pet the way sfs_load is. Ideally seaside and shinobar can get together and merge these into one pet (basically need to add this functionality to sfs_load)

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Mon 15 Dec 2014, 10:34    Post subject:  

Version 10 is out, with better pre-estimation (almost precise) of required space and further speedup of the process Very Happy
_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Mon 15 Dec 2014, 13:01    Post subject:  

Hi mavrothal,

Version 10 does not work at all in my Precise 5.6 in pupmode 77.

I still have version 9 and after uninstalling v 10 it still works.

My regards

My apology for mistyping your name the screen shot in my last post.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 24 [351 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 22, 23, 24 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0849s ][ Queries: 12 (0.0288s) ][ GZIP on ]