#StackBounty: #software-installation #openjdk Accept options when installing Java in terminal

Bounty: 50

How can I install Java (OpenJDK) on an Ubuntu system with regional preferences set int the command itself, so that it runs through the complete setup without needing user input? I am using this command:

sudo apt install openjdk-11-jdk -y

This always waits for input where I have to select preference for region, where I select 1 for Americas and then 85 for Los_Angeles. Can I include this as a part of a command somehow, so that I can automate this?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.