Red Hat Training

A Red Hat training course is available for RHEL 8

2.3. 보안 업데이트 자동 설치

다음 절차에 따라 보안 업데이트로 시스템을 자동으로 업데이트합니다.

사전 요구 사항

  • 호스트에 연결된 Red Hat 서브스크립션.

절차

  1. yum을 사용하여 dnf-automatic 설치

    # yum install dnf-automatic
  2. y를 눌러 설치를 확인하고 시작합니다.

    ...
    Transaction Summary
    ===========================================
    Upgrade  ... Packages
    Total download size: ... M
    Is this ok [y/d/N]: y
  3. 선택한 텍스트 편집기에서 /etc/dnf/automatic.conf 파일을 엽니다. 예를 들면 다음과 같습니다.

    # vi /etc/dnf/automatic.conf
  4. [commands] 섹션에서 upgrade_type = security 옵션을 구성합니다.

    [commands]
    #  What kind of upgrade to perform:
    # default                            = all available upgrades
    # security                           = only the security upgrades
    upgrade_type = security
  5. systemd 타이머 장치활성화
# systemctl enable --now dnf-automatic-install.timer

추가 리소스

  • DNF-automatic(8) 도움말 페이지