I made this a new post and shared it public because it covers an important topic -- cPanel servers should not be updated through SSH because of all the cPanel proprietary code. Taking just these two items into consideration...
ImageMagick has a special script that you run through root:
Code:
/scripts/installimagemagick
and
GD is compiled using EasyApache with WHM (the cPanel admin GUI). It's not "installed" but rather compiled directly into PHP.
If you were to update some of these things manually in SSH, outside of the cPanel ecosystem, it could (1) make a big mess and completely screw up the server's functionality, or (2) only be a temporary change, as the cPanel updates would later wipe out what you've added. cPanel maintains an internal list of packages and compile instructions, and uses those for updates; most good server admins let cPanel auto-update.
Just an FYI. I'd hate to see you screw up the server.