我想安装 PHP7,在 Centos 上你只能通过安装额外的存储库来做到这一点。我看到了各种各样的(remi、ius、webtatic),论坛上的评论既有赞成也有反对。
我不是在征求个人意见,但我感兴趣的是选择一个而不是另一个的专业原因是什么 - 我应该考虑的标准以及我应该避免的可能陷阱。
我已经在我的服务器上安装了 EPEL 存储库。我想安装一些新的东西,但 yum 出现此错误:
PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again
当我检查 EPEL(编者注:实际上是 CentALT 但为了清楚起见保留原始) url 时,我收到了这个url错误:
403 Forbidden - nginx
Run Code Online (Sandbox Code Playgroud)
所以我决定换个EPEL源码。我完成了http://howto.wikin.com/wiki/How_to_Delete_Centos_Repositories删除以前的存储库的步骤,当我yum repolist得到这个时:
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.gtcomm.net
* extras: centos.mirror.gtcomm.net
* updates: centos.mirror.iweb.ca
http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The …Run Code Online (Sandbox Code Playgroud) 标题说明了一切。我想在同一台机器上有 2 个版本的 java。例如14.0.1.7和14.0.2.12(它们都在 EPEL7 存储库中)。
如果我通过 一个一个地安装它们yum,yum 将删除第一个版本并只保留最后一个。如果我通过rpm依赖项安装它们会被解析但不会自动安装。如果我首先安装 withyum和第二个 withrpm然后它可以工作并且它保留两个版本,但rpm如果在某个时候弹出,则不会安装任何其他依赖项,并且能够仅通过一个工具来完成它会很酷。
所有提到的java都是OpenJDK;EPEL7 有这些滚动包(例如:java-14-openjdk-14.0.1.7-2.rolling.el7.x86_64, java-14-openjdk-14.0.2.12-1.rolling.el7.x86_64)。
有任何想法吗?
我正在使用带有 EPEL 存储库的全新安装的 CentOS 6.4 (x86-64)。
$ yum install nodejs
...
$ node -v
v0.10.5
Run Code Online (Sandbox Code Playgroud)
到目前为止,npm一切都很好,但是当我尝试安装时,我会收到以下错误消息:
$ yum install npm
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* epel: mirror.fraunhofer.de
* extras: centos.psw.net
* updates: centos.psw.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package npm.noarch 0:1.2.17-5.el6 will be installed
--> Processing Dependency: npm(which) < 2 for package: npm-1.2.17-5.el6.noarch
--> Processing Dependency: npm(uid-number) < 1 for package: npm-1.2.17-5.el6.noarch …Run Code Online (Sandbox Code Playgroud) 我在运行 yum update 时收到以下错误。在我安装了错误的 EPEL 包 (epel-release-6-8.noarch) 后,我开始收到这些错误。我已经删除并安装了 epel-release-7-5.noarch 。
谁能帮我解决这个问题?
运行 CentOS 7
[xxxxxx]# yum 更新 加载的插件:fastestmirror 从缓存的主机文件加载镜像速度 * 基础:centos.mirror.nac.net * epel:mirror.cogentco.com * 附加:mirror.us.leaseweb.net * 更新:mirror.sanctuaryhost.com 解决依赖关系 --> 运行事务检查 ---> 包 jansson.x86_64 0:2.4-6.el7 将更新 ---> 包 jansson.x86_64 0:2.6-1.el6 将会更新 ---> 软件包 python-boto.noarch 0:2.25.0-2.el7.centos 将更新 ---> 包 python-boto.noarch 0:2.34.0-4.el6 将是一个更新 --> 处理依赖:python(abi) = 2.6 for package: python-boto-2.34.0-4.el6.noarch --> 处理依赖:python-rsa for package: python-boto-2.34.0-4.el6.noarch ---> 软件包 python-jsonpointer.noarch 0:1.0-2.el7.centos 将更新 ---> 包 python-jsonpointer.noarch 0:1.0-3.el6 将是一个更新 --> 处理依赖:python(abi) = 2.6 for package: python-jsonpointer-1.0-3.el6.noarch ---> …
.. 看起来至少有两个来自 EPEL 的包坏了:
[alexus@wcmisdlin02 ~]$ sudo yum update --skip-broken
Loaded plugins: refresh-packagekit, security
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package libmodplug.x86_64 0:0.8.7-1.el6.rf will be updated
--> Processing Dependency: libmodplug.so.0()(64bit) for package: gstreamer-plugins-bad-0.10.19-3.el6.rf.x86_64
---> Package libmodplug.x86_64 1:0.8.8.3-2.el6 will be an update
---> Package npm.noarch 0:1.2.17-5.el6 will be updated
---> Package npm.noarch 0:1.3.3-1.el6 will be an update
--> Running transaction check
---> Package libmodplug.x86_64 0:0.8.7-1.el6.rf will be updated
---> Package libmodplug.x86_64 1:0.8.8.3-2.el6 will be an update …Run Code Online (Sandbox Code Playgroud)