Problem scenario
You want to find what Java packages are available on the configured repositories of the Linux server you are using. What do you do?
Solution
Run a command like this: apt-cache search java
You can replace "java" with a word of the package you want to install.
If you want to learn more about the package and have its exact name, run this command: apt-cache showpkg java-common