首页 > IT职业 > IT职场 > linux下 yum相关
Yellowdog Updater, Modified
一个基于RPM包管理的字符前端软件包管理器。
能够从指定的服务器自动下载RPM包并且安装,可以处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。
简单来说就是软件仓库--yum源/仓库,类似于应用宝之类。
查看系统yum源可能出现的错误
[root@oldboy-50 ~]# yum repolistLoaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile repolist: 0 [root@oldboy-50~]# ls -l /etc/yum.repos.dtotal 40 -rw-r--r-- 1 root root 2572 Jul 2 2014 CentOS-Base.repo/etc/yum.repos.d目录下的 .repo文件的内容没有 或 被删除都可以导致找不到yum源。 会出现以上的错误。
[root@znix ~]# yum install treeLoaded plugins: fastestmirror, security Existing lock /var/run/yum.pid: another copy is running as pid 5219. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 23 M RSS (859 MB VSZ) Started: Fri Sep 15 08:46:52 2017 - 00:12 ago State : Sleeping, pid: 5219 状态 :pid 5219 正在运行的yum的pid
1)可以等待该yum程序执行完毕,就可以进行安装
2)可以 使用kill命令 将这个pid进程结束进程
[root@znix ~]# ps -ef |grep 5219root 5219 5095 44 08:52 pts/1 00:00:21 /usr/bin/python /usr/bin/yum makecache root 5232 5146 0 08:53 pts/2 00:00:00 grep --color=auto 5219
原文出处:https://www.cnblogs.com/wenrulaogou/p/9488317.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/625/viewspace-2812265/ ,如需转载,请注明出处,否则将追究法律责任。