10.2-dnf-配置及使用
不需要自己手动解决依赖
dnf
which dnf
whicn yum
# 源文件一样
ls -l /usr/bin/dnf
ls -l /usr/bin/yum
# 系统自带的社区维护的仓库
dnf repolist
# 查看安装的软件包
dnf list
dnf list | wc -l
dnf list available | wc -l
dnf list installed | wc -l
dnf list | wc -l
# dnf相当于应用商店
dnf info httpd
dnf install httpd
systemctl start httpd
ss -ntplu | grep :80
curl 127.0.0.1
curl https://127.0.0.1:80
systemctl status httpd
dnf remove httpd
dnf erase httpd
dnf clean all
# 系统自带的源 信息 社区维护
cat /etc/yum.repos.d/Anolis0s-AppStream.repo