Amazon ec2 にレポジトリを追加する方法

docs.aws.amazon.com

 

 

[ec2-user ~]$ yum repolist all

 

 


repo id repo name status !amzn-main/latest amzn-main-Base enabled: 5,612 amzn-main-debuginfo/latest amzn-main-debuginfo disabled amzn-main-source/latest amzn-main-source disabled amzn-nosrc/latest amzn-nosrc-Base disabled amzn-preview/latest amzn-preview-Base disabled amzn-preview-debuginfo/latest amzn-preview-debuginfo disabled amzn-preview-source/latest amzn-preview-source disabled !amzn-updates/latest amzn-updates-Base enabled: 1,152 amzn-updates-debuginfo/latest amzn-updates-debuginfo disabled amzn-updates-source/latest amzn-updates-source disabled epel/x86_64 Extra Packages for Enterprise Linux 6 - x86_64 disabled epel-debuginfo/x86_64 Extra Packages for Enterprise Linux 6 - x86_64 - Debug disabled epel-source/x86_64 Extra Packages for Enterprise Linux 6 - x86_64 - Source disabled epel-testing/x86_64 Extra Packages for Enterprise Linux 6 - Testing - x86_64 disabled epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug disabled epel-testing-source/x86_64 Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source disabled

 

 

[ec2-user ~]$ sudo yum-config-manager --add-repo https://www.example.com/repository.repo

 

 


[ec2-user ~]$
sudo yum-config-manager --enable epel