How to create custom YUM repository
- download repository rpms
wget -m
- Create repository database
createrepo </path/to/repository>
- Configure YUM repository
vim /etc/yum.repos.d/php70_local.repo [php70_local] name=php70_local baseurl=file:///opt/repos/php70 enabled=1 gpgcheck=0
- Check repolist and install some packages yum repolist yum install php-7
NEXT DEMO: Access the newly created YUM repository from remote hosts using http