Go to the ROS installation website (http://wiki.ros.org/ROS/Installation). You will see a screen listing the latest ROS distributions:
Latest ROS distributions on the website
You can get the complete installation instructions for each distribution if you click on ROS Kinetic Kame or ROS Melodic Morenia.
We'll now step through the instructions to install the latest ROS distribution.