When I took an inventory of scoop packages for the first time in a long time, this happened.
PS> scoop status
Due to maintenance, ** the manifest file for openjdk was missing from main Bucket **. (By the way, Bazel was promoted from extras Bucket to main Bucket)
Java Bucket
So where did Java go? Apparently, Java-related packages were grouped together and made independent.
https://github.com/lukesampson/scoop/wiki/Java https://github.com/se35710/scoop-java
This is an official bucket, so you can add it with just the following
PS> scoop bucket add java
So, when I thought that I could finally upgrade openjdk,
PS> scoop update openjdk
# openjdk: 1.8.0.141-1 (latest version)
# Latest versions for all apps are installed! For more information try 'scoop status'
Can not.
Apparently, ** moved Bucket doesn't track updates **. Well, what should I do?
If there is nothing you can do, you can deal with it by erasing it once and reinserting it.
PS> scoop uninstall openjdk
PS> scoop install openjdk
However, this also deletes all past versions, which can be a problem in some cases. (Previously, I deleted all versions of the Conda environment by the same method.)
** This is a trick, so don't cry if you make a mistake **
So why does scoop stick to the manifest of the lost main bucket?
Actually, there is the latest entity of each application under ~ / scoop / apps / APP_NAME / current /
, but it seems that Bucket is judged by looking at ʻinstall.json` in it.
So you can track updates by making the following changes:
install.json
{
+ "bucket": "java",
"architecture": "64bit"
}
PS> scoop update openjdk
By the way, if you are promoted to main like Bazel, you can delete the whole line of " bucket ":" extras "
.
By moving to Java Bucket, JRE / JDK is provided ** per build x per version **, so system version switching can be managed by scoop.
◆ Provided package
◆ Switching
PS> scoop install openjdk9 openjdk10 zulu10
#Switch to Open JDK 9
PS> scoop reset openjdk9
#Switch to Open JDK 10
PS> scoop reset openjdk10
#Switch to Zulu 10
PS> scoop reset zulu10
This will toggle the reference between the java
command and JAVA_HOME
. This is enough if you haven't developed it severely.
Recommended Posts