How to tell pacman not to update a package like a kernel

Open up the /etc/pacman.conf file and add the packages to the line where it says

#IgnorePkg =

Delete the # and save it.

You can also ignore packages like mate, gnome etc.