How To Install maven-native on Fedora 36
Introduction
In this tutorial we learn how to install maven-native
on Fedora 36.
What is maven-native
Maven Native - compile C and C++ source under Maven with compilers such as GCC, MSVC, GCJ etc …
We can use yum
or dnf
to install maven-native
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install maven-native.
Install maven-native on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install maven-native
using dnf
by running the following command:
sudo dnf -y install maven-native
Install maven-native on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install maven-native
using yum
by running the following command:
sudo yum -y install maven-native
How To Uninstall maven-native on Fedora 36
To uninstall only the maven-native
package we can use the following command:
sudo dnf remove maven-native
maven-native Package Contents on Fedora 36
/usr/share/java/maven-native
/usr/share/java/maven-native/maven-native-api.jar
/usr/share/licenses/maven-native
/usr/share/licenses/maven-native/LICENSE.txt
/usr/share/maven-metadata/maven-native-maven-native.xml
/usr/share/maven-poms/maven-native
/usr/share/maven-poms/maven-native/maven-native-api.pom
/usr/share/maven-poms/maven-native/maven-native.pom
References
Summary
In this tutorial we learn how to install maven-native
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).