How To Install network-scripts on AlmaLinux 8
Introduction
In this tutorial we learn how to install network-scripts
on AlmaLinux 8.
What is network-scripts
This package contains the legacy scripts for activating & deactivating of most network interfaces. It also provides a legacy version of ’network’ service. The ’network’ service is enabled by default after installation of this package, and if the network-scripts are installed alongside NetworkManager, then the ifup/ifdown commands from network-scripts take precedence over the ones provided by NetworkManager. If user has both network-scripts & NetworkManager installed, and wishes to use ifup/ifdown from NetworkManager primarily, then they has to run command $ update-alternatives –config ifup Please note that running the command above will also disable the ’network’ service.
We can use yum
or dnf
to install network-scripts
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install network-scripts.
Install network-scripts on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install network-scripts
using dnf
by running the following command:
sudo dnf -y install network-scripts
Install network-scripts on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install network-scripts
using yum
by running the following command:
sudo yum -y install network-scripts
How To Uninstall network-scripts on AlmaLinux 8
To uninstall only the network-scripts
package we can use the following command:
sudo dnf remove network-scripts
References
Summary
In this tutorial we learn how to install network-scripts
on AlmaLinux 8 using yum and dnf.