Linux 软件管理:dnf 命令与模块流的深入解析
1. dnf 命令的安全性
GPG 数字签名可用于验证 dnf 更新的完整性和真实性,这与 RPM 包的验证系统相同。例如,在 RHEL 9 上首次通过网络安装新包时,执行以下命令:
# dnf install samba
下载包后,会看到类似如下消息:
Importing GPG key 0xFD431D51:
Userid : "Red Hat, Inc. (release key 2) <security@redhat.com>"
Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Importing GPG key 0x5A6340B3:
Userid : "Red Hat, Inc. (auxiliary key 3) <security@redhat.com>"
Fingerprint: 7E46 2425 8C40 6535 D56D 6F13 5054 E4A4 5A63 40B3
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
若同时
超级会员免费看
订阅专栏 解锁全文

1654

被折叠的 条评论
为什么被折叠?



