Linux运维入门~15.yum源配置

给自己虚拟机配置yum源
添加光驱,将镜像文件(装机文件)导入光驱


根目录下创建目录,将光驱挂载到该目录上(df查看)
mkdir /rhel7.2
mount /dev/sr0 /rhel7.2/  挂载


vim /etc/yum.repo.d/yum.repo

[westos]                     仓库名
name=rhel7.2                 名称
baseurl=file:///rhel7.2      yum源路径
gpgcheck=0                   是否检测gpgkey (是否检测第三方软件)

即可以使用yum指令安装软件

安装完毕

常用的yum指令

yum        install        softwarename    ##安装
        repolist            ##列出设定yum源信息
        remove        softwarename    ##卸载
        list        softwarename    ##查看软件源中是否有次软件
        list all            ##列出所有软件名称
        list installd            ##列出已经安装的软件名称
        list available            ##列出可以用yum安装的软件名称
        clean all            ##清空yum缓存
        search        softwareinfo    ##根据软件信息搜索软件名字
        whatprovides    filename    ##在yum源中查找包含filename文件的软件包        
        update                ##更新软件
        history                ##查看系统软件改变历史
        reinstall    softwarename    ##重新安装
        info        softwarename    ##查看软件信息
        groups list            ##查看软件组信息
        groups info    softwaregroup    ##查看软件组内包含的软件
        groups install    softwaregroup    ##安装组件
        groups remove    softwaregroup    ##卸载组件

软件包名称详解
kolourpaint-4.10.5-4.e17.x86_64.rpm
    [1]      [2]      [3]   [4]  [5]
1软件名词
2版本
3适用系统
4架构
5适用于rpm体系软件   redhat packages manager

写在最后,如果大家喜欢linux运维方面的知识,欢迎关注本博主,会每周更新与linux运维相关的一些小知识,帮助大家入门

愿你与我一同成长!

往期:

ttps://blog.csdn.net/Stella_Pooter/article/details/82951345        Linux运维入门~1.虚拟机使用

https://blog.csdn.net/Stella_Pooter/article/details/82952307      Linux运维入门~2.命令行使用技巧

https://blog.csdn.net/Stella_Pooter/article/details/82960344      Linux运维入门~3.文件管理

https://blog.csdn.net/Stella_Pooter/article/details/82971516      Linux运维入门~4.输入输出管理与vim管理

https://blog.csdn.net/Stella_Pooter/article/details/82983752      Linux运维入门~5.用户管理

https://blog.csdn.net/Stella_Pooter/article/details/82986125      Linux运维入门~6.文件权限管理

https://blog.csdn.net/Stella_Pooter/article/details/82989454      Linux运维入门~7.进程管理

https://blog.csdn.net/Stella_Pooter/article/details/83000027      Linux运维入门~8.sshd服务管理

https://blog.csdn.net/Stella_Pooter/article/details/83052049      Linux运维入门~9.文件传输

https://blog.csdn.net/Stella_Pooter/article/details/83090110      Linux运维入门~10.系统日志管理与时间同步

https://blog.csdn.net/Stella_Pooter/article/details/83111320      Linux运维入门~11.网络设置与路由器

https://blog.csdn.net/Stella_Pooter/article/details/83116835      Linux运维入门~12.DHCP服务配置

https://blog.csdn.net/Stella_Pooter/article/details/83273956      Linux运维入门~13.如何让你的虚拟机联网及DNS设置

https://blog.csdn.net/Stella_Pooter/article/details/83303100      Linux运维入门~14.虚拟机的安装及使用

Never say die

猜你喜欢

转载自blog.csdn.net/Stella_Pooter/article/details/83311261