[Yum] determining if a package needs to be updated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-TIF0USnlsv4NvMsLtl0X
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,
 Here is what I did for determining if a package should be updated. I'd
like for comments on this mechanism.


if there is pkg is installed that we have a header for then look through
all our installed pkgs and return the highest version of any arch.

If there is more than one arch of the highest version return the
bestarch.

Return the same information for the available headers/pkgs

Compare the version information for the highest version and bestarch in
the rpmdb and the highest version and bestarch in the available headers.

 if the available header is newer then mark it to be updated.

Catches:

this means that if you've installed kernel.i386 on an i686 machine. When
new kernels become available if there is a kernel.i686 available then it
will be installed.

I think this makes sense and is the "correct" way to handle it - but I'd
like to hear what others say.

-sv








--=-TIF0USnlsv4NvMsLtl0X
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+W+++1Aj3x2mIbMcRAn02AJ0ZPF29g6YI9hROBkRqtug+RIZgeACgjTnF
vU4arr6f6fPmjIS4qZeieZU=
=iHgU
-----END PGP SIGNATURE-----

--=-TIF0USnlsv4NvMsLtl0X--



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux