![如何在centos中安装resolvconf](https://linux22.com/image/142019/%E5%A6%82%E4%BD%95%E5%9C%A8centos%E4%B8%AD%E5%AE%89%E8%A3%85resolvconf.png)
我正在尝试在centos 中安装resolvconf。
在 Ubuntu 中,我可以安装 resolvconf sudo apt-get install resolvconf
。
对于centos,我尝试做同样的事情,sudo yum install resolvconf
但我收到消息No package found. Nothing to do
如何在 centos 中安装 resolvconf 。
答案1
您将需要openresolv
一个补丁。请遵循以下命令:
wget http://roy.marples.name/downloads/openresolv/openresolv-3.3.2.tar.bz2
tar fxjv openresolv-3.3.2.tar.bz2
cd openresolv-3.3.2
wget http://www.grid-appliance.org/files/packages/openresolv_patch.zip
unzip openresolv_patch.zip
make
./patch.sh
su -c "make install"
答案2
对于任何仍在尝试安装此软件的人(特别是如果您尝试安装 Mysterium VPN),您可以在 Rocky 和 CentOS 上安装 Fedora 软件包:
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/36/Everything/aarch64/os/Packages/o/openresolv-3.12.0-3.fc36.noarch.rpm
sudo dnf install openresolv-3.12.0-3.fc36.noarch.rpm
现在,Mysterium Desktop rpm(或任何其他 w/OR 作为依赖项)应该可以毫无问题地安装!
查看所有包和在这里获取校验和。