Re: How to install the LibreOffice beta 3 rpm package

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

 



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

Attachment: pgpw9VYqZicoN.pgp
Description: PGP signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux