Articles of 百胜

用PHP 5.2.17在CentOS 5.6中安装php-soap

yum安装php-soap 导致“没有包php-soap可用”警告。 从/etc/yum.conf中删除“exclude = php *”会导致确认安装php-soap&php-common VERSION 5.1.6-39.el5_8。 我害怕安装php版本5.1.6 *的PHP组件与PHP 5.2.17的操作系统。 我可以做? 以前的5.1.6 *组件会不会导致后来的5.2.17 php环境出现问题?

在CentOS 5.4上将PHP从5.1升级到5.2

我正在尝试在CentOS 5.4上将php 5.1升级到5.2 我用: yum upgrade php 结果是这样(查看最后一部分): [root@mail httpd]# yum update php Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.raystedman.net * base: mirrors.serveraxis.net * centosplus: mirrors.tummy.com * contrib: mirror.raystedman.net * extras: mirror.raystedman.net * updates: mirrors.netdna.com Setting up Update Process Resolving Dependencies –> Running transaction check –> Processing Dependency: php = […]

设置RHEL默认的yum存储库

我一直负责在RHEL 6服务器上设置PHP。 运行yum install php给我以下输出: Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Setting up Install Process No package php available. Error: Nothing to do /etc/yum.repos.d有两个文件: redhat.repo : # # Certificate-Based Repositories # Managed by (rhsm) subscription-manager # rhel-source.repo : [rhel-source] name=Red Hat Enterprise Linux $releasever – $basearch – Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release […]

由于依赖性的怪异,无法升级clamav

我正在尝试将我的clamav安装升级到最新版本(0.95.2)。 我正在运行CentOS 5.3,并添加了rpmforge。 我正在使用的命令是 yum upgrade clam* 我收到这个错误消息: Resolving Dependencies –> Running transaction check –> Processing Dependency: clamav = 0.95.1-4.el5.rf for package: clamd —> Package clamav.x86_64 0:0.95.2-4.el5.rf set to be updated —> Package clamav-db.x86_64 0:0.95.2-4.el5.rf set to be updated –> Finished Dependency Resolution clamd-0.95.1-4.el5.rf.x86_64 from installed has depsolving problems –> Missing Dependency: clamav = 0.95.1-4.el5.rf […]

rkhunter报告文件属性的变化,但是我没有看到他们已经被yum更新了

也许我很谨慎,但是我最近收到了来自rkhunter的警告: Warning: The file properties have changed: File: /bin/dmesg Current hash: e94b12f49e53695bf5161a445c00b3f97e37e9a8 Stored hash : 4cc922b102987beea5ec3e10f283b08cfd942658 Current file modification time: 1263983792 (20-Jan-2010 05:36:32) Stored file modification time : 1252007551 (03-Sep-2009 15:52:31) Warning: The file properties have changed: File: /bin/kill Current hash: 12f2d4e21474ccdb989c9ee4d4102917e51d8d7b Stored hash : 8e14ca5dbdc158a833c2d861bf682e31aae24675 Current file modification time: 1263983792 (20-Jan-2010 05:36:32) Stored file […]

我应该如何在CentOS 5.5(64位)上升级Python

我相信我正在CA AppLogic 3.0上运行CentOS 5.5(64位)。 uname -a说 Linux LINUX64 2.6.18-194.32.1.el5xen #1 SMP Wed Jan 5 18:44:24 EST 2011 x86_64 x86_64 x86_64 GNU/Linux 我升级了yum upgrade ,但我的Python仍然在版本2.4.3。 yum info python说 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.5ninesolutions.com * extras: mirrors.cmich.edu * updates: mirror.5ninesolutions.com Installed Packages Name : python Arch : x86_64 Version : […]

好的实践来更新服务器?

我有很多运行CentOS 5.*和CentOS 6.*服务器,我想更新它们,但是有一些应用程序正在运行,我可能会崩溃这些应用程序,这使得我在写这篇文章时会考虑到这个问题。 你们推荐我做什么?

如何解决在bash中检查是否安装了RPM软件包的function?

我写了这个函数: function isInstalled { if [ rpm -q $1 &> /dev/null ]; then echo 'installed'; return 1; else echo 'not installed'; return 0; fi } 但是有些事情是错的。 它总是返回0.即使包安装。 我想我没有正确地检查返回信号。 [vagrant@centos-7 ~]$ isInstalled wget2 not installed [vagrant@centos-7 ~]$ isInstalled wget not installed [vagrant@centos-7 ~]$ rpm -q wget wget-1.14-10.el7_0.1.x86_64

没有findSUDO YUM

我在亚马逊的linux上运行Amazon EC2实例。 每当我运行任何sudo yum它给我这个: sudo: yum: command not found ec2-user$ rpm -qf /usr/bin/yum yum-3.2.29-30.24.amzn1.noarch ec2-user$ which yum /usr/bin/yum 在根which yum给出: root$ which yum /usr/bin/which: no yum in (/sbin:/bin:/usr/sbin:/usr/bn:/usr/local/bin:/opt/aws/bin) 这是两天前的一个新的ec2实例。 当我第一次login时,我跑了sudo yum update ,一切都很好。 什么改变了?

mrepo – 如何保留旧版本

我有一个通过mrepo / createrepo更新的本地yum仓库,我的所有服务器都针对这个本地仓库进行更新,但是它总是安装最后一个不适合生产环境的版本。 我想执行一个程序来控制哪个版本的包被授权被客户拉取。 所以我需要有多个版本的软件包。 我在/etc/mrepo.conf中尝试了下面的参数,但是在' mrepo -uvvg ' mirrordir-cleanup = no reposync-cleanup = no reposync-newest-only = no rhnget-cleanup = no rhnget-download-all = yes rsync-cleanup = no /etc/mrepo.d/centos.conf: [centos6] name = CentOS Repo $release ($arch) release = 6 arch = x86_64 metadata = repomd repoview yum ### Additional repositories centos6 = http://mirror.csclub.uwaterloo.ca/centos/$release/os/$arch/ centos6-updates=http://mirror.csclub.uwaterloo.ca/centos/$release/updates/$arch/