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: pgp6MdjHF8C6A.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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux