标签: yum

YUM 未在 CentOS 6 上安装来自 EPEL 的某些软件包

我一整天都在试图解决这个问题,但没有那么幸运。我正在尝试从 EPEL 存储库安装 phpmyadmin 和其他软件包,但命令 (yum install phpmyadmin) 返回“没有可用的 phpmyadmin 软件包”。我已经安装和卸载了 EPEL 无数次,但这也没有帮助。非常感谢任何帮助。

$ 百胜重新发布

 Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
  * base: centos.someimage.com
  * epel: epel.mirror.constant.com
  * extras: mirror.net.cen.ct.gov
  * remi: rpms.famillecollet.com
  * rpmforge: repoforge.mirror.constant.com
  * updates: mirror.atlanticmetro.net
  * webtatic: us-east.repo.webtatic.com
 repo id        repo name                                               status
 base           CentOS-6 - Base                                          6,281+86
 epel           Extra Packages for Enterprise Linux 6 - x86_64          9,660+814
 extras         CentOS-6 - Extras                                              14
 remi           Les RPM de remi pour Enterprise Linux 6 - …
Run Code Online (Sandbox Code Playgroud)

centos repository yum phpmyadmin

0
推荐指数
1
解决办法
1万
查看次数

在 CENTOS 7.3 x86_64 上找不到 davfs2 软件包

我在尝试在 CentOS 服务器上安装 davfs2 时遇到一些问题,我运行

 yum install davfs2
Run Code Online (Sandbox Code Playgroud)

但我明白了:

 Loaded plugins: fastestmirror, langpacks, priorities, universal-hooks
 Loading mirror speeds from cached hostfile
  * EA4: 91.197.228.252
  * cpanel-addons-production-feed: 91.197.228.252
  * base: centos.quelquesmots.fr
  * centosplus: centos.mirror.fr.planethoster.net
  * extras: centos.quelquesmots.fr
  * rpmforge: mirrors.ircam.fr
   * updates: centos.quelquesmots.fr
  Nothing to do
Run Code Online (Sandbox Code Playgroud)

不确定,但也许我需要向我的发行版添加更多镜像,如果不可能安装 davfs2 我想知道在 CentOS 中将 webdav 路由挂载为文件夹的其他替代方案,cadaver 是一个 webdav 客户端,但我无法用它挂载文件夹...

谢谢你们,祝你有美好的一天

webdav centos yum

0
推荐指数
1
解决办法
3311
查看次数

如何在没有互联网连接的情况下安装 yum rpm 软件包?

这个问题以前有人问过,但我的有点不同。

我想使用 sudo yum 安装一堆 rpm 包。我想安装它们的机器上没有互联网连接。这些包也不存在于网络中的任何机器上。

有没有一种方法可以在没有互联网连接的情况下安装它们,并且它们不在网络中的任何机器上的任何地方(因此不能使用 --downloadonly 选项)?

installation rpm yum internet-connection

0
推荐指数
1
解决办法
9999
查看次数

ansible yum 检查更新解析输出以获取包列表

我想解析 yum check-update ansible 的输出,相当于仅获取人类可读格式的包列表。

到目前为止我的代码:

- name: check for updates
  hosts: localhost
  gather_facts: true

  tasks:

 - name: check for updates (yum)
   yum: list=updates update_cache=true
   register: yumoutput
   when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
 - debug: msg={{ yumoutput.stdout | from_json }}
Run Code Online (Sandbox Code Playgroud)

但我得到:

致命:[localhost]:失败!=> {“msg”:“({{ yumoutput.stdout | from_json }})上发生意外的模板类型错误:预期的字符串或缓冲区”}

编辑:完整的剧本:

---
- name: check for updates
  hosts: localhost
  gather_facts: true

  tasks:
  - name: check for updates (yum)
    yum: list=updates update_cache=true
    register: yumoutput
    when: ansible_distribution == 'CentOS' or …
Run Code Online (Sandbox Code Playgroud)

linux yum ansible

0
推荐指数
1
解决办法
2万
查看次数

AWS EC2 - yum 更新在 AutoScaling LaunchConfig UserData 中不起作用

sudo yum update当通过 ssh 连接到我的 EC2 实例时,我可以成功运行。但是,当我将相同的命令附加到启动配置的 userData 时,我看到以下错误(在 中/var/log/cloud-init-output.log):

launch script..
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:
Run Code Online (Sandbox Code Playgroud)

我的脚本:

#!/bin/bash
echo "launch script.."
sudo yum update -y
sudo yum install java-1.8.0 -y
aws s3 cp s3://bucket/app.jar ./app.jar
java -jar app.jar …
Run Code Online (Sandbox Code Playgroud)

yum startup amazon-ec2 amazon-web-services

0
推荐指数
1
解决办法
2229
查看次数

在没有 gcc8 的生产环境中运行使用 gcc8 构建的程序

我的开发/生产环境都是 CentOS-7.7。为了用 gcc-8.3.0 编译我的程序,我在我的开发环境中安装了“devtoolset-8”,但它不能像 CentOS7 最初附带的 gcc-4.8.5 一样使用。每次需要编译程序时,必须使用“scl enable devtoolset-8 -- bash”切换到gcc8而不是gcc4.8.5。

