Skip to content
Search Anolis OS

    Browse this documentation

    Anolis OS first-hour baseline: the 12-step checklist after install

    The 12-step baseline ran once on each of two 23.5 machines (manual install / kickstart install) on 2026-11-06 (two 12-step run.json records). Applies to the 23 line; 8-line differences (dual kernel, EPEL enabled by default) are noted inline.

    The baseline (12 steps: command + pass criteria)

    Section titled “The baseline (12 steps: command + pass criteria)”
    Terminal window
    # 1 distro identity and kernel line
    cat /etc/os-release | grep PRETTY # Anolis OS 23.5
    uname -r # -an23 = ANCK; record it in the baseline
    rpm -q anolis-release # anolis-release-23.5-15.an23 (measured)
    # 2 confirm the virtualization environment
    systemd-detect-virt --vm # kvm (most cloud instances are kvm)
    # 3 repo reachability (23-line os repo)
    curl -s -o /dev/null -w '%{http_code}\n' -m 15 \
    https://mirrors.openanolis.cn/anolis/23/os/x86_64/os/repodata/repomd.xml # 200
    # 4 clock sync
    timedatectl | grep synchronized # yes (NTP synced)
    # 5 the SELinux decision (Anolis-specific: the default is NOT enforcing)
    getenforce # installed=Permissive; cloud image=Disabled
    grep ^SELINUX /etc/selinux/config
    # Decision: for production either set enforcing and validate the policy, or record
    # in writing why permissive is acceptable
    # 6 firewall
    systemctl is-active firewalld # installed=active; cloud image=inactive
    firewall-cmd --list-all # tighten the allow list as needed
    # 7 repos
    dnf repolist # os + updates (dual repo, measured)
    # 8 metadata refresh
    sudo dnf -y makecache # sub-second when healthy (measured)
    # 9 update check (exit semantics: 0 = none, 100 = updates available)
    sudo dnf -q check-update; echo "exit=$?"
    # 10 kernel package inventory
    rpm -q kernel # current kernel packages; upgrades live in the kernel page
    # 11 baseline tools
    for c in curl wget vim tar chronyc; do command -v $c || echo "$c absent"; done
    # 12 hostname and timezone
    hostnamectl # consistent with CMDB / orchestration
    1. SELinux: installed defaults to permissive and cloud images to Disabled — neither is enforcing. Before going live, either enable enforcing (with a policy) or write the exemption reason into the baseline table; never leave it as “never looked”.
    2. Record the kernel version: the installed kernel drifts with the install moment (measured: two machines on the same day differed by one minor version), so the baseline table must include uname -r; on the 8 line also record the ANCK/RHCK track (uname suffix -an8 vs -el8).

    How the first hour differs from other distros

    Section titled “How the first hour differs from other distros”
    StepAnolis 23Alma/Rocky 10
    SELinux defaultpermissive (installed) / Disabled (cloud)Enforcing
    firewalld defaultactive (installed) / inactive (cloud)active
    Kernel lineANCK only (6.6)RHEL kernel (6.12)
    Reposos + updatesappstream/baseos/crb/extras