YUM warehouse deployment and NFS sharing service
YUM Overview:
YUM (yellow dog updater modified), based on the software update mechanism built RPM package can automatically resolve dependencies and all the packages provided by a centralized YUM repositories
Provide a way depots
1. FTP service: ftp: // ......
2. HTTP service: http: // ......
3. Local directory: File: // ......
Source RPM package
1. Centos release of RPM package collection
2. The third-party organization released a set of RPM packages
3. User-defined set of packet RPM
Construction of Centos7 remote depot concrete steps
1. Under mnt to mount the image file / directory
2. Install the ftp service
yum install vsftpd -y
3./var/ directory appear the next time a ftp directory, in ftp directory New Folder centos7
4. The mount point, the contents mnt to copy all of the new folder centos7
[root@localhost ftp]# cp -rf /mnt/* centos7 &
5. Create another extension directory other
6. Establish extensions directory
[root@localhost ftp]# createrepo -g /mnt/repodata/repomd.xml /other
7. Turn service
[root@localhost ~]# systemctl start vsftpd
8. Turn off the firewall
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
9. Go to the client virtual machine, install the ftp service
yum install ftp -y
10. Enter /etc/yum.repos.d directory
cd /etc/yum.repos.d/
11. Create a new folder bak, all files in the current directory to the folder as a backup bak
mkdir look
etc. * .repo behind
12. Clear the cache yum
yum clean all
13. Create a new repo file
[root@promote yum.repos.d]# vim centos7.repo
14. Load yum warehouse
Yum list
15. Try yum install package
The installation was successful, indicating that our remote depot should be established,