Re: How to install the LibreOffice beta 3 rpm package



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: pgpDMxIGArCmi.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


Relevant Pages

  • Re: [opensuse] openSUSE (11.0) getting worse with the influence of KDE4 - Part #1: zypper
    ... Use either 11.0 or factory, ... If you add repos to 11.0, ... when I installed v11.0 (or after upgrades). ... But yast/zypper are just tools to install things. ...
    (SuSE)
  • Re: Trying to get PackMan to install GCC
    ... Repos add many advantages for one or two central locations, ... location to your package manager. ... install it and its dependencies no matter where it came from, ...
    (comp.sys.acorn.apps)
  • Re: MAXIMA on WINDOWS XP
    ... -> fails ... >>> and did you install from precompiled rpms or did you compile it? ... >>> If you can't find the control panel you might try ... > I'm guessing the Windows XP Firewall, introduced with SP2, ...
    (sci.math.symbolic)
  • Re: Downloading 11.4
    ... AIUI the fix is already in the repos for that - the existing LZMA ... DVD as a local repo for 'zypper dup' - maybe some people with bad ... but even then they can do a straight install from ...
    (alt.os.linux.suse)
  • Re: DVD iso
    ... > There's another trick I intend to try, next time I install a new version ... for Fedora Core 2 and supports remote installs with PXE enabled NIC. ... You don't need the ISOs to mirror the repos. ... packages) also the i386 and x86_64 arch types. ...
    (Fedora)