setting up yum on Fedora 7 (f7) for UCI users

warning

this page is for Fedora 7 only. click here for a list of yum setup instructions on other versions of Fedora.

introduction

once you've got your Fedora 7 system set up, the very first next step is to get it updated with all the latest versions of the system's programs. on fedora, these programs come in packages, called rpm's. to get all the latest/update rpm's, fedora uses a program called yum(1) to download the update rpm's from repositories -- specially configured FTP sites. there are many repositories around the planet which hold copies of the same update rpm's. these are called mirrors. thanks to the efforts of our own people over at NACS, UCI has a server set up with mirrors of the two most important repositories: fedora and fedora-updates.

obviously, it's better to download the new rpms from a yum repository mirror nearest you, since some of the rpm's can be large, and the network can bog down outside UCI. so for machines at UCI, this is ideal: your system will update itself quite quickly.

it is assumed you are doing all of the following as root.

point your yum to UCI

update your system

you can now update your system by downloading and installing all the latest versions of the rpm's on your system. (the first time you do this there will be many packages to update, and it could take quite a while, so just go get something to eat and let the system run and do its thing):

$ yum -y update

install other RPMs

any time you want a new rpm from one of the above repositories, you can just run yum to do so. yum will automatically download and install the rpm. you don't need to know which repository the rpm comes from. excellent, eh?

configure yum to automatically update your system daily

if you want to make yum run automatically, then perform these steps:

  1. check that you have the yum-updatesd rpm installed on your system (and install it if it is not):
    $ yum -y install yum-updatesd
    
  2. check that the daemon (service) is on for runlevels 3 through 5:
      # chkconfig --list yum-updatesd
      yum             0:off   1:off   2:off    3:on    4:on    5:on    6:off
    

    if you get an off on any of the runlevels 3 through 5, then run this to turn yum on automatically each day:

      # chkconfig --levels 345 yum-updatesd on
    
  3. edit /etc/yum/yum-updatesd.conf to tell the daemon how you want it to run. In my case, I changed this:
    # automatically install updates
    do_update = no
    # automatically download updates
    do_download = no
    # automatically download deps of updates
    do_download_deps = no
    

    to this:

    # automatically install updates
    do_update = yes
    # automatically download updates
    do_download = yes
    # automatically download deps of updates
    do_download_deps = yes
    
  4. don't be afraid to check into the fine manuals:
    $ man yum-updatesd
    $ man yum-updatesd.conf
    

footnotes

(1) for those who are not familiar with yum, here are some resources:


please write me at jas at uci.edu with any questions, suggestions, improvements or corrections. thanks. --jeff stern.

Valid XHTML 1.1!