Amazon AWS provides Deep Learning AMIs for those who want to quickly spin up an EC2 instance and have all the right stuff installed (PyTorch, NVIDIA drivers, and the like). This is great!
However, Amazon Linux doesn’t give users a direct method to install the epel-release
package, making it tricky to install git-lfs
. You have to install amazon-linux-extras
first and then register the epel-release packages, as I learned from this post on StackOverflow.
Here’s a summary for quick copy-pasting:
sudo yum install -y amazon-linux-extras
sudo amazon-linux-extras install epel -y
sudo yum-config-manager --enable epel
sudo yum install git-lfs
git lfs install
Great! Now you’ve got git-lfs
installed. Happy coding!
Note: If any of those steps fail for you, simply run sudo yum update
and retry!