
Audits Java JDK/JRE installations on Debian/Ubuntu via APT, reports packages and processes, then applies simulated, confirmation-gated security updates.
Conservative tool for auditing Java installations on Ubuntu, Debian, and derivatives that use APT, particularly containerless iDempiere servers.
curl -fsSL https://raw.githubusercontent.com/Carl0gonzalez/java-security-update/main/java-security-update.sh | bash -s -- --audit
If the Java installation uses non-standard paths, first download the script and run bash java-security-update.sh --audit --root /path.
Do not run curl | sudo bash in production. Download, verify the hash published through an independent channel, and review the script before using administrative privileges:
curl -fsSLo java-security-update.sh https://raw.githubusercontent.com/Carl0gonzalez/java-security-update/main/java-security-update.sh
sha256sum java-security-update.sh
bash -n java-security-update.sh
less java-security-update.sh
bash java-security-update.sh --audit
sudo bash java-security-update.sh --apply
SHA-256 corresponding to the first published version:
63bab4224c681feda4b36206ee642848ed3e653870e6b766b86142c39f818173 java-security-update.sh
--audit: discovers JDK/JRE binaries, vendors, locations, APT packages, and Java processes, without modifying the system.--apply: queries available versions, simulates APT updates of already-installed Java packages and certificates, shows the plan, and requires typing ACTUALIZAR to continue.git clone [email protected]:Carl0gonzalez/java-security-update.git
cd java-security-update
sha256sum -c java-security-update.sh.sha256
bash java-security-update.sh --audit
The Raw file on main may change. In production, it is preferable to pin a known revision/commit and verify its SHA-256 through a different channel.