Issue
I can find no question even slightly addressing this, so I imagine I'm missing something important, but I would appreciate if someone could even tell me that.
I have recently been self-learning some programming languages, and I can't figure out the conceptual difference between Grape, the JAR dependency manager within Groovy, and yum, the command-line package-management utility in Linux.
In the video instruction I'm watching, the professor used Grape within the Linux command line to install a package and its dependencies, which is what yum is used for. Is Grape simply the Groovy-specific version of the Linux-specific yum? Or is there a more fundamental difference?
Solution
- TL;DR:
yum
is for installing OS specific applications or libraries, andGrab
is for adding jvm dependencies to a Groovy application
Yum is; (from wikipedia)
an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager
Grape (in Groovy) is; (from the Groovy documentation)
a JAR dependency manager embedded into Groovy. Grape lets you quickly add maven repository dependencies to your classpath, making scripting even easier
The Java ecosystem has libraries stored in (generally) maven repositories.
In Groovy, Grab
allows you to pull one of these JVM libraries (and all of its dependencies) out of a Maven repository, and it adds them to the classpath of your running script.
Answered By - tim_yates Answer Checked By - David Goodson (WPSolving Volunteer)