[haiku-development] Package management: update / upgrade

  • From: Dancsà RÃbert <dancso.robert@xxxxxxxxxxxxx>
  • To: <haiku-development@xxxxxxxxxxxxx>
  • Date: Tue, 20 Nov 2012 01:32:51 +0100

Hello

I have 2 ideas for the Package Management:

- Update any package / file with 'update link' attribute. The PM may use a quick query for 'update link' attributes at start, and based on the softwares with 'update link' it can build a list for updatable softwares. And if we click on a "Find updates" button, than it will search for update for all softwares in the list. So, the Haiku's PM can search for updates for 3rd party software's (or documentations or any file) too. For example: if I have an application (/boot/apps/MyApp/App) with and attribute "Update link" = "http://www.myserver.com/MyApp/App.zip";, the PM can download and extract it. We can also track the version changes too: (for example) at start the PM will get my app's version. When the user click on the "Find updates" button, the PM will download the "http://www.myserver.com/MyApp/App.version"; file, witch may contain the version and some description too. So, the PM can compare the versions, and the user may see if tere is an updated version of the application.

- Upgrade OS: just download the latest files ~ install from the internet. There would be a Haiku (file) server where are the latest OS files. So, the user just press a button ("Upgrade / Re-Install"), and the PM will download (copy) all files from the server to local. This would be as the same as we install from a CD (just copy the files from the CD to the BFS partition). This can be a selectable option too in the Installer's "Install from" menu. Of course it may create a backup of the original folders (like apps.old, home.old).

What do you think? Are these usable ideas?

dsjonny


Other related posts: