[Yum] Using yum to download updated RPMs

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

 



Hello,

I would like to know if someone has already implemented two features in
yum (or in some other script that uses yum's base python code):
1) Download rpm's only, and not install them;
2) Disregard current's system packages (RPM database) when finding
dependencies, i.e., download ALL dependencies of requested packages.

Why would I want it? My motivations are to be able to easily build an
installation CD, that would:
a) Contain only the packages you want (the ones you specify for yum to
download in the command line), and the packages upon which these depend;
b) Contain updated packages at the time of the generation of the ISO;
c) May contain packages from multiple repositories.

If I had such a script, I could build a "bare bones" list of packages,
and tell yum (or this script that uses yum's core) to download the
packages, and based on this "directory" of downloaded RPMs, I could use
anaconda-runtime tools to build hdlist & hdlist2, I could also
auto-generate a stripped down comps.xml, and a basic ks.cfg that would
kickstart and install all the stuff, burn it into an ISO, and use it for
installations.

My main motivations for using updated RPMs is that, at first, I wouldn't
have to update the server as soon as I've installed it (at least for
installations soon after burning the ISO), and also, dependencies are
sometimes wrong, and are fixed in updated packages. For example, package
"rhpl" from FC3 (rhpl-0.148-1.i386.rpm) depends on synaptics, that for
its time depends on X libraries. I don't think it's needed in a server
install, but "rhpl" is included in base. The updated package (rhpl-0.148.1-2)
removes that dependency, indeed. Building ISOs from updated packages
would fix these dependency issues, having only dependencies from the
updated packages.

I don't know if someone has already done something like that, I tried to
program it, but I'm no python programmer... So it's kind of hard for me.
If someone can give me the hints, I would be very pleased to try to find
myself for implementing it.

My motivations for using yum are:
a) Share yum's repositories to build the ISOs, since it's easy for me to
maintain a yum repo for my own packages (I will do it anyways to update
rpms in my already installed servers);
b) Use yum's repos configuration, so that I wouldn't have to specify it
again;
c) This is the main one ;-) That is, to use yum's code for parsing xml's,
checking dependencies, and downloading rpm files. It already does most
of what I want, it's only matter of some tweaks to make it do it!

I don't mean for it to be necessarily tied to the "yum" command that
already exists, this could be implemented as a separate script that only
would use /usr/share/yum-cli/cli.py and other objects/modules...

I thank you in advance for any help on this matter!

Regards,
Filipe


[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