‘localyum’ Alias…

Home » CentOS » ‘localyum’ Alias…
CentOS 6 Comments

This alias should be a great default addition to the bashrc… as it helps install packages to a CentOS system from the mounted install CD before you get networking up and running…

alias localyum=’yum –disablerepo=* localinstall’

Does Red Hat care about Requests for Enhancement? or is filing a bug pointless?

FC

6 thoughts on - ‘localyum’ Alias…

  • 2012/7/23 Fernando Cassia :

    Since the latest version of yum obsolete (in Fedora at least so I
    believe in CentOS it is/will be the same) the localinstall option, I
    believe that using this alias is useless.

    Fabien

  • Little old thread, but needs answer for future reference.

    “yum install ” works, and I think it worked/works on CentOS 5.x. I
    stumbled on this while installing dependencies for packages I
    recompiled. I was installing while in directories with rpm file and using wildcards in yum install command.

    Ljubomir Ljubojevic
    (Love is in the Air)
    PL Computers Serbia, Europe

    Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman… StarOS, Mikrotik and CentOS/RHEL/Linux consultant

  • Thanks. I wasn´t aware of this. Luckily if I read this correctly, the ability to install packages from a local source won´tbe hampered, it just won´t need the ´localinstall´ option…

    FC

  • But the removal of localinstall doesn´t mean an easy to remember alias
    wouldn´t be of use, it´d just mean that the syntax would change to
    alias localyum=’yum –disablerepo=* ´

    ie
    localyum install /media/CentOS6/Packages/whatever.rpm

    :)
    FC

LEAVE A COMMENT