To ensure the perfect functioning of our server with CentOS 7 installed we must ensure that the system is updated with the latest kernel and system security patches, software repositories and the necessary packages.
To fully update a CentOS 7 operating system, we must run the following commands with administrator privileges from the console:
# yum check-update
# yum upgrade
After the update process is complete, to free up disk space, we can remove all the downloaded packages that were used in the update process along with all the information from cached repositories by executing the following command:
# yum clean all
In this way we will keep our server with CentOS 7 operating system updated and clean.