Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rpardini/adoptium-deb-installer
Creates Ubuntu/Debian installer packages for Eclipse Adoptium using their API. Important: these are NOT official packages. JDK 8, 11, 17, 18 and 19, all multiarch, in both JRE and JDK flavors.
https://github.com/rpardini/adoptium-deb-installer
adoptium apt debian hotspot java jdk jre launchpad ppa ubuntu webupd8
Last synced: 3 months ago
JSON representation
Creates Ubuntu/Debian installer packages for Eclipse Adoptium using their API. Important: these are NOT official packages. JDK 8, 11, 17, 18 and 19, all multiarch, in both JRE and JDK flavors.
- Host: GitHub
- URL: https://github.com/rpardini/adoptium-deb-installer
- Owner: rpardini
- Created: 2018-11-25T08:41:01.000Z (about 6 years ago)
- Default Branch: adoptium
- Last Pushed: 2023-11-01T03:24:12.000Z (about 1 year ago)
- Last Synced: 2024-09-30T14:03:42.691Z (4 months ago)
- Topics: adoptium, apt, debian, hotspot, java, jdk, jre, launchpad, ppa, ubuntu, webupd8
- Language: Shell
- Homepage:
- Size: 5.53 MB
- Stars: 58
- Watchers: 11
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Debian/Ubuntu installer packages for Eclipse Adoptium
This uses the Eclipse Adoptium API to produce Ubuntu/Debian packages which download and install Eclipse Adoptium from
their official releases.- Ubuntu: [ppa:rpardini/adoptium-installers](https://launchpad.net/~rpardini/+archive/ubuntu/adoptium-installers)
or see instructions below.
- Debian: there's an APT repo hosted at GitHub Pages, see below for instructions.
- The Debian instructions also work for Ubuntu if you'd rather avoid PPA's.Use these packages at your own risk. These are NOT official packages.
## For Ubuntu:
```bash
[[ ! -f /usr/bin/add-apt-repository ]] && sudo apt-get -y install software-properties-common # Make sure 'add-apt-repository' is available
sudo add-apt-repository --yes ppa:rpardini/adoptium-installers
sudo apt-get install adoptium-17-installer # or 8, 11, etc; also adoptium-17-jdk-hotspot-installer-set-default
```## For Debian:
```bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1EAC8B7 # add the builder key
echo 'deb https://rpardini.github.io/adoptium-deb-installer stable main' > /etc/apt/sources.list.d/rpardini-adoptium.list # add the package repo to sources
sudo apt-get update # update from sources
sudo apt-get install adoptium-17-installer # or 8, 11, etc; also adoptium-17-jdk-hotspot-installer-set-default
```# For developers/builders
This repo produces **source** packages which are then uploaded to Launchpad, where they're built and hosted. The final
packages produced are essentially just downloader scripts, and try to handle proxy usage, SHA256 verification,
`update-alternatives` and `update-java-alternatives` as per `java-common` standards.A huge amount of the actual installer scripting was stolen from
[Alin Andrei](https://launchpad.net/~webupd8team/+archive/ubuntu/java)'s webupd8 `oracle-java8-installer`
-- all the update-alternatives, manpages, etc stuff is clearly in need of work. The proxy handling also needs to be
confirmed; a few of his provisions like using a custom `wgetrc` was kept, but a lot of cosmetic stuff like icons were
removed.Due to the way Launchpad works, a big part of this is calculating a single set/version from many possible JDK builds for
different architectures. It seems common that `aarch64` and/or `s390x` archs have different Eclipse Adoptium builds than
other architectures, at least for Java 8 and Java 11. Update: Adoptium does not suffer so much from those.For this reason (and also cause I'm a bit of a codegen freak) I implemented a Node.js script that
consumes [Eclipse Adoptium's releases API](https://api.adoptium.net/) and process sets of templates to produce final
source packages.Also due to Launchpad's requirements, I build a lot of (otherwise identical) source packages for different
distributions/series (trusty, xenial, bionic, etc); please instruct me how to avoid this if you know.# Credits
* Of course, [Eclipse Adoptium](https://adoptium.net/) for all of the actual amazing work, and for the API.
* [Alin Andrei/webupd8](https://launchpad.net/~webupd8team/+archive/ubuntu/java) for the
original `oracle-jdk8-installer` from which I started this work
* Launchpad for actually building on many architectures and hosting the whole thing for Ubuntu
* GitHub for repo, Github Actions, and hosting the Debian repo with GitHub Pages. Please don't ban me.