[ec2-user ~]$ wget http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
[ec2-user ~]$ tar xzf install-tl-unx.tar.gz
[ec2-user ~]$ cd install-tl-2017xxxx
[ec2-user ~]$ sudo ./install-tl
[ec2-user ~]$ sudo yum -y install texlive texlive-latex texlive-xetex
[ec2-user ~]$ sudo yum -y install texlive-xetex-def
[ec2-user ~]$ sudo yum -y install texlive-collection-xetex
yum install texlive-lang-european
When you get errors like the one below while compiling a document:
! LaTeX Error: File `etaremune.sty' not found.
Then please look at how to install .sty files: http://www.hannahdee.eu/blog/?p=835 and perform this trick on your instance for the given .sty
file(s).