Posts

Showing posts with the label local repo

How to create and add a Local YUM Repository on RHEL or CentOS 7

How to setup local yum repository on RHEL or CentOS 7?  This tutorial describes how to setup a local Yum repository on CentOS or RHEL 7 system. Later i will show you how you can use this repository to fetch software, security updates and fixes. Local repository is an efficient way to deploy new software's or patches as it will be over LAN where deployment will be fast, saving your internet bill. I have two CentOS 7 systems here one is YUM repository server and another will be Client which will fetch the updates from repository server over FTP protocol. Setting up YUM repo server with FTP: Step 1. Mount CentOS 7 ISO and copy all the RPM packages to a FTP directory: [root@localhost ~]# mount /dev/cdrom /mnt/ mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# mkdir /var/ftp/pub/localrepo [root@localhost ~]# cp -ar /mnt/Packages/* /var/ftp/pub/localrepo/ Step 2. Install vsftpd package and start it's service: [root@localhost ~]# cd /mn...