How to Install VLC Media Player on Rocky Linux 9

How to Install VLC Media Player on Rocky Linux 9

VLC Media Player is a must-have application for any Linux desktop and we’ll walk you through on how to install VLC Media Player on Rocky Linux 9. 

This popular open-source media player plays just about any audio or video format you can throw at it, from MP3s and MP4s to DVDs and streaming media.

If you’re new to Rocky Linux 9, you’ll be happy to know that installing VLC is quick and easy.

But first, what exactly is VLC Media Player? 

VLC is a free, lightweight, cross-platform media player that handles a wide range of media types with ease with advanced features like video conversion, streaming, and subtitle support. VLC is also highly customizable, with thousands of skins and extensions available to change the look and add functionality.

The best part? VLC plays nicely with Linux and has versions available for all major distributions, including Rocky Linux.

In this guide, we’ll walk you through the process of enabling the Extra Packages for Enterprise Linux (EPEL) repository, which contains the VLC package for Rocky Linux. Then we’ll install VLC through Rocky’s package manager and go over some basic usage.

Without wasting any more time, let’s dive right in!

Why Is VLC Media Player Better Than GNOME Media Player?

GNOME Media Player is the default media player available on Rocky Linux 9 and other Linux distributions. Even though GNOME Media Player is efficient, it has many limitations compared to VLC Media Player.

Here are the reasons why VLC Media Player is a fantastic alternative to GNOME Media Player:

  • It supports a wider range of media file formats.
  • Enables you to transcode multimedia files and stream over networks.
  • Easier to include plugins for new file formats, codecs, etc.
  • It provides sophisticated controls, customization options, and media playback versatility.
  • It doesn’t contain any spyware, advertisements, or user tracking.

What You’ll Need

For seamless installation of VLC Media Player on Rocky Linux 9, you need to ensure that your system meets the following prerequisites:

  • Make sure your Rocky Linux 9 installation is current (guide). The command sudo dnf update can be used to accomplish this.
  • Verify you have enough space on your computer (guide) to install the VLC Media Player.
  • Make sure you have an internet connection for the download and installation process.
  • To install applications on your Linux system, confirm that you have the required permissions or root access (guide).
  • Learn how to use the command line because most installations use the terminal.

If you meet all the requirements, you can proceed to the installation steps below.

How to Install VLC Media Player on Rocky Linux 9: Step-by-Step

Step 1: Enable Epel and RPM Fusion Repos

You must enable the following packages to proceed: Enterprise Linux (EPEL) and RPM Fusion repositories before installing VLC on Rocky Linux 9. The additional packages and codecs from these repositories are crucial to install VLC, as it isn’t available in default base repositories. The commands to do this are as follows:

sudo dnf install epel-release rpmfusion-free-release
Install VLC Media Player on Rocky Linux 9 1

Enter ‘Y‘ when prompted. Once everything is done, the terminal indicates that the repositories have been successfully enabled.

Step 2: Run System Update

  1. After enabling the necessary repositories, ensure your system is up-to-date by running a system update. Doing so ensures that all your existing packages are updated and you have the latest dependencies required to run VLC; here is the command to update your system:
sudo dnf update
Install VLC Media Player on Rocky Linux 9 2

Step 3: Install VLC Player

  1. You can now install VLC after updating your system and enabling the repositories, which can be accomplished by using the command:
Install VLC Media Player on Rocky Linux 9 3
sudo dnf install vlc


sudo dnf install vlc-core (For minimal headless/server installation)

With the above command, VLC and any extra dependencies will be downloaded and installed by the terminal. Once the command is executed without errors, then that means VLC has been installed successfully.

Step 4: Run VLC

  1. After you have successfully installed Linux, you can now run VLC from your terminal by typing the following command:

If the installation is successful, the terminal may also show some informational messages about the VLC media player status and opens the VLC Media Player.

    Install VLC Media Player on Rocky Linux 9 4

    However, if you don’t want to open the application through the terminal, you can manually use the Application launcher and search for the VLC media player.

    (Optional) Step 5: Remove or Uninstall VLC Media Player

    1. You can use the command below to remove VLC from your Rocky Linux 9 system if you don’t need it anymore or want to troubleshoot by reinstalling it:
    sudo dnf remove vlc
    Install VLC Media Player on Rocky Linux 9 5

    With the above command, you can remove VLC and all its dependencies from your system. Once done, restart your device for the changes to appear.

    Consider checking out: How to Install and Use FFmpeg on Ubuntu

    What to Do If You’re Getting VLC Media Player Installation Issues on Rocky Linux 9?

    It is common for issues to appear while installing new software on Rocky Linux 9 through the terminal. Here are some of the potential VLC Media Player installation issues and their solutions:

    1. “No package vlc available” Error

    If the above error appears, it is a sign that the EPEL repository is not enabled. For this issue to fix, you have to enable the repository correctly and then try installing VLC again. 

    Here is the command to enable the EPEL repository:

    sudo dnf install epel-release command
    Install VLC Media Player on Rocky Linux 9 6

    2. “Unable to locate package vlc” Error

    If the packages are not updated properly, this error can occur. Fixing this error is easy, and you need to do is refresh the package lists and then try installing VLC again. 

    Here is the command to update packages:

    sudo dnf update
    Install VLC Media Player on Rocky Linux 9 2

    3. VLC Media Player Installation Is Stuck or Taking Too Long

    If the installation takes too long, it might be due to a poor internet connection. However, if your internet connection is stable and the installation takes too long, it might be a server problem

    .For this purpose, cancel the current installation by pressing your Ctrl+C keys and then run the command sudo dnf install vlc again.

    Install VLC Media Player on Rocky Linux 9

    4.  Dependency Errors or Conflicts

    If you experience dependency issues, look for the missing packages. Usually, the error message will specify which dependencies are missing. Then, using the dnf package manager, you can install them using the command below:

    sudo dnf install <missing-package-name>

    If that doesn’t work, try clearing all cached data, including metadata, packages, and expiration timestamps, by running the following command:

    sudo dnf clean all


    Congratulations! You now have VLC Media Player installed on your Rocky Linux 9 system. VLC is a powerful yet easy-to-use media player that can handle just about any audio or video format. 

    VLC Media Player is an essential application for any desktop, and now you have it installed on your Rocky Linux 9 system. Feel free to explore all that VLC has to offer – you’ll find it’s the perfect companion for enjoying your music, movies, and more on Linux.If you run into any issues using VLC, don’t hesitate to check out the official documentation. You can also find additional help from the Rocky Linux community forum.

    If this guide helped you, please share it.

    Related Posts