![]() ![]() ![]() Note: Use double slashes in the baseurl and 192.168.1.101 is yum server IP Address. vi /etc//localrepo.repoĪnd add the following contents: Create a new repository file as shown above under /etc// directory. Reboot your server to take effect the changes. To disable SELinux, edit file /etc/sysconfig/selinux, vi /etc/sysconfig/selinux To disable the Firewalld, enter the following commands: systemctl stop firewalld So, to reduce the complexity, I disabled both Firewalld and SELInux. Install 1 Package (+4 Dependent packages)Īs we are going to use the local repository only in our local area network, there is no need for firewall and SELinux. Mailcap noarch 2.1.41-2.el7 localrepo 31 k > Package mailcap.noarch 0:2.1.41-2.el7 will be installed > Package httpd-tools.x86_64 0:2.4.1 will be installed > Processing Dependency: /etc/mime.types for package: httpd-2.4.1.x86_64 > Processing Dependency: httpd-tools = 2.4.1 for package: httpd-2.4.1.x86_64 > Package httpd.x86_64 0:2.4.1 will be installed Loading mirror speeds from cached hostfile Sample Output: Loaded plugins: fastestmirror Yum install -disablerepo="*" -enablerepo="localrepo" httpd Next install vsftpd package and let the packages available over FTP to your local clients. ![]() Now the CentOS installation DVD is mounted under /mnt directory. For example, let us mount the installation media on /mnt directory. ![]() In this tutorial, I use two systems as described below: Yum Server OS : CentOS 7 (Minimal Install)Ĭlient IP Address : 192.168.1.102 Prerequisitesįirst, mount your CentOS 7 installation DVD. Because all required packages are downloaded over the fast LAN connection from your local server, so that it will save your Internet bandwidth and reduces your annual cost of Internet. If you have to install software, security updates and fixes often in multiple systems in your local network, then having a local repository is an efficient way. Also, the same steps should work on RHEL and Scientific Linux 7 systems too. This tutorial describes how to setup a local Yum repository on CentOS 7 system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |