Update mode
this is basically about downloading an archive with all latest packages from the repo, and "pkg update"-ing those that are outdated on the target system. FDNPKG allowed for such operations, pkg doesn't. The difference is that pkg (nor pkgnet) do not have any logic for packages comparision, etc. because it's all implemented on server side to make it easy for low-end systems.
a realistic approach could be to publish a tar or zip that contains the latest ver of each repo package, along with a simple listing file, like a text file "pknam = version" that lists all versions. Then, pkg would need to read this file and compare "version" with locally installed packages. If different -> propose to update the package.
Alternatively: run pkg update on all packages (if package not installed, update will abort on its own). Perhaps some some switch could be used to tell pkg not to update a package if the version is exactly the same already (or make it the default behavior, with some --force option to make it update even same-version packages).
Reply To mateuszviste
this is basically about downloading an archive with all latest packages from the repo, and "pkg update"-ing those that are outdated on the target system. FDNPKG allowed for such operations, pkg doesn't. The difference is that pkg (nor pkgnet) do not have any logic for packages comparision, etc. because it's all implemented on server side to make it easy for low-end systems.
Not sure, we are talking about the same. I mean:
I only talk about core packages. I don't care about additional packages installed by the user. That would be another feature request, I already have in mind. ;-)
a realistic approach could be to publish a tar or zip that contains the latest ver of each repo package, along with a simple listing file, like a text file "pknam = version" that lists all versions. Then, pkg would need to read this file and compare "version" with locally installed packages. If different -> propose to update the package.
Um...
Alternatively: run pkg update on all packages (if package not installed, update will abort on its own).
Yes, something like that. For each package in install.lst, e.g., amb, attrib, chkdsk, run 'pkg update'.
Perhaps some some switch could be used to tell pkg not to update a package if the version is exactly the same already (or make it the default behavior, with some --force option to make it update even same-version packages).
Yes, make it the default behavior to not update a same-version package, but introduce a new option --force or --repair to pkg. We already talked about a 'check package health' action some weeks ago. Maybe you remember.
Updating packages over the net is nice, but does SvarDOS offer an update mode for the installer? Or is there any interest?
I mean something like: