Newest rpm from the channels
Pascal Bleser
pascal.bleser at skynet.be
Thu Nov 23 08:28:42 PST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andreas Bach Aaen wrote:
> I want to get the name of the newest available rpm. I don't want to install
> anything, and I don't want to know which other rpms to install.
>
> smart install -o rpm-root=/someemptyplace -o rpm-nodeps=true --urls kernel
>
> Now I want to get output like:
>
> http://somepath/kernel-2.6.19.3-0.5.i586.rpm
>
> I fact I get a huge number of rpms listed. How do I get the expanded name of
> the newest available, without checking the dependency graph?
>
> It seems that the nodeps option doesn't do anything
nodeps only has an impact on the rpm installation transaction, doing the
same as "rpm --install/upgrade --nodeps".
I've implemented something similar, a "newer" command that shows what
packages are upgrade candidates (only upgrade, not install).
Not tested all that much yet, but doesn't do any harm.
You can grab it from here:
http://linux01.gwdg.de/~pbleser/files/smart/newer.py
Just copy it under
PYTHON_PREFIX/site-packages/smart/commands/newer.py
and run it as "smart newer" (no need to be root)
It performs an upgrade computation but doesn't actually installs the
upgrades and just outputs the upgrade candidates in an ASCII-art table.
Maybe you can use that as a base to implement what you're looking for.
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\ <pascal.bleser at skynet.be> <guru at unixtech.be>
_\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFZcw6r3NMWliFcXcRAtPUAJ9mp5gF9JusjXFIjroHuXfKbe8L8ACfbMdz
qTTCp05KmJoE3wUzqEtle5M=
=HvuX
-----END PGP SIGNATURE-----
More information about the Smart
mailing list