Linux下的软件管理技巧
1.利用本地镜像搭建yum源
(1)
挂载镜像
设定永久挂载
(2)配置本机yum源方向
rm -fr /etc/yum.repos.d/*
vim /etc/yum.repos.d/yum.repo
解释说明:
3)安装资源共享服务
yum install httpd -y
systemctl stop firewalld
systemctl disable firewalld
systemctl start httpd
systemctl enable httpd
(4)建立共享目录,并挂在镜像文件到共享目录上
mkdir /var/www/html/rhel7.3
umount /mnt
mount rhel-server-7.3-x86_64-dvd.iso /var/www/html/rhel7.3
(5)测试
在浏览器中输入:http://本机ip/rhel7.3
可以看到镜像中的内容
(6)修改本机yum源指向
name=rhel7.3
baseurl=file:///var/www/html/rhel7.3
gpgcheck=0
2.详解yum命令
示例
yum install software
yum remove software
yum info software
3.rpm命令及第三方软件的安装
以安装画图为例