当程序部署到生产环境时,没有gcc8,也没有libstdc++.so.6.0.25,所以它不能运行。我猜 libstdc++.so.6.0.25 应该和 gcc8 一起发布?我既不能在生产环境上安装“devtoolset-8”,也不能在生产环境上从源代码构建 gcc8。CentOS官方yum repo安装的libstdc++版本是libstdc++.so.6.0.19,所以我的程序无法在production-env中加载。如何让这样的程序运行?

谢谢!请原谅我丑陋的英语。

gcc centos yum libstdc++ devtoolset

0
推荐指数
1
解决办法
210
查看次数

更新已弃用的centos版本?

我刚刚重启了一台旧的Centos VM:CentOS Linux发行版7.1.1503(Core)

当我尝试做一个:sudo yum update

所有镜像都返回404 - 未找到.我在浏览器中尝试过,确实链接不再存在了.如何更新我的centos并让yum再次工作?

centos yum

-1
推荐指数
1
解决办法
980
查看次数

如何从 yum check-updates 中 grep 可用更新的计数

我想检查更新是否可用,如果有,请在安装更新之前执行一些步骤。我运行yum check-updates查看可用于已安装软件包的更新列表,但我希望grep获得一个可用于脚本中某些逻辑的计数bash。因此,理想情况下,如果没有更新,我希望grep输出并返回 0,或者如果有五个更新可用,那么我希望返回 5。check-updatesgrep

我怎样才能 grep 这个来返回计数?

bash grep yum

-1
推荐指数
1
解决办法
3816
查看次数

Linux +在数百台Linux机器上并行运行yum update的最佳方法是什么

我有大约700台Linux redhat机器

我想在所有它们上运行命令"yum update"

我正在考虑我的脚本中描述的以下方法

但我不确定我的脚本中的"yum update&"是否是正确的方法?

&被添加到命令以便独立运行命令

 more list.txt 

 server1
 server2 
 .
 .
Run Code Online (Sandbox Code Playgroud)

我的剧本

#!/bin/bash
SSH="/usr/bin/ssh -n -o  ConnectTimeout=5 -o StrictHostKeyChecking=no -xaq"


for server_name in ` cat list.txt `
do

echo "Run yum update on sevrer - $server_name"

$SSH $server_name "yum -y update &"

sleep 0.1

done
Run Code Online (Sandbox Code Playgroud)

我很高兴知道有关如何在700台机器上并行运行yum update的其他想法和建议

linux ssh bash redhat yum

-2
推荐指数
1
解决办法
350
查看次数

如何从CentOS中删除golang包

如何从CentOS中删除golang包.我无法"yum remove golang",因为它返回一个无匹配错误.如何在CentOS上执行通配符删除以删除所有以下包

golang.x86_64                           1.6.3-2.el7                    base     
golang-bin.x86_64                       1.6.3-2.el7                    base     
golang-bitbucket-kardianos-osext-devel.noarch
golang-bitbucket-ww-goautoneg-devel.noarch
golang-bitbucket-ww-goautoneg-unit-test.x86_64
golang-cover.x86_64                     0-1.0.hgd32b5854c941.el7       epel     
golang-docs.noarch                      1.6.3-2.el7                    base     
golang-github-codegangsta-cli-devel.noarch
golang-github-coreos-go-log-devel.noarch
golang-github-coreos-go-systemd-devel.noarch
golang-github-cpuguy83-go-md2man.x86_64 1.0.4-2.el7_2                  base     
golang-github-cpuguy83-go-md2man-devel.noarch
golang-github-docopt-docopt-go-devel.noarch
golang-github-fsouza-go-dockerclient-devel.x86_64
golang-github-godbus-dbus-devel.noarch  0-0.1.gitcb98efb.el7.centos    extras   
golang-pkg-linux-386.noarch             1.4.2-1.el7.centos             extras   
golang-pkg-linux-amd64.noarch           1.4.2-1.el7.centos             extras   
golang-pkg-linux-arm.noarch             1.4.2-1.el7.centos             extras   
golang-pkg-netbsd-386.noarch            1.4.2-1.el7.centos             extras   
golang-pkg-netbsd-amd64.noarch          1.4.2-1.el7.centos             extras   
golang-pkg-netbsd-arm.noarch            1.4.2-1.el7.centos             extras   
golang-pkg-openbsd-386.noarch           1.4.2-1.el7.centos             extras   
golang-pkg-openbsd-amd64.noarch         1.4.2-1.el7.centos             extras   
golang-pkg-plan9-386.noarch             1.4.2-1.el7.centos             extras   
golang-pkg-plan9-amd64.noarch           1.4.2-1.el7.centos             extras   
golang-pkg-windows-386.noarch           1.4.2-1.el7.centos             extras   
golang-pkg-windows-amd64.noarch         1.4.2-1.el7.centos             extras   
golang-src.noarch                       1.6.3-2.el7                    base     
golang-tests.noarch                     1.6.3-2.el7                    base     
golang-vet.x86_64                       0-1.0.hgd32b5854c941.el7       epel     
golang-vim.noarch                       1.3.3-2.el7_0                  extras   
Run Code Online (Sandbox Code Playgroud)

linux centos yum go

-3
推荐指数
1
解决办法
2164
查看次数