Exclude package from an update on CentOS operating system.

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

exclude=mysql*