yum

yum

http://yum.baseurl.org/

Yellowdog Updater Modified

Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm. Yum has a plugin interface for adding simple features. Yum can also be used from other python programs via its module interface.

Configuration

 when modifying yum.repos.d/

1. when changing the yum.repos.d

  yum clean all
  yum clean metadata
  yum list all

Command

 basic commands
  1. cheat sheet

    https://access.redhat.com/sites/default/files/attachments/rh_yum_cheatsheet_1214_jcs_print-1.pdf
  2. yum upgrade and yum update will perform update to the latest version of package, but:

    sudo yum update   # will preserve obsolete packages
    sudo yum upgrade  # will delete obsolete packages
 group

The yum groupinstall … command installs a bundle of packages that are designated as a group so that you don't need to install a bunch of individual packages yourself to have all of the features. So yum groupinstall "Engineering and Scientific” would install a bunch of packages that someone decided should be used on engineering and scientific workstations.

  1. install a bunch of packages deemed “Engineering and Scientific”

    yum groupinstall "Engineering and Scientific"
  2. would upgrade those packages if necessary (and install any new ones)

    yum groupupdate "Engineering and Scientific"
  3. would remove all of them

    yum groupremove "Engineering and Scientific"
  4. will list the possible groups

    yum grouplist
  5. will show what packages are members of groupname (you will need "quotes" if there are spaces in the group name)

    yum groupinfo groupname