yum install httpd服务找不到包:No package httpd available [root@VM-4-2-centos apache-config]# sudo yum install httpd 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile 没有可用软件包 httpd。 错误:无须任何处理 解决办法 yum --disableexcludes=all install -y httpd 1....
这个明显就是linux yum仓库的设置问题了。在rhel的系统中yum仓库是要进行订阅的,或者自己进行本地yum源的创建。本地yum源的创建方法:vi /etc/yum.repos.d/test.repo [test]name=test baseurl=file:///mnt enabled=1 pgpcheck=0 :wq mount /dev/sr0 /mnt yum仓库的验证:yum repolist yum ...
6)卸载程序:[root@localhost ~]# yum -y remove httpd 7)如果命令失效怎么办:比如 ifconfig。 ① 直接 yum -y install ifconfig ② 如果不能解决,直接查询命令出处:[root@localhost ~]# yum provides ifconfig ③ 安装对应的安装包 列如: [root@localhost yum.repos.d]# ifconfig bash: ifconfig: 未找...
7)[root@localhost sunjimeng]# yum -y install httpd 给指定命令-y参数默认所有的询问都答Y。 [root@localhost sunjimeng]# yum -y install httpd 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: m...
[root@iZxud3oy997uh8Z ~]# yum install httpd Warning: failed loading ‘/etc/yum.repos.d/CentOS-Base.repo’, skipping. Last metadata expiration check: 0:59:01 ago on Fri 14 Aug 2020 09:02:24 AM CST. Error: Problem: conflicting requests...
yum list httpd 这里是可获得包,说明还没有安装。 yum info rpm显示安装包rpm的详细信息 3 yum安装 yum -y install httpd 如果你不加-y他会问你要不要安装。如果你想自己来控制有些包是否安装,这里不要加-y,如果你想自动安装,不进行交互,这里加入-y。这个就是yum 的安装了,非常简单。
[root@RJ ~]# yum install httpd -y已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfileThere are no enabled repos.Run "yum repolist all" to see the repos you have.To enable Red Hat Subscription Management repositories: subscription-manager repos --enable <repo>To enable ...
3.yum install httpd 4.cat /etc/yum.conf |grep cachedir cachedir=/var/cache/yum 5.跳到上述目录 cd cachedir=/var/cache/yum && tree ./ 6.这个时候的目录树中应该可以找到你需要的安装包了。 配置yum源结束之后,要清空yum 缓存,并重建yum缓存,执行以下命令: ...
检查软件包名称和版本:确保要安装的httpd软件包名称和版本正确。可以使用命令"yum search httpd"来搜索可用的httpd软件包,并选择合适的版本进行安装。 检查依赖关系:httpd软件包可能有一些依赖关系,需要先安装相关的依赖包。可以使用命令"yum deplist httpd"来查看httpd软件包的依赖关系,并逐个安装缺失的依赖包。