Bash script to install nexus correctly in Debian 11 and 12.
Script requires that the user is in sudoers.
Make the Script Executable:
chmod +x setup_nexus.sh
chmod +x remove_nexus.sh
Run the Script with Superuser Privileges to install Nexus and Java:
sudo ./setup_nexus.sh
Run the Script with Superuser Privileges to remove Nexus and Java:
sudo ./remove_nexus.sh