如何在centos中安装resolvconf

如何在centos中安装resolvconf

我正在尝试在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 作为依赖项)应该可以毫无问题地安装!

查看所有包和在这里获取校验和

相关内容