Login
Username:

Password:


Lost Password?

Register now!
Main Menu
Who's Online
19 user(s) are online (16 user(s) are browsing Forum)

Members: 1
Guests: 18

mbrantley, more...

Browsing this Thread:   1 Anonymous Users



(1) 2 3 4 ... 6 »


Let's Talk AROS Package Manager
Home away from home
Joined:
2004/3/29 15:59
From Tequesta FL USA
Group:
Editors
Posts: 1690
Level : 34
HP : 168 / 840
MP : 563 / 15558
EXP : 63
Offline
It's really getting to the point we are going to need a package manager so we can eventually do live updates. Let's talk what we want out of a APM and how the objectives should be worded.

Perhaps use dates of packages instead of version numbers?

Biggest thing I want to see, deps handling for install or removals.

Option to override the default install location.

APM should be arch aware.

Dammy

Posted on: 2008/1/3 5:57
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Home away from home
Joined:
2005/2/2 20:18
From Grosseto, Italy
Group:
Registered Users
Posts: 331
Level : 16
HP : 0 / 399
MP : 110 / 6409
EXP : 97
Offline
First of all we should have a main rep where we can search and download APM files of available software, then I think we should have something like

> APM install mylittleproggy.APM
> APM update mylittleproggy.APM
> APM remove mylittleproggy.APM

We should define the APM format first, we could have for example something like this:


[REPOSITORY]
 - 
Package <PackageFilename>
 - 
MainRep <Download_Location>
 - 
Mirror <Mirror_Location1>
 - 
Mirror <Mirror_Location2>
 - 
Mirror ...
[
RELEASE]
 - 
ReleaseDate <YYYY.MM.DD>
 - 
Version <Version>
 - 
SubVersion <Subversion>
 - 
License <LicenseType>
 - 
ReleaseDesc <Brief_Release_Description>
[
SOFTWARE]
 - 
Author <Author_Name>
 - 
URL <Main_Project_URL>
 - 
Contact <Author_EMail>
 - 
Name <Program_Name>
 - 
Description <Program_Description>
[
DEPENDANCIES]
 - 
Dependancy <Depend1> <MinVersion>            ExamplemyMegaLib.APM
 
Dependancy <Depend2> <MinVersion>
 - 
Dependancy ...
[
INSTALL]
 - 
Ive no idea heremaybe some sort of installing script...


then we should have a software database for the installed software with records like:

PackageName
 SoftwareName
 ReleaseDate
 Version
 SubVersion
 MainRep
 Mirrors
 InstalledFiles
 InstallDate


we should have an "installed-files" database too, in order to delete files when no apps need then anymore, something like:

FileName
 ReferencesCount
 UsedBy


When we copy a new file <ReferencesCount> will be increased, when we remove it, decreased. When the last uninstallation process "see" that the counter is 1 will remove the file from the system.

This is only a 5min hope it will help


Posted on: 2008/1/3 7:01
_________________
-=] Allanon [=-
SDB & ScuiLib Projects
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Just can't stay away
Joined:
2005/4/7 18:14
From Grosseto/Milano, Italia
Group:
Registered Users
Posts: 113
Level : 9
HP : 0 / 216
MP : 37 / 3356
EXP : 65
Offline
A while ago I wrote a simple example of XML for an hypothetic package manager that used to contain pretty much all of the features you were talking about.

It was supposed to be put in a zip/lha/rar/whatever archive and read by an installer.

I'll have to double check my pc at home as soon as I'm back in Milano (now I'm in Orbetello to my parent's house) and I'll post the whole thing: I'm sure many can do what I wrote but, hey... maybe it'll simplify someone's life.

Anyway: planning the behavior and features of a package manager is quite of a complex task... more than it is to actually write the code. Dependencies and system updates are very delicate subjects.

I'll keep you posted as soon as I have my old writings.

Federico

Posted on: 2008/1/3 7:25
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Just can't stay away
Joined:
2005/8/3 14:53
From Italy
Group:
Registered Users
Posts: 125
Level : 10
HP : 0 / 230
MP : 41 / 3357
EXP : 22
Offline
Quote:

Fred wrote:
A while ago I wrote a simple example of XML for an hypothetic package manager that used to contain pretty much all of the features you were talking about.


I agree! When I started to read this thread I thought immediately to a XML-based package standard.

Maybe a compressed archive which must contain some XML descriptors with mandatory and optional values (eventually overridable) and a package manager able to handle these files and keep track of installed software/libraries and dependences.

Amiga software management is so simple that I think it shouldn't be a difficult task.

Ciao!

TAD

Posted on: 2008/1/3 7:42
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Home away from home
Joined:
2005/2/6 20:57
From Poznan, Poland
Group:
Registered Users
Posts: 250
Level : 14
HP : 0 / 344
MP : 83 / 5512
EXP : 78
Offline
Agree! Time to start new Bounty :)

Posted on: 2008/1/3 23:35
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Home away from home
Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Registered Users
Posts: 860
Level : 26
HP : 0 / 631
MP : 286 / 11689
EXP : 26
Offline

Posted on: 2008/1/4 5:15
_________________
]Open in new window
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Home away from home
Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Registered Users
Posts: 860
Level : 26
HP : 0 / 631
MP : 286 / 11689
EXP : 26
Offline
For Damo ..

Heres a quick draft ..

------------------------------------------------------------
AROS Package Format and Management Tools

Provide a working environment for installing, updating and maintaining Packages on AROS platforms

Package File Format
###################

Provide a suitable "Package Format" for installing and distributing AROS software. You will neeed to provide a means for storing all a packages necessary components in a single file preferably using a standard archive file format (possibly with a custom file name extension) - which must be suitable for use withing AROS.

You should provide means for packages to describe themselves, and for them to handle scripts necessary for the Package Manager and Installer to correctly utilise the packages as described below. You must idnetify and document all the components necessary to make packages work as intended.

Packages must be provided using a namespace suitable for multiple architectures and versioning..

i.e

<package>-<version>-<aros architecture>.<package format extension>

AROS-1.0-pc-i386.apm

Package Manager
###############

Must be able to check installed Packages on an AROS system (#1) and allow users to upgrade from online sources (#2) or localy stored packages. Package Installation will involve Package Manager retrieving the correct packages (or opening on disk ones where applicable), extracting them as necessary, and passing the correct scripts to the AmigaOS/AROS Installer.

Users must be able to Install, Uninstall and Validate Installations using the Package Manager.

Dependencies for packages should be handled by the Package Manager but processed via the Installer


Package Repository
##################

Implement and document a working repository for AROS software which can be utilised by the AROS Package Manager to upgrade/install components on an AROS platform.
(#2)

Packages must be identifiable for a particular platform, installable via the package manager, and should be available via applicable software categories.

Package Installation (Installer)
################################

By providing a Front end to or by updating Installer itself, enable the Installer to handle the scripts used by the AROS Package Manager. It must be able to Check Dependencies, Install, Uninstall and Validate a Package installation (check the components are correctly installed) via standard AmigaOS style Installer scripts.

#1 preferably by storing information about installed packages in a database
#2 preferably using a distributed technology such as torrents

Posted on: 2008/1/4 10:24
_________________
]Open in new window
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Home away from home
Joined:
2004/4/12 13:07
Group:
Registered Users
Posts: 233
Level : 14
HP : 0 / 331
MP : 77 / 6100
EXP : 26
Offline
Quote:

Kalamatee wrote:

#1 preferably by storing information about installed packages in a database


I disagree here. One of the biggest gripes I have with the linux package managers is the dependency on a db. If your db breaks all your information is lost about installed packages.
We should have a mechanism where a db can be used as a cache but all the information is also available in the package directory (that is found by the environment variable). This way the DB can be rebuild if the db breaks.

Also I would like to have KISS (keep it simple stupid) as one of the requirements of the AROS package system, e.g. it should be as small as possible to do just the task it needs to do (another gripe with the linux package managers).

Also I would like the update mechanism not be reserved only for apm packages but also be usable by programs that use their own installation script.

greets,
Staf.

Posted on: 2008/1/4 14:49
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Just can't stay away
Joined:
2004/12/14 6:03
Group:
Registered Users
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 2807
EXP : 83
Offline
I hate package managers! All of them. I might get flamed for this, but this is moving away from one of the core ways of managing Amiga software.

It encourages scattering files and not knowing your system and its files. However, the actual app needs to be kept in the same location. Amiga-like?

Linux is limited by package management because there is more than one type, and because commercial apps and fringe apps end up frozen out of the 'preferred' way of installing software. Adding repositories is a kludge, and you get warnings that installing unofficial software might stop things working. Hardly friendly.

OS X does this in a much more Amiga-like way than Linux. Multiple versions of frameworks can be installed, and app bundles have a standardised layout so they still appear like a binary. Editing a XML config file would be all that's needed to point to the correct library or datatype version if the developer doesn't update the software.

Has the implications of this been serious thought about? Doing this before AROS has many apps or is entirely usable is setting a bad precedent IMHO. Thanks for listening.

Chris

Posted on: 2008/1/4 17:51
_________________
AROS - verb (Welsh)
To wait, to await, to stay, to abide
Create PDF from Post Print


Re: Let's Talk AROS Package Manager
Home away from home
Joined:
2005/3/15 20:52
Group:
Registered Users
Posts: 224
Level : 13
HP : 0 / 324
MP : 74 / 5094
EXP : 96
Offline
Quote:

clebin wrote:
I hate package managers! .........

Chris


A good start would be an OS update manager only. From memory, it was never easy updating the old Amiga OS: always a mish-mash of file copying, overwriting and re-doing custom settings.

Posted on: 2008/1/4 18:35
Create PDF from Post Print



(1) 2 3 4 ... 6 »




Post Reply
Account*
Name   Password   Login 
Message:*


You cannot start a new topic.
You can view topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1
paolone
2085
2
damocles
1690
3
nikolaos
1611
4
mazze
1263
5
clusteruk
1256
6
deadwood
1061
7
JLF65
1009
8
Manu
931
9
Kalamatee
860
10
Holley
706