Exactly the post you are looking for with the details. Read the section specific to the manual/automated way as you deem necessary for your own situation.
Hope this helps. if it did, please click on accepted answer on the post.
How to install gui on Lightsail instance running Debian 11 ?asked 2 months ago
How to install a GUI in Amazon Linux 2022?asked 4 months ago
How do I install a package from “fedora updates” on AL2 or AL2022?
Amazon Linux 2022 (AL2022) Is it possible to upgrade from one Release Candidate (RC) to the next RCasked 2 months ago
Amazon Linux 2 amazon-linux-extras PHP 8.1 supportasked a year ago
How do I install the RPM Fusion repo on Amazon Linux 2022?
Is there antivirus software recommended to install AWS Linux 2 system?asked 7 months ago
In place upgrade from Amazon Linux 2 to AL2022asked 3 months ago
How to install openjdk-11.0.16 version in amazon linux 2asked 13 days ago
How to request php8.1 to be added to amazon-linux-extrasAccepted Answerasked 8 months ago