Setup Local Yum Repository On CentOS 7/Rhel7
First, mount your CentOS 7 installation DVD. For example, let us mount the installation media on /mnt directory. mount /dev/cdrom /mnt/ Now the CentOS installation DVD is mounted under /mnt directory. Next install vsftpd package and let the packages available over FTP to your local clients. To do that change to /mnt/Packages directory: cd /mnt/Packages/ Now install vsftpd package: rpm -ivh vsftpd-3.0.2-9.el7.x86_64.rpm Enable and start vsftpd service: systemctl enable vsftpd systemctl start vsftpd We need a package called “createrepo” to create our local repository. So let us install it too. If you did a minimal CentOS installation, then you might need to install the following dependencies first: rpm -ivh libxml2-python-2.9.1-5.el7.x86_64.rpm rpm -ivh deltarpm-3.6-3.el7.x86_64.rpm rpm -ivh python-deltarpm-3.6-3.el7.x86_64.rpm Now install “createrepo” package: rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm Build Local Repository ...