Friday, July 08, 2011

YUM & RedHat


  1. Create a <RPMS> directory and copy rpms to this directory. Make sure you copy also the repodata.

  2. Generate repo File
    # vi /etc/yum.repos.d/file.repo

    [base]
    name=Red Hat Enterprise Linux $releasever - $basearch - Base
    baseurl=file://<RPMS>
    gpgcheck=0
    enabled=1

  3. yum should be working now


Replace <RPMS> with the path of your repository.

Labels: