linux基础命令day11--入门篇

157 阅读1分钟

- yum仓库的使用:

     mount /dev/cdrom /root/dvd

image.png

      yum repolist -v (如果没有配置yum仓库,具体方法看day09) 

image.png

      yum常用选项:
                 
                 -y (安装或卸载时一路确认)
                 -install (软件安装)
                 -remove  (软件卸载)
                 -repolist (查询yum源信息)
                 -v    (查看软件包集群详细显示)
                 list  (查看某软件的安装包)
                 search (查看某软件的安装包只不过是模糊查找)
                 info    (查看软件的信息)
                 provides  (查看是哪一个安装包产生的文件)
                 clean all  (清除缓存)
                 check-update  (检查是否有可更新的软件包)
                 update (更新软件包)

src=http___hbimg.b0.upaiyun.com_b45d271549ff486dee917f80ff3932016b0fa1062549-AEgzQK_fw236&refer=http___hbimg.b0.upaiyun.jpg

     yum -y install zip

image.png

     yum -y install zip

image.png

     yum info firefox

image.png

     yum list firefox

image.png

     yum search f | tail

image.png

     yum clean all

image.png

     yum provides firefox

image.png