https://www.linuxhelp.com/how-to-install-php-imagemagick-on-centos-7/
https://www.scalescale.com/tips/nginx/install-imagemagick-php-imagick-centos/
If your terminal display saved mode, for example
Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2018-08-11.02-13.LmDUjC.yumtx
use -y in command become
yum -y install php-devel
https://www.linuxquestions.org/questions/linux-newbie-8/yum-installation-fails-because-of-a-saved-transaction-4175585216/