Articles of yum

百胜configuration通过代理必要?

我试图让我的yumconfiguration再次工作,但它停在下面: yum update–verbose Config time:0.091 Yum Version: 3.2.22 Setting up Package Sacks Loading mirror speeds from cached hostfile 在最后一行yum只是无限期地挂起。 我注意到那里没有设置http_proxyvariables,并且/etc/yum.conf中没有任何内容表示代理,但是如果使用以下命令设置http_proxy: export http_proxy=http://localhost:8080/ 然后在/etc/yum.conf中设置: proxy=http://localhost:8080/ 运行上面的相同命令时出现以下错误: yum update–verbose Config time:0.091 Yum Version: 3.2.22 Setting up Package Sacks Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was [Errno 4] IOError: <urlopen error (111, […]

使用yum安装或从源代码安装应用程序 – apache2

我有一个安装apache2到Linux机器的要求,例如:Centos 6.3。 这可以通过以下方式完成: 从源代码安装apache2:从站点下载.tar文件并运行 $ ./configure $ make $ make install 或者我可以直接使用互联网安装,例如: $ yum install httpd 我可以用上面提到的方法安装apache的最佳方法是什么?

CentOS 6.5:yum坚持在64位安装上安装32位软件包,导致multilib问题

今天早上我试图在我的一台服务器上安装libvirt。 yum安装失败,出现与plymouth-core-libs软件包相关的multilib问题。 后来,在尝试yum更新时,我得到了一个类似的问题,但是multilib问题的包是:dbus-libs。 再仔细观察一下,看起来好像yum尝试安装这些软件包的32位(i686)版本出于某种原因,尽pipe安装了64位软件包。 rpm -qa显示没有安装这些软件包的32位版本。 有什么想尝试下一个尝试进入一个良好的状态(并希望更喜欢64位软件包)? 输出:检查 # yum check Loaded plugins: fastestmirror kernel-2.6.32-431.el6.x86_64 has missing requires of dracut-kernel >= ('0', '002', '18.git413bcf78') kernel-2.6.32-431.3.1.el6.x86_64 has missing requires of dracut-kernel >= ('0', '002', '18.git413bcf78') Error: check all 更新 # yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.sunet.se * extras: […]

不能在guest虚拟机上使用yum – 在主机上的iptables上怀疑端口80转发错误?

这个设置有什么问题? 主机和客户都是CentOS 6.5 具体来说,我不能在客人身上运行。 我可以愉快地ping /来宾,包括pinging mirrorlist.centos.org 如果我从主机iptables删除端口80规则(见下文),那么yum工作正常。 但是我需要这个规则,所以我可以使用guest作为一个可公开访问的web服务器。 yum更新输出: Loaded plugins: fastestmirror Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28, 'connect() timed out!') Error: Cannot find a valid baseurl for repo: base 来宾有一个192.168.122.47的IP,和我设置了下面的ssh端口转发工作,但百胜没有。 访客iptables已被禁用。 主机iptables: # Generated by iptables-save v1.4.7 on Sat May 10 15:54:24 2014 *filter […]

没有可用的Yum上的PHP-GD包…但它是

到目前为止我所做的 安装了CentOS 6.5 x64 安装了cPanel 将REMI和EPEL存储库添加到系统中 试过yum –enablerepo=remi,epel install php-gd 响应: 没有包php-gd可用。 完全响应 root@hostname [~]# yum –enablerepo=remi install php-gd –verbose Loading "fastestmirror" plugin Loading "security" plugin Config time: 0.042 Yum Version: 3.2.29 Setting up Package Sacks Loading mirror speeds from cached hostfile * base: centos.mirror.crucial.com.au * epel: mirror.optus.net * extras: centos.mirror.crucial.com.au * remi: remi.kazukioishi.net * […]

linux yum协助安装中的D选项是什么?

当我在Linux上安装yum安装程序时,我得到了这样的东西: 这是好的[y / d / N]:_ 那么…什么是“D”选项?

为什么我应该防止yum更新kerneI?

当我偶然发现一堆关于从更新内核包中禁用yum的文章时,我正在Google上搜寻一些文章。 现在我想知道为什么我应该这样做。 当我更新系统时,我更新所有软件包。 即使内核更新会弄乱一些你可以随时更新的东西(Centos有能力维护less量的内核)。 最后如果你有糟糕的一天更新任何包可以搞砸了,但保持系统是最新的安全基本规则之一。 我错了吗 ? 为什么我应该防止内核更新百胜?

使用remi repos升级到PHP 5.6.7

我在我的remi.repo文件中启用了PHP 5.6 ,其他部分都没有启用 ,唯一启用的其他部分是[remi]本身。 [remi] name=Les RPM de remi pour Enterprise Linux 6 – $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-php55] … enabled=0 … [remi-php56] name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 – $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror # WARNING: If you enable this repository, you must also enable "remi" enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi […]

Yum没有在Amazon实例上工作

Yum在我的一些亚马逊实例上失败了,我试图跟进亚马逊人,但是无法修复。 下面是错误,python和yum版本信息: [root@myhost_test.cache]# yum list Loaded plugins: priorities, s3iam, update-motd, upgrade-helper Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 355, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 174, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 572, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", […]

RHEL6安装了rpmforge的错误版本

我为el7安装了rpmforge的错误版本。 然后我运行了一个更新,在我的系统上安装了这个软件包 python-crypto-2.6.1-1.el7.rf.x86_64 注意el7,但我在rhel6。 然后我意识到并删除了错误的存储库,并为el6安装了正确的存储库。 $ rpm -qa | grep rpmfor rpmforge-release-0.5.2-2.el6.rf.x86_64 但是上面的过程已经打破了更新过程,我知道我可以使用–skip-broken选项。 如何降级上述软件包。 我试图卸载并再次安装它,但我得到这个错误: Error: Trying to remove "c4ebpl", which is protected 它显示了一些不能删除的保护包。 更新进程使用sudo yum update给我这个错误: Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge) Requires: libgmp.so.10()(64bit) Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: python-crypto-2.6.1-1.el7.rf.x86_64 (rpmforge) Requires: python(abi) = 2.7 Installed: python-2.6.6-52.el6.x86_64 (@el66/$releasever) python(abi) = 2.6 Error: Package: […]