D7l1kd.png
安装 DNF 包管理工具

yum upgrade -y
yum install dnf -y

测试是否安装成功。

[root@sre vhost]# dnf --version
4.0.9
  Installed: dnf-0:4.0.9.2-1.el7_6.noarch at Thu 03 Dec 2020 09:55:10 AM CST
  Built    : CentOS BuildSystem <http://bugs.centos.org> at Wed 13 Feb 2019 08:19:33 PM CST

  Installed: rpm-0:4.11.3-32.el7.x86_64 at Wed 15 Aug 2018 07:34:23 PM CST
  Built    : CentOS BuildSystem <http://bugs.centos.org> at Wed 11 Apr 2018 03:54:32 AM CST

  Installed: rpm-0:4.11.3-45.el7.x86_64 at Thu 03 Dec 2020 09:47:17 AM CST
  Built    : CentOS BuildSystem <http://bugs.centos.org> at Wed 30 Sep 2020 05:30:03 PM CST
[root@sre vhost]# dnf --version
4.0.9
  Installed: dnf-0:4.0.9.2-1.el7_6.noarch at Thu 03 Dec 2020 09:55:10 AM CST
  Built    : CentOS BuildSystem <http://bugs.centos.org> at Wed 13 Feb 2019 08:19:33 PM CST

  Installed: rpm-0:4.11.3-32.el7.x86_64 at Wed 15 Aug 2018 07:34:23 PM CST
  Built    : CentOS BuildSystem <http://bugs.centos.org> at Wed 11 Apr 2018 03:54:32 AM CST

  Installed: rpm-0:4.11.3-45.el7.x86_64 at Thu 03 Dec 2020 09:47:17 AM CST
  Built    : CentOS BuildSystem <http://bugs.centos.org> at Wed 30 Sep 2020 05:30:03 PM CST

安装 Podman

dnf install podman -y

测试是否安装成功

[root@sre vhost]# podman --version
podman version 1.6.4

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code