Centos7 deployment YUM NFS storage and sharing service (a)

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

image.png


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

image.png


2. Install the ftp service

yum install vsftpd -y

image.png


3./var/ directory appear the next time a ftp directory, in ftp directory New Folder centos7

image.png


4. The mount point, the contents mnt to copy all of the new folder centos7

[root@localhost ftp]# cp -rf /mnt/* centos7 &

image.png


5. Create another extension directory other

image.png


6. Establish extensions directory

[root@localhost ftp]# createrepo -g /mnt/repodata/repomd.xml /other

image.png


7. Turn service

[root@localhost ~]# systemctl start vsftpd

image.png


8. Turn off the firewall

[root@localhost ~]# systemctl stop firewalld.service

[root@localhost ~]# setenforce 0

image.png


9. Go to the client virtual machine, install the ftp service

yum install ftp -y

image.png


10. Enter /etc/yum.repos.d directory

cd /etc/yum.repos.d/

image.png


11. Create a new folder bak, all files in the current directory to the folder as a backup bak

mkdir look

etc. * .repo behind

image.png


12. Clear the cache yum

yum clean all

image.png


13. Create a new repo file

[root@promote yum.repos.d]# vim centos7.repo

image.png


14. Load yum warehouse

Yum list

image.png


15. Try yum install package

image.png


The installation was successful, indicating that our remote depot should be established,


Guess you like

Origin blog.51cto.com/14469918/2436495