Simple Updater

Miscellaneous tools
Post Reply
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Simple Updater

#1 Post by mavrothal »

With peebee making a new puppy almost every week :-P 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. 8)
Edit: v2 checks for multiple Images/CDs
Attachments
simple_updater-2.pet
(3.39 KiB) Downloaded 158 times
Update_from_ISO.jpg
(103.79 KiB) Downloaded 677 times
Last edited by mavrothal on Fri 14 Sep 2018, 12:45, edited 3 times in total.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

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
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 :shock:
YaPI(any iso installer)

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#3 Post by rockedge »

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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

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.
Attachments
snappie.png
Updated 2018-09-15
(8.55 KiB) Downloaded 375 times
switcheroo-1.1.tar.gz
(798 Bytes) Downloaded 173 times
Last edited by rcrsn51 on Sun 16 Sep 2018, 13:22, edited 3 times in total.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#5 Post by mavrothal »

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" :D
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#6 Post by rockedge »

rcrsn51 Thank you! the program is exactly what I was looking for

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: Simple Updater

#7 Post by peebee »

mavrothal wrote:With peebee making a new puppy almost every week :-P
Not "new" - just updates .....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Simple Updater

#8 Post by mavrothal »


== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

Re: Simple Updater

#9 Post by Moat »

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/zestyp ... c/updates/

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

Bob

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Simple Updater

#10 Post by mavrothal »

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/zestyp ... c/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.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#11 Post by Moat »

:lol: :lol: Well - if that's the worst mistake you've made lately, you're actually doing pretty damn good! :lol:

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: Simple Updater

#12 Post by rcrsn51 »

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.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#13 Post by mavrothal »

Moat wrote::lol: :lol:
I guess I was not clear enough. :roll:
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 :D
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
Moat
Posts: 955
Joined: Tue 16 Jul 2013, 06:04
Location: Mid-mitten

#14 Post by Moat »

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

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

Post Reply