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 Thu 20 Sep 2018, 08:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Simple Updater
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
mavrothal


Joined: 24 Aug 2009
Posts: 2976

PostPosted: Thu 13 Sep 2018, 08:15    Post subject:  Simple Updater  

With peebee making a new puppy almost every week Razz I had a little script to just update the changed files from the downloaded ISO.

I just found some time and put little more dialogs, info and checks and here it is (for safe keeping).
As the image shows will update/upgrade the (changed) puppy files of your frugal install with the ones in the ISO/CD.
We’ll keep the old files just in case.

Something for the very novice or the very lazy. Cool
Edit: v2 checks for multiple Images/CDs
simple_updater-2.pet
Description 
pet

 Download 
Filename  simple_updater-2.pet 
Filesize  3.39 KB 
Downloaded  22 Time(s) 
Update_from_ISO.jpg
 Description   
 Filesize   103.79 KB
 Viewed   475 Time(s)

Update_from_ISO.jpg


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

Last edited by mavrothal on Fri 14 Sep 2018, 08:45; edited 3 times in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11012
Location: Charleston S.C. USA

PostPosted: Thu 13 Sep 2018, 09:24    Post subject:  

Very good idea to offer this.

Thanks!

I do not know your code for this, but in the past.
This kind of program will only work if you are going to update to a newer version of a named Puppy.

Example:
Tahrpup6.0 to Tahrpup 6.0.3 to Tahrpup 6.0.5, etc.....

This would not work if going from one named Puppy to another named Puppy.
Example:
Tahrpup to Xenialpup

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 797
Location: Connecticut, United States

PostPosted: Thu 13 Sep 2018, 10:05    Post subject:  

is there a program with a GUI that can change the kernel? maybe one already developed?
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Thu 13 Sep 2018, 10:45    Post subject:  

rockedge wrote:
is there a program with a GUI that can change the kernel? maybe one already developed?

Attached. This is a clickable script. Download and extract it.

It is designed to follow the standard naming rules for recent puppies and the "huge" kernel packages.
snappie.png
 Description   Updated 2018-09-15
 Filesize   8.55 KB
 Viewed   182 Time(s)

snappie.png

switcheroo-1.1.tar.gz
Description 
gz

 Download 
Filename  switcheroo-1.1.tar.gz 
Filesize  798 Bytes 
Downloaded  11 Time(s) 

Last edited by rcrsn51 on Sun 16 Sep 2018, 09:22; edited 3 times in total
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2976

PostPosted: Thu 13 Sep 2018, 14:34    Post subject:  

bigpup wrote:

This kind of program will only work if you are going to update to a newer version of a named Puppy.

As mentioned peebee's "+N" naming scheme, were SFSs have the same name and only the ISO name changes, was my "motive" for this script.
But yes, will also update or downgrade a version and even check if the presumably "same version" is indeed the same as the ISO and update as needed (because after deleting the "Peebee_special_123+5.iso" I had no idea what was installed)
As I said "for the lazy ones" Very Happy

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


Joined: 11 Apr 2012
Posts: 797
Location: Connecticut, United States

PostPosted: Fri 14 Sep 2018, 07:51    Post subject:  

rcrsn51 Thank you! the program is exactly what I was looking for
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 3467
Location: Worcestershire, UK

PostPosted: Fri 14 Sep 2018, 12:02    Post subject: Re: Simple Updater  

mavrothal wrote:
With peebee making a new puppy almost every week Razz

Not "new" - just updates .....

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 2976

PostPosted: Fri 14 Sep 2018, 14:09    Post subject: Re: Simple Updater  

peebee wrote:
mavrothal wrote:
With peebee making a new puppy almost every week Razz

Not "new" - just updates .....


You are right! I meant a new puppy ISO.

Talking about updates I actually think that the way you provide updates is the most appropriate for a compact distro running in RAM and/or layered. Other methods (BK’s service packs, Phill’s quickpet, fatdog’s package updates etc) given time, end up replicating the system and moving it in your savefile/folder. So in reality you have a full install and none of the benefits of full or frugal.
However, installing a new ISO every week really makes it feel like a “temporary distro”. Makes you think that you may want to “wait for the next one” or wait and see if there is anything wrong with this one. And of course if you are not a forum regular you never find out about it.
What I believe may be more appropriate is to provide deltas for the changed SFSs, initrd.gz and vmlinuz as needed and a little script to check (every week or when instructed) what is available in the server (upupxx_update-1, -2, -3….tar.gz), what is installed in the running system (as indicated by /etc/update_number for example) and then download the next update, extract it, delta-in the SFSs etc, and you are done! No burden on your HD, savefile or anything.
The updates could be applied sequentially without reboot, just by looking at the actual puppy SFS in the drive instead of the running system, so only incremental updates are needed.
Of course this may be a bit more work for the puppy builder but making deltas of the ISO files instead of the ISO itself should not be too much.

Anyway this thread is derailed enough Smile . (BTW rcrsn51 you may want to make it even simpler using the huge kernel tarball directly instead)

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


Joined: 16 Jul 2013
Posts: 884
Location: Mid-mitten, USA

PostPosted: Fri 14 Sep 2018, 15:16    Post subject: Re: Simple Updater  

Hiya' mavrothal (good to see you posting!) -

mavrothal wrote:
What I believe may be more appropriate is to provide deltas...


For UPupBB - might this be what you're looking for? ...

https://sourceforge.net/projects/zestypup/files/Upup-Bionic/updates/

I think peebee provides regular delta updates for his Slackware Lxde versions, too...

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


Joined: 24 Aug 2009
Posts: 2976

PostPosted: Fri 14 Sep 2018, 15:58    Post subject: Re: Simple Updater  

Moat wrote:
Hiya' mavrothal (good to see you posting!) -

mavrothal wrote:
What I believe may be more appropriate is to provide deltas...


For UPupBB - might this be what you're looking for? ...

https://sourceforge.net/projects/zestypup/files/Upup-Bionic/updates/

I think peebee provides regular delta updates for his Slackware Lxde versions, too...

Bob


How stupid of me.
I keep downloading peebee's ISOs and never noticed he has deltas to the original ISO.
I should read the posts more carefully.

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


Joined: 16 Jul 2013
Posts: 884
Location: Mid-mitten, USA

PostPosted: Fri 14 Sep 2018, 17:58    Post subject:  

Laughing Laughing Well - if that's the worst mistake you've made lately, you're actually doing pretty damn good! Laughing
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sat 15 Sep 2018, 10:15    Post subject: Re: Simple Updater  

mavrothal wrote:
(BTW rcrsn51 you may want to make it even simpler using the huge kernel tarball directly instead)

Good idea. New version posted above.
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 2976

PostPosted: Mon 17 Sep 2018, 09:07    Post subject:  

Moat wrote:
Laughing Laughing

I guess I was not clear enough. Rolling Eyes
Let me spell it out then.
I do know that peebee provides deltas for the original ISO (used them many times).
In order to use these deltas to update your frugal install, you have to safekeep the original ISO, get the delta, patch the iso, mount it, delete your HD/USB-installed SFSs/vmlinuz/initrd etc and copy the new ones from the ISO.
If you do not have the original ISO you are better off download the latest ISO instead and do the copy/paste from there.

This is certainly not what I was describing above, but rather this mechanism.
In that scenario the "update program" will go look for the delta update (that is different that the available and build in a specific way), and if present download it and patch the HD/USB-installed puppy SFSs, initrd and vmlinuz without further user intervention.
Could do something similar adding few lines of code in the program I have above but downloading an entire ISO (or 2 if you do not keep the original) for few MB of changed files looks like a big waste.

If peebee or any other puppy builder (is there any other?) will implement this or something like it, where the puppy core files will be updated per se and not through the savefile, I have no idea! I have my doubts because if you are a forum regular (as most of the people around here) non of these is important! You already like tinkering with puppy and you visit often enough to know about available updates. So why allow the machine to take your fun away Very Happy

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


Joined: 16 Jul 2013
Posts: 884
Location: Mid-mitten, USA

PostPosted: Yesterday, at 04:44    Post subject:  

Whoa... yikes and yeah - I was waaay off base there, skimming along with a muddy head (of which I'm chronically prone to doing Confused ). My apologies, Mavrothal! Embarassed Embarassed

And got it, thanks... sounds like a fantastic idea - a real (end user) labor, worry and bandwidth saver. Would be great to see this process implemented!

Bob
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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: 13 (0.0118s) ][ GZIP on ]