How-to-create-custom-YUM-repository

How to create custom YUM repository

  1. download repository rpms

wget -m

  1. Create repository database

createrepo </path/to/repository>

  1. 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

  1. 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