How to track when a bucket managed by scoop changes (mainly Java)

When I took an inventory of scoop packages for the first time in a long time, this happened.

PS> scoop status

image.png

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

Version upgrade

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?

A. Last resort

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.)

B. Tricks

** 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

image.png

By the way, if you are promoted to main like Bazel, you can delete the whole line of " bucket ":" extras ".

bonus

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

How to track when a bucket managed by scoop changes (mainly Java)
[Java] How to get a request by HTTP communication
[Java] How to cut out a character string character by character
How to make a Java container
[Java] How to create a folder
How to make a Java array
How to make a Java calendar Summary
[Introduction to Java] How to write a Java program
How to print a Java Word document
[IntelliJ IDEA] How to automatically add final when saving a Java file
How a completely inexperienced person studied to acquire Java silver by himself
How to pass a proxy when throwing REST over SSL in Java
[Rails] How to write when making a subquery
How to display a web page in Java
How to convert a solidity contract to a Java contract class
(Java) How to implement equals () for a class with value elements added by inheritance
How to create a Java environment in just 3 seconds
How to jump from Eclipse Java to a SQL file
java: How to write a generic type list [Note]
[Java] How to play rock-paper-scissors (equivalent to paiza rank A)
How to create a data URI (base64) in Java
[Java] How to execute tasks on a regular basis
[Java] How to erase a specific character from a character string
How to convert A to a and a to A using AND and OR in Java
How to convert a file to a byte array in Java
[Java] How to start a new line with StringBuilder
Changes from Java 8 to Java 11
How to batch initialize arrays in Java that I didn't know when I was a beginner
How to reduce the load on the program even a little when combining characters with JAVA
How to create a lightweight container image for Java apps
How to store a string from ArrayList to String in Java (Personal)
How to write and notes when migrating from VB to JAVA
How to deploy a kotlin (java) app on AWS fargate
[Java] How to use substring to cut out a character string
How to select a specified date by code in FSCalendar
How to dynamically switch JDK when building Java in Gradle
link_to A blue dot appears when nesting! How to erase
How to simulate uploading a post-object form to OSS in Java
A story about misunderstanding how to use java scanner (memo)
How to make a key pair of ecdsa in a format that can be read by Java
[Java] How to use Map
How to lower java version
How to uninstall Java 8 (Mac)
Java --How to make JTable
How to use java Optional
How to minimize Java images
How to write java comments
How to leave a comment
How to use java class
[Java] How to use Optional ②
[Java] How to use removeAll ()
[Java] How to display Wingdings
[Java] How to use string.format
How to use Java Map
How to set Java constants
How to use Java variables
How to convert Java radix
[Java] How to implement multithreading
[Java] How to use Optional ①
How to initialize Java array
How to insert a video