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 Sat 25 Oct 2014, 15:08
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Puppy Packages Updater Utility
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Sat 09 Aug 2014, 13:10    Post_subject:  Puppy Packages Updater Utility
Sub_title: write a puppy update manager
 

Hi!

I'm going to write a Puppy Update Manager on Github:
https://github.com/linuscl/updatepuppy

If somebody have time, he/she can help to create the program and become a contributor... Rolling Eyes

The manager is written in Python 3 and Tkinter.

Thank you!

Edited_time_total
Back to top
View user's profile Send_private_message 
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Mon 18 Aug 2014, 03:31    Post_subject:  

I've deleted the repository.

I'll write a updatemanager in bash script.
I think this is better for Puppy Linux.
Back to top
View user's profile Send_private_message 
bigpup


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

PostPosted: Mon 18 Aug 2014, 04:47    Post_subject:  

Slacko 5.7 has an Update Manager.

You may want to look at it to see how 01micko did it.

I think you are going to have problems making one that will work on different versions of Puppy.
The main problem will be:
What do you use as the source of the updates?

Slacko Puppy is based on stuff from Slackware 14, so it uses the Slackware repositories.

Precise Puppy uses stuff from Ubuntu.

Other Puppy versions use stuff from other repositories.

_________________
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 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Mon 18 Aug 2014, 04:52    Post_subject:  

linus.cl wrote:
I've deleted the repository.

I'll write a updatemanager in bash script.
I think this is better for Puppy Linux.

Yes, Python sucks.

Java did never made any problems like Python does.

Have you seen this?

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Mon 18 Aug 2014, 12:19    Post_subject:  

Repository for the manager:

http://distro.ibiblio.org/puppylinux/pet_packages-slacko/
Back to top
View user's profile Send_private_message 
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Mon 18 Aug 2014, 13:50    Post_subject: Which of these is this thread themed?  

@RSH draws attention to a link, by @ASRI éducation, which can be of great help to distro developers and Puppy LInux in general. ===> http://murga-linux.com/puppy/viewtopic.php?p=709716#709716. This offer a "pull" options for system's users to acquire needed service from the developer-contributer community.

Questions
  1. Does this thread draw attention for a package manager?
  2. Does this thread draw attention, instead, for giving Puppy distro developers a common means for updating their distro system(s)?
    • If so, should the means be a "pull" updater or should it be a "push" updater?
    • If so, can the manner of alerting be something as simple as an icon barking it way onto the taskbar and disappearing after update(s) applies?
    And, how can this be moved forward for all developers to have understanding of benefit and have access commonly across new PUPPY Linux builds?
ALSO, although it does NOT havea thread dedicated to its purpose, @ETP has a method he has used in his BLUE distro where he provides service to its users.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
bigpup


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

PostPosted: Mon 18 Aug 2014, 18:42    Post_subject:  

linus.cl wrote:
Repository for the manager:

http://distro.ibiblio.org/puppylinux/pet_packages-slacko/

This is not what is used for the Slacko 5.7 Updates Manager.
It gets information and updates from the Slackware 14 repository here:
ftp.osuosl.org/pub/slackware/slackware-14.0/patches/
It relies on updates to Slackware 14.

_________________
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 
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Tue 19 Aug 2014, 01:27    Post_subject:  

I'd like to create a better update manager for puppy.

Program structure:

1. Ask for a database update.
2. ( update all database )
3. read files: /root/.packages/user-installed-packages /root/.packages/woof-installed-packages
4. read database files: /root/.packages/Packages-*
5. compare the versions
6. show the packages with different versions
7. try to download them from the repos in this files:
/root/.packages/DISTRO_COMPAT_REPOS
/root/.packages/DISTRO_PET_REPOS
8. Install the downloaded packages with petget
Back to top
View user's profile Send_private_message 
mavrothal


Joined: 24 Aug 2009
Posts: 1702

PostPosted: Tue 19 Aug 2014, 03:51    Post_subject:  

Sounds like a plan Very Happy
Are you planing to use the existing PPM GUI/install infrastructure or start from scratch?
If you use PPM you may just want to couple this with the database update process/button and present a window with all the "upgradable" packages.
And then set a daemon to remind user for database update or better yet do it in the background with low priority (will very much slow down the machine otherwise).
Also consider that /root/.packages/Packages-* will contain multiple versions of a package not necessarily compatible with the current puppy and not necessarily versioned the same way.
Finally, I would rather avoid downloading any package without the user authorisation

PS: Though pointed a couple of times already, have you seen the Puppy Online Updater?

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send_private_message 
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Tue 19 Aug 2014, 05:54    Post_subject:  

I've tried it yet.

The POU install only test packages! Crying or Very sad Crying or Very sad Mad Crying or Very sad

The packages are also very old! ( 2013 ) Crying or Very sad
Screenshot.png
 Description   
 Filesize   46.5 KB
 Viewed   206 Time(s)

Screenshot.png

Back to top
View user's profile Send_private_message 
gcmartin

Joined: 14 Oct 2005
Posts: 4368
Location: Earth

PostPosted: Tue 19 Aug 2014, 06:08    Post_subject:  

Thanks @linus.cl for clarifying. What you are referring to might better be termed "Puppy Packages Updater Utility" which is a method to bring all packages from their original distro release levels to most current available. You may want to consider going to your first thread and renaming this thread to reflect your effort so that this is not confused with existing name for utilities in Puppyland which are aimed at allowing service related fixes to be applied to a distro

There have been known cases in the past when a distro developer has had to back-level package(s) because of either an incompatibility or its current release fails on a given kernel/library level. This is one area that your new utility may need to take into account as it can produce some system hardships if is "blanketly" applied.

Hope this is helpful info.
BTW: The author of POU has stated that he has a newer version soon to be posted. Seen here

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Tue 19 Aug 2014, 06:28    Post_subject:  

Thank you very much, gcmartin! Smile Smile Smile Smile Smile Smile

I've begun to write a bit code.

How can I continue?

Should I put this on Github?

@mavrothal : I'd like to use the infrastructure of the PPM.
updatepuppy.tar.gz
Description 
gz

 Download 
Filename  updatepuppy.tar.gz 
Filesize  806 Bytes 
Downloaded  31 Time(s) 
Back to top
View user's profile Send_private_message 
ASRI éducation


Joined: 09 May 2009
Posts: 2549
Location: France

PostPosted: Tue 19 Aug 2014, 09:48    Post_subject:  

linus.cl wrote:
I've tried it yet.

The POU install only test packages! Crying or Very sad Crying or Very sad Mad Crying or Very sad

The packages are also very old! ( 2013 ) Crying or Very sad

Hello linus.cl,
The package POU is old (v0.0.6). Now, I use v0.0.9. As soon as I have some free time, I put the latest version online.

Packages are old because it's been a few months since I use them.
Important Notes:
- These packages are empty, they are only examples to test POU without modifying the existing installation
- Each developer puplet must obviously create specific packages related to the version of the OS used

Cordialement,

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send_private_message Visit_website 
linus.cl

Joined: 02 Apr 2014
Posts: 88
Location: Germany

PostPosted: Tue 19 Aug 2014, 12:05    Post_subject:  

How can I compare the version of the packages in my bash script? Rolling Eyes
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 19 Aug 2014, 21:49    Post_subject:  

The version number is usually included in the .pet's file name like: gnewpet-6.5.pet.

Here is an Example of how to get date and time of a file.

Maybe this is of some help somehow.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0817s ][ Queries: 13 (0.0040s) ][ GZIP on ]