The following is the tutorial column of centos to introduce to you the Centos8 configuration DNF proxy method. I hope it will be helpful to friends in need!
##centos 8 Configuring DNF proxy method Centos 8 uses dnf instead of yum by default. The original yum configuration file (/etc/yum.conf) is linked to the dnf configuration file (/etc/dnf/dnf.conf) by default
Originally, you only need to change the yum configuration file for proxying The setting method is no longer easy to use.
Centos 8 needs to be modified as follows
cat /etc/dnf/dnf.conf[main]gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True#best=Trueproxy=http://Proxy_Ip:port proxy_username=username proxy_password=password
cat /etc/rhsm/rhsm.conf proxy_hostname = Proxy_Ip proxy_port = Port proxy_user = Username proxy_password = Password
centos 8 uses three sources by default, the locations are as follows
/etc/yum.repos.d/CentOS-AppStream.repo /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Extras.repo
centos 8 uses dnf instead of yum by default, the original yum configuration file (/etc/ yum.conf) is linked to the dnf configuration file (/etc/dnf/dnf.conf) by default
The original method of simply changing the yum configuration file for proxy settings is no longer easy to use.
centos 8 needs to be modified as follows
cat /etc/dnf/dnf.conf[main]gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True#best=Trueproxy=http://Proxy_Ip:port proxy_username=username proxy_password=password
cat /etc/rhsm/rhsm.conf proxy_hostname = Proxy_Ip proxy_port = Port proxy_user = Username proxy_password = Password
centos 8 uses three sources by default, the locations are as follows
/etc/yum.repos.d/CentOS-AppStream.repo /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Extras.repo
The above is the detailed content of Detailed explanation of how to configure DNF proxy on Centos8. For more information, please follow other related articles on the PHP Chinese website!