Exclude package from an update on CentOS operating system.

Open /etc/yum.conf configuration file and use the exclude parameter in the main section.

exclude=mysql*