Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation tutorial of SDKMAN on Unix system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "SDKMAN installation tutorial on the Unix system", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn the "SDKMAN installation tutorial on the Unix system"!

Is a tool for managing parallel versions of multiple software development kits on most Unix-based systems. It provides a convenient command line interface (CLI) and API to install, switch, delete and list sdk related information. Here are some features:

By Developers, for Developers

Installing SDK no longer requires going to various download pages to download, extract, and set xxx_HOME or PATH environment variables.

Multi-platform

It can be run on any UNIX-based platform: Mac OSX,Linux,Cygwin,Solaris and FreeBSD. The Powershell CLI version is available for Windows users.

Full JAVA support

Install software development kits for JVM such as Java,Groovy,Scala,Kotlin and Ceylon. Ant,Gradle,Grails,Maven,SBT,Spark,Spring Boot,Vert.x and many other supports.

APIs

New clients can be easily written using open Broker REST API. Vendors can release their own versions through the secure vendor API.

Light weight

You only need curl\ zip/unzip to use the command in bash. It can also be used with ZSH.

1. Installation

Enter the following command in the terminal to install:

Curl-s https://get.sdkman.io | bash

If prompted that zip or unzip is missing, execute the above command again after installation.

# install the required components, Ubuntu as an example $apt install zip$ apt install unzip

Wait a moment before the installation is complete.

After the installation is complete, enter in the terminal:

$source "$HOME/.sdkman/bin/sdkman-init.sh"

Enter the following command to view the installation:

The following is the output = BROADCAST = * 09 BROADCAST: Gradle 4.5-rc-1 released on SDKMAN! # gradle* 06 released on SDKMAN 01 scala* 18: sbt 1.1.0 released on SDKMAN! # scala* 20-12-17: Gradle 4.4.1 released on SDKMAN! # gradle====SDKMAN 5.6.0 scala* 287

Install to a custom location

The default installation location of SDKMAN is: $HOME/.sdkman. You can change the installation location by setting the SDKMAN_DIR environment variable:

$export SDKMAN_DIR= "/ usr/local/sdkman" & & curl-s "https://get.sdkman.io" | bash3.Beta channel

The Bate version of SDKMAN contains some new features of cli, but may be unstable. If you need to use Bate version, you need to modify the ~ / .sdkman / etc/config file:

Sdkman_beta_channel=true

Then open a terminal to execute:

$sdk selfupdate force

If you do not need to use the Bate version, change the above configuration to false and perform another update.

4. Unloading

SDKMAN! No automatic uninstallation method is provided, which can be uninstalled with the following command:

Tar zcvf ~ / sdkman-backup_$ (date +% F-%kh%M). Tar.gz-C ~ / .sdkman $rm-rf ~ / .sdkman

Then edit and delete the initialization snippet from the .bashrc, .bash _ profile and / or .profile files. If you use ZSH, remove it from the .zshrc file. The code snippet to be deleted is as follows:

# THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO working hours! [[- s "/ home/dudette/.sdkman/bin/sdkman-init.sh"]] & & source "/ home/dudette/.sdkman/bin/sdkman-init.sh" 5. Use 5. 0 to list the supported software $sdk list#, execute the command and enter vi mode to read, Q exit to read

5.1 list the version of the software

$sdk list gradle = Available Gradle Versions = 4.5-rc-1 4.2.1 3.1 2.11 > * 4.4.1 4.2-rc-2 3.0 2.10 4.4-rc-6 4.2-rc-1 2.9 2.1 4.4-rc-5 4.2 2.8 2.0 4.4-rc-4 4.1 2.7 1.9 4.4-rc-3 4.0.2 2.6 1.8 4.4 -rc-2 4.0.1 2.5 1.7 4.4-rc-1 4.0 2.4 1.6 4.4 3.5.1 2.3 1.5 3.3.1 3.2.1 1.4 4.3-rc-4 3.4.1 2.2 1.3 4.3-rc-3 3.4 2.14.1 1.2 4.3-rc-2 3.3 2.14 1.12 4.3-rc-1 3.2.1 2.13 1.11 4.3 3.2 2.12 1.10 = +-local version *-installed >-currently in use = =

5.3 install the specified version of the software

# followed by the version number $sdk install gradle 4.4.15.4 install the local package $sdk install groovy 3.0.0-SNAPSHOT / path/to/groovy-3.0.0-SNAPSHOT5.8 view the current version in use $sdk current java Using java version 8u111# view the current version of all local packages $sdk current Using: groovy: 2.4.7 java: 8u111 scala: 2.12.15.9 sdk version upgrade $sdk upgrade springboot Upgrade: springboot (1.2.4.RELEASE 1.2.3.RELEASE < 1.2.5.RELEASE) # all local sdk upgrades $sdk upgrade Upgrade: gradle (2.3,1.11,2.4,2.5 < 2.6) grails (2.5.1 < 3.0.4) springboot (1.2.4.RELEASE, 1.2.3.RELEASE < 1.2.5.RELEASE) 5.10 offline mode $sdk offline enable Forced offline mode enabled.$ sdk offline disable Online mode re-enabled!

When the computer does not have a network, the offline mode will be automatically switched.

5.11 SDKMAN! Version upgrade $sdk selfupdate# forced to reinstall $sdk selfupdate force thank you for reading, the above is the "SDKMAN installation tutorial on the Unix system" of the content, after the study of this article, I believe that you have a deeper understanding of the SDKMAN installation tutorial on the Unix system, the specific use of the need for you to practice verification. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report