There's something called package manager in Linux. It is used to download and install software and its dependencies automatically. In Cent OS, the package manager is called yum
. You can install package in Cent OS like
yum install <package-name>
For example if you want to install mysql server
yum install mysql-server
This will install mysql server and all the dependency packages. You would normally need to be connected to internet to do this.