[Yum-devel] Yum install myLocal.rpm support with dep checking

garbage at insitesinc.com garbage at insitesinc.com
Mon May 10 17:31:39 UTC 2004


I don't know if anyone has brought this up yet as i just started my subscription
a week ago but it thought of a useful extension for the yum program. I often
find myself downloading stray RPMS because my repositories don't always have
everything i need. 

Most of the time when i go to install these rpms i get dependencies that i need
to install first. While it is completely possible (although tedious)to “yum
install” all of them sequentially i have come up with a hopefully more elegant
solution.

If we add the ability to “temporarily mount” a specified directory as a local
repository we can place the rpm(s) needed for installation in there and run
normal commands as necessary. A few examples for consumption.

Assume myNewApp.rpm is in my /home/michael/ directory and i am using that as my
current working directory as well.

yum --local /home/michael install myNewApp
or
yum --local . update (if i already had it installed and got an updated version)

Now assume that myNewApp has 2 dependencies one of them (repoDep.rpm) is in one
of my repos but the other is specifically built for this application (like
xplanet-maps, etc) and i have downloaded it along with my original rpm and
placed it in my same home directory.

Hopefully you can follow that yum would add the rpms form the locally mounted
repository directory and allow you to interact with them as you would any other
package. However once the yum operation is over it forgets about that new local
repo directory and the package becomes an “orphan” as usual.

Again sorry if this has been discussed before but i think many “slightly
advanced” users would appreciate the capability. Ill be tuning in to see any
responses.

 

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Yum-devel mailing list