This tutorial will help you to install Apache Maven on Fedora Linux systems.


Java Development Kit (JDK) is the primary requirement for Apache Maven. So you need to install Java on your system. Make sure you have installed JDK, not JRE. If you don’t have Java Development Kit installed on your system. Visit Install Java on Fedora

Step 1 – Install Maven on Fedora

After verifying the java version on your system. Download the latest Apache Maven from its official download page or use the following command to download Apache Maven. Now extract the downloaded archive using the following command.

Step 2 – Set Environment Variables

As you have downloaded precompiled Apache Maven files on your system. Now set the environments variables by creating new file /etc/profile.d/ Add the following content. Save the file content and close it. Now load the environment variables in the current shell using the following command.

Step 3 – Check Maven Version

Apache Maven has been successfully configured on your system. Use the following command to check the version of installed Maven on your system. Finally, remove the downloaded archive file from the system to free disk space.

How to Uninstall Maven on Ubuntu

You can simply remove the extracted Maven directory from your system. As the above instructions installed the Maven under /opt directory. Use the following commands to remove Maven from your system.


In this tutorial, you have learned about installing Apache Maven on the Fedora Linux system.