Updating your container using Yellowdog Updater, Modified (YUM)

Ops Center Administrator Getting Started Guide

Version
10.8.x
File Size
916 KB
Audience
anonymous
Part Number
MK-99ADM000-13

Update your container using Yellowdog Updater, Modified (YUM).

Complete the following steps to use YUM to update your container:
  1. Edit the YUM configuration file:
    If you need a proxy server only, without a user, add the following line to the [main] section of the /etc/yum.conf.
    PROXY=http://your.proxy.server:port
    If the proxy requires a user name and password, add the following lines to the yum.conf file.
    proxy_username=yum-user 
    proxy_password=yum-user-password 
    
  2. Search for the container that requires updating:
    docker exec -it container_id bash
  3. Save the repository.
    cd /etc/yum.repos.d
    mv hv.repo hv.repo.old
    touch hv.repo
  4. Copy the following contents to /etc/yum.repos.d/oracle-linux-ol7.repo:
    [ol7_latest]
    name=Oracle Linux $releasever Latest ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/latest/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    [ol7_u0_base]
    name=Oracle Linux $releasever GA installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/0/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u1_base]
    name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/1/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u2_base]
    name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/2/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u3_base]
    name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/3/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u4_base]
    name=Oracle Linux $releasever Update 4 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/4/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u5_base]
    name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/5/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u6_base]
    name=Oracle Linux $releasever Update 6 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/6/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u7_base]
    name=Oracle Linux $releasever Update 7 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/7/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u8_base]
    name=Oracle Linux $releasever Update 8 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/8/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u9_base]
    name=Oracle Linux $releasever Update 9 installation media copy ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/9/base/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_optional_latest]
    name=Oracle Linux $releasever Optional Latest ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/optional/latest/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_addons]
    name=Oracle Linux $releasever Add ons ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/addons/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_MODRHCK]
    name=Latest RHCK with fixes from Oracle for Oracle Linux $releasever ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/MODRHCK/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    priority=20
    enabled=0
    [ol7_leapp]
    name=Leapp Upgrade Utilities for Oracle Linux $releasever ($basearch)
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/leapp/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_latest_archive]
    name=Oracle Linux $releasever Latest ($basearch) - Archive
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/latest/archive/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_optional_archive]
    name=Oracle Linux $releasever Optional ($basearch) - Archive
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/optional/archive/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_security_validation]
    name=Oracle Linux $releasever Update 3 ($basearch) Security Validations
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/security/validation/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
    [ol7_u8_security_validation]
    name=Oracle Linux $releasever Update 8 ($basearch) Security Validations
    baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL7/8/security/validation/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=0
  5. Perform software updates.
    yum install bind-utils
  6. Validate the domain.
    nslookup
    [root@hid yum.repos.d]# nslookup example.com
    Server: 172.17.24.20
    Address: 172.17.24.20#53
    
    Non-authoritative answer:
    Name: example.com
    Address: 10.7.42.0
    Name: example.com
    Address: 10.7.7.33
Your container is updated.