####linux中的软件管理####
####1.使用已经网络安装资源安装软件####
vim /etc/yum.repos.d/yum.repo ##文件名称必须以repo结尾
[rhel7.3] ##仓库名称
name=rhel7.3 ##对软件源的描述
baseurl=hattp://172.25.254.27/rhel7.3/x86_64/dvd ##网络安装源
gpgcheck=0 ##不检测gpgkey
enabled=1 ##此安装源语句块生效
yum clean all ##清空系统中原有的yum信息
####2.配置本地yum源####
1.获得一个与本机系统版本一致的系统镜像
2.挂载镜像
mount /xxx/xxxxxx.sio /rhel7.3
3.设定永久挂载
vim /etc/rc.d/rc.local
mount /xxx/xxxxxx.iso /rhel7.3
chmod 755 /etc/rc.d/rc.local ##在系统开机时会自动执行此脚本
4.设定系统安装源指向
vim /etc/yum.repos.d/yum.repo
[rhel7.3]
name=rhel7.3
baseurl=hattp:///rhel7.3/x86_64
gpgcheck=0
yum clean all
yum install dhcp -y
####3.共享型yum源的部署####
1.在一台已经配置好本地yum源的主机中安装httpd
yum install httpd
2.配置网络yum源
systemctl start httpd
systemctl stop firewalld
systemctl enab