I'm using an AWS EC2 instance and I'm trying to switch from an Ubuntu instance to a Linux (Amazon Linux AMI) instance and in doing so I need to figure out the equivalent apt-get to yum commands and packages to install.In essence how would you translate the following from apt-get to yum?Side note assume I have already assume the root user role via sudo su, which is why sudo is not used in conjunction with the following commands.apt-get commands:apt-get update (Assuming this would be equivalent to yum update -yapt-get upgrade -yapt-get dist-upgrade -yapt-get autoremove -yapt-get install apache2 php5 php5-cli php5-fpm php5-gd libssh2-php libapache2-mod-php5 php5-mcrypt php5-mysql git unzip zip postfix php5-curl mailutils php5-json -ya2enmod rewrite headersphp5enmod mcrypt
Linux yum Commands that are Equivalent to these Ubuntu apt-get Commands
command line;apt;yum;apache httpd;amazon ec2
Various distros name their packages slightly differently and there is no automated way to map one to the other.  You've probably quoted the best example already with Apache, which is apache2 on Debian/Ubuntu systems and httpd on CentOS/RedHat/Fedora systems, apache on Arch, apache2 on openSuse, www-servers/apache on Gentoo etc.The best way to find the packages is to search for them with yum search:yum search apache...httpd.x86_64 : Apache HTTP Server...Which finds that Apache in the description.  You'll get about 200 lines of packages here, so maybe pipe it into less to read or into grep to look for keywords.If you know the file name and want to find the package which provides this, then run yum provides:yum provides *bin/httpdLoaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirror.simwood.com * epel: epel.mirrors.ovh.net * extras: mirror.simwood.com * updates: mirror.mhd.uk.as44574.nethttpd-2.4.6-40.el7.centos.x86_64 : Apache HTTP ServerRepo        : baseMatched from:Filename    : /usr/sbin/httpdhttpd-2.4.6-40.el7.centos.x86_64 : Apache HTTP ServerRepo        : @baseMatched from:Filename    : /usr/sbin/httpdSimply running yum provides httpd will list any package that has files which end in httpd, not just the executable, so it's best to narrow the search by prefixing it with *bin/.Google can also help you find common packages.