Advertisement
zefie

fix broken java links in ubuntu after oracle -> openjdk

May 12th, 2018
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. cd /etc/alternatives
  3. for f in $(ls -l| grep oracle | grep -v "\.gz" | rev | cut -d' ' -f3 | rev); do
  4.     sudo update-alternatives --auto ${f};
  5. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement