How To Install maven-lib on Rocky Linux 8

In this tutorial we learn how to install maven-lib on Rocky Linux 8. maven-lib is Core part of Maven

Introduction

In this tutorial we learn how to install maven-lib on Rocky Linux 8.

What is maven-lib

Core part of Apache Maven that can be used as a library.

We can use yum or dnf to install maven-lib on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install maven-lib.

Install maven-lib on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install maven-lib using dnf by running the following command:

sudo dnf -y install maven-lib

Install maven-lib on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install maven-lib using yum by running the following command:

sudo yum -y install maven-lib

How To Uninstall maven-lib on Rocky Linux 8

To uninstall only the maven-lib package we can use the following command:

sudo dnf remove maven-lib

maven-lib Package Contents on Rocky Linux 8

/etc/m2.conf
/etc/maven
/etc/maven/logging
/etc/maven/logging/simplelogger.properties
/etc/maven/settings.xml
/usr/share/doc/maven-lib
/usr/share/doc/maven-lib/README.md
/usr/share/java/maven
/usr/share/java/maven/maven-artifact.jar
/usr/share/java/maven/maven-builder-support.jar
/usr/share/java/maven/maven-compat.jar
/usr/share/java/maven/maven-core.jar
/usr/share/java/maven/maven-embedder.jar
/usr/share/java/maven/maven-model-builder.jar
/usr/share/java/maven/maven-model.jar
/usr/share/java/maven/maven-plugin-api.jar
/usr/share/java/maven/maven-repository-metadata.jar
/usr/share/java/maven/maven-resolver-provider.jar
/usr/share/java/maven/maven-settings-builder.jar
/usr/share/java/maven/maven-settings.jar
/usr/share/java/maven/maven-slf4j-provider.jar
/usr/share/licenses/maven-lib
/usr/share/licenses/maven-lib/LICENSE
/usr/share/licenses/maven-lib/NOTICE
/usr/share/maven
/usr/share/maven-metadata/maven.xml
/usr/share/maven-poms/maven
/usr/share/maven-poms/maven/maven-artifact.pom
/usr/share/maven-poms/maven/maven-builder-support.pom
/usr/share/maven-poms/maven/maven-compat.pom
/usr/share/maven-poms/maven/maven-core.pom
/usr/share/maven-poms/maven/maven-embedder.pom
/usr/share/maven-poms/maven/maven-model-builder.pom
/usr/share/maven-poms/maven/maven-model.pom
/usr/share/maven-poms/maven/maven-plugin-api.pom
/usr/share/maven-poms/maven/maven-repository-metadata.pom
/usr/share/maven-poms/maven/maven-resolver-provider.pom
/usr/share/maven-poms/maven/maven-settings-builder.pom
/usr/share/maven-poms/maven/maven-settings.pom
/usr/share/maven-poms/maven/maven-slf4j-provider.pom
/usr/share/maven-poms/maven/maven.pom
/usr/share/maven/bin
/usr/share/maven/bin/m2.conf
/usr/share/maven/bin/mvn
/usr/share/maven/bin/mvn.1.gz
/usr/share/maven/bin/mvn.cmd
/usr/share/maven/bin/mvnDebug
/usr/share/maven/bin/mvnDebug.cmd
/usr/share/maven/bin/mvnyjp
/usr/share/maven/boot
/usr/share/maven/boot/plexus-classworlds-2.5.2.jar
/usr/share/maven/conf
/usr/share/maven/conf/logging
/usr/share/maven/conf/settings.xml
/usr/share/maven/lib
/usr/share/maven/lib/aopalliance-1.0.jar
/usr/share/maven/lib/cdi-api-1.1.jar
/usr/share/maven/lib/commons-cli-1.4.jar
/usr/share/maven/lib/commons-codec.jar
/usr/share/maven/lib/commons-io-2.5.jar
/usr/share/maven/lib/commons-lang3-3.5.jar
/usr/share/maven/lib/commons-logging.jar
/usr/share/maven/lib/ext
/usr/share/maven/lib/ext/README.txt
/usr/share/maven/lib/guava-20.0.jar
/usr/share/maven/lib/guice-4.2.0-no_aop.jar
/usr/share/maven/lib/hawtjni-runtime-1.16.jar
/usr/share/maven/lib/httpcomponents_httpclient.jar
/usr/share/maven/lib/httpcomponents_httpcore.jar
/usr/share/maven/lib/jansi-1.17.1.jar
/usr/share/maven/lib/jansi-linux.jar
/usr/share/maven/lib/jansi-native
/usr/share/maven/lib/jansi-native-1.8.jar
/usr/share/maven/lib/jansi-native/README.txt
/usr/share/maven/lib/javax.inject-1.jar
/usr/share/maven/lib/jcl-over-slf4j-1.7.25.jar
/usr/share/maven/lib/jsr250-api-1.0.jar
/usr/share/maven/lib/maven-artifact-3.5.4.jar
/usr/share/maven/lib/maven-builder-support-3.5.4.jar
/usr/share/maven/lib/maven-compat-3.5.4.jar
/usr/share/maven/lib/maven-core-3.5.4.jar
/usr/share/maven/lib/maven-embedder-3.5.4.jar
/usr/share/maven/lib/maven-model-3.5.4.jar
/usr/share/maven/lib/maven-model-builder-3.5.4.jar
/usr/share/maven/lib/maven-plugin-api-3.5.4.jar
/usr/share/maven/lib/maven-repository-metadata-3.5.4.jar
/usr/share/maven/lib/maven-resolver-api-1.1.1.jar
/usr/share/maven/lib/maven-resolver-connector-basic-1.1.1.jar
/usr/share/maven/lib/maven-resolver-impl-1.1.1.jar
/usr/share/maven/lib/maven-resolver-provider-3.5.4.jar
/usr/share/maven/lib/maven-resolver-spi-1.1.1.jar
/usr/share/maven/lib/maven-resolver-transport-wagon-1.1.1.jar
/usr/share/maven/lib/maven-resolver-util-1.1.1.jar
/usr/share/maven/lib/maven-settings-3.5.4.jar
/usr/share/maven/lib/maven-settings-builder-3.5.4.jar
/usr/share/maven/lib/maven-shared-utils-3.2.1.jar
/usr/share/maven/lib/maven-slf4j-provider-3.5.4.jar
/usr/share/maven/lib/maven-wagon_http-shared.jar
/usr/share/maven/lib/org.eclipse.sisu.inject-0.3.3.jar
/usr/share/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar
/usr/share/maven/lib/plexus-cipher-1.7.jar
/usr/share/maven/lib/plexus-component-annotations-1.7.1.jar
/usr/share/maven/lib/plexus-interpolation-1.24.jar
/usr/share/maven/lib/plexus-sec-dispatcher-1.4.jar
/usr/share/maven/lib/plexus-utils-3.1.0.jar
/usr/share/maven/lib/slf4j-api-1.7.25.jar
/usr/share/maven/lib/wagon-file-3.1.0.jar
/usr/share/maven/lib/wagon-http-3.1.0-shaded.jar
/usr/share/maven/lib/wagon-provider-api-3.1.0.jar

References

Summary

In this tutorial we learn how to install maven-lib on Rocky Linux 8 using yum and dnf.