This tutorial will help you to install Gradle on Fedora 36/35/34/33/32 operating system.

How to Install Maven on Fedora


The Gradle requires Java 8 or higher version installed on the system. Generally, the Fedora system has a default installed Java version on it. to run Java 8 or higher version. You can use the following command to install java if you don’t already have it. Verify the installed Java version on your system. After that install some more packages used in this tutorial.

Install Gradle on Fedora

Once you installed Java on your system. Download the latest Gradle distribution release binary file from its official download page. You can also use the wget command to download the file. Then extract the downloaded archive and place it in the proper location. Generally, I use /usr/local directory for storing applications. You can use an alternative directory like /opt. Gradle has been configured on your system.

Setup Environment Variable

Now, you need to set up Gradle with a PATH environment variable, Also make sure the variable is set after the system reboot. Place a shell script under the profile.d directory to set the PATH variable on reboot. Create a file like the below: Add the below configuration to the file Save the file and close it. Now source the script to apply the environment for the current shell. All done, you have done the Grandle installation on your Fedora system.

Check Gradle Version

Once you finished the Gradle installation, let’s check the installed version on your system. Output You will see the results like above. It means Gradle is properly installed on your Fedora system. Next, you may also need Apache Maven on your system.