php怎么安装gd扩展

sudo yum install php-gd
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
393 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:7.4.30-1.amzn2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                  Arch                     Version                          Repository                           Size
==============================================================================================================================
Installing:
 php-gd                   x86_64                   7.4.30-1.amzn2                   amzn2extra-php7.4                   182 k

Transaction Summary
==============================================================================================================================
Install  1 Package

Total download size: 182 k
Installed size: 752 k
Is this ok [y/d/N]: y
Downloading packages:
php-gd-7.4.30-1.amzn2.x86_64.rpm                                                                       | 182 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php-gd-7.4.30-1.amzn2.x86_64                                                                               1/1 
  Verifying  : php-gd-7.4.30-1.amzn2.x86_64                                                                               1/1 

Installed:
  php-gd.x86_64 0:7.4.30-1.amzn2                                                                                              

Complete!