[Rpm-metadata] metadata list and discussion over tapas tonight
James Olin Oden
joden at malachi.lee.k12.nc.us
Sat Aug 9 02:38:05 UTC 2003
On 5 Aug 2003, Joe Shaw wrote:
> On Tue, 2003-08-05 at 08:11, Peter Bowen wrote:
> > These are the main things that I see that Red Carpet uses that are not
> > directly found in RPM headers. We also have a couple of internal use
> > fields that are essentially opaque data to the client, plus some fields
> > that are duplicated from the rpm headers. As long as we either allow
> > for extra fields that some clients may not know about, or allow for XML
> > Namespaces, extra data in the XML should not be problematic.
>
> I agree with everything Peter said. I would ask that we consider
> keeping around information about older packages, at a minimum so we can
> determine importance, but more importantly for a downgrade or rollback
> situation. Keeping around all that info might bloat things quite a bit,
> though, maybe we could keep it in a separate file? I'm not sure.
>
While I think it could be usefull to have old packages around for the
purpose of rollback, this would be a different kind of rollback than
RPM's transactional rollback. Presently, as you probablly all know,
when a system is using rpm's transactional rollbacks, before a package
is erased, rpm repackages the package to be erased with bits as they
are on the system. This is important, as the current config files
are captured (and any non-config file that might have been modified)
in this repackaged package, such that when a rollback occurs file
is put back in place as it existed at the time of the erasure.
Because of the source of repackaged packages, there really isn't a need
to go out on the internet to pick up the packages needed for a rollback
as they are already there on the users system. That said, I could see
someone who wanted to use a different policy of only rolling back
to real packages, and restore config information via backups. So
would this be the reason to keep metadata around concerning old packages
if you were keeping it around for rollback purposes (i.e. in order
to allow for an alternative policy/mechanism for rollbacks)?
If someone wanted to take this approach, which would certainly require
not using rpm's internal rollback functionality, but building a
rollback transaction manually, then it would be required that some
sort of information be stored locally on the client system. The reason
is that, it is an installer can't make guesses about what would be
an appropriate previous package, but instead must have a record on
the system of what packages where installed previously, and then
go and pickup the appropriate packages from whereever it can
find them.
So, if you did want to allow for this sort of mechanism for rollback,
would you want to define the local metadata format for keeping track
of what previous packages were upgraded with what rpm transaction?
I could see that being usefull, in that one could conceivably perform
a rollback using this policy of getting the real original package
with a completely different program than the one with which the upgrade
was performed.
Anyway these are just some questions to ponder in the rollback arena
as it may apply to rpm metadata format. Personally, I prefer the strategy
rpm presently uses of repackaging the packages, but the other approach
would save on disk space and it may in some cases be the preferred
approach.
Cheers...james
More information about the Rpm-metadata
mailing list