How to install the LibreOffice beta 3 rpm package
Todd Zullinger
tmz at pobox.com
Sun Nov 28 14:59:42 UTC 2010
Hiisi wrote:
> It seems to me that yum apriori tries to localinstall from current
> directory and
> if (it fails)
> then {
> install from repos
> }
> Am I correct here?
No quite. The code from yum-3.2.28 looks like this:
for arg in userlist:
if (arg.endswith('.rpm') and (yum.misc.re_remote_url(arg) or
os.path.exists(arg))):
self.localInstall(filelist=[arg])
continue # it was something on disk and it ended in rpm
# no matter what we don't go looking at repos
try:
self.install(pattern=arg)
...
So, yum only attempts to use localinstall if the argument given a)
ends with .rpm and b) is either a url or an existing file¹.
¹ Technically using os.path.exists() means that if you had a dir named
foo.rpm and passed that as an argument to yum install, it would
attempt to localinstall it and fail with the error "Cannot open:
foo.rpm. Skipping."
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some mornings it just doesn't seem worth it to gnaw through the
leather straps.
-- Emo Phillips
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20101128/321c2a0d/attachment.bin
More information about the users
mailing list