Fix ifup: command not found on Rocky / Alma / CentOS

On latest releases of Rocky, AlmaLinux, CentOS operating systems, the old ifup and ifdown commands are not installed by default. This change is because network interfaces are now managed by NetworkManager instead of traditional network scripts.

To fix the error “ifup: command not found” or “ifdown: command not found” on RHEL-based systems, you need to install the package that provides the commands.

sudo dnf search network-scripts

In the output, you’ll see:

Last metadata expiration check: 0:34:08 ago on Mon 28 Apr 2025 10:40:44 PM EAT.
============================================================================================================= Name Matched: network-scripts ==============================================================================================================
network-scripts-openvswitch2.16.x86_64 : Open vSwitch legacy network service support
============================================================================================================ Summary Matched: network-scripts ============================================================================================================
NetworkManager-initscripts-updown.noarch : Legacy ifup/ifdown scripts for NetworkManager that replace initscripts (network-scripts)

If using NetworkManager install NetworkManager-initscripts-updown package.

sudo dnf install NetworkManager-initscripts-updown

Press y to accept the installation:

Dependencies resolved.
==========================================================================================================================================================================================================================================================
 Package                                                                       Architecture                                       Version                                                        Repository                                          Size
==========================================================================================================================================================================================================================================================
Installing:
 NetworkManager-initscripts-updown                                             noarch                                             1:1.48.10-8.el9_5                                              baseos                                              20 k

Transaction Summary
==========================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 20 k
Installed size: 2.1 k
Is this ok [y/N]: y

If using Open vSwitch, install network-scripts-openvswitch2 package:

sudo dnf install network-scripts-openvswitch*

Confirm it exist now:

$ which ifup
/usr/sbin/ifup

$ which ifdown
/usr/sbin/ifdown

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

WireGuard is a modern VPN that uses peer-to-peer kind of connectivity to establish the connection. It is a simple and […]

Eclipse Adoptium’s main objective is to produce high-quality runtimes and the associated technology to be used within the Java Ecosystem. […]

In this guide, we are going to look at how to install Wiki.js on a Debian 12/11 Linux system. Wiki.js […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.