日志分类:linux
[root@localhost src]# rpm -ivh awstats-6.8-1.noarch.rpm
error: Failed dependencies:
perl(LWP::UserAgent) is needed by awstats-6.8-1.noarch
[root@localhost src]#
使用rpm属性相依套件的档案
[root@localhost src]# rpm -qpR awstats-6.8-1.noarch.rpm
/bin/sh
/usr/bin/perl
config(awstats) = 6.8-1
perl >= 0:5.005
perl(LWP::UserAgent)
perl(POSIX)
perl(Socket)
perl(Time::Local)
perl(strict)
perl(vars)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[root@localhost src]#
[root@localhost src]# rpm -qpR awstats-6.7-1.noarch.rpm
/bin/sh
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
/usr/bin/perl
[root@localhost src]#
最新的rpm包不能在centos5.2上面安装,需要先安装perl(LWP::UserAgent),但是6.7-1包就可以直接安装
2条评论 »
两个途径可以加速yum的速度,大家可根据情况自己组合使用。
使用http-proxy , 设置方法不说了,就是修改/etc/yum.conf,或者直接在/etc/profile添加以下语句http_proxy="http: //user:password@server ip:3128"export http_proxy记得保存后 source该配置文件,使配置生效。
使用yum的扩展插件yum-fastestmirror,个人认为这个插件非常有效,速度真的是明显提高,安 装只要yum -y install yum-fastestmirror 就行。希望通过以上方法,能解除yum的漫长等待过程。...
发表评论 »
2008-07-10,星期四 | 分类:
linux | 297 views
<html>
<title>动态变量写法</title>
<body>
<?php
$name="John" ;
$$name="Lee" ;
echo "1. $$name <br>" ;
echo "2. ${$name} <br>" ;
echo "3. ".$$name."<br>" ;
echo "4. ".${$name} ;
?>
</body>
</html>
输出:
1. $John
2. Lee
3. Lee
4. Lee
发表评论 »
2008-06-30,星期一 | 分类:
linux | 218 views
[root@localhost ~]# yum -y install lynx ← 安装lynx
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for lynx to pack into transaction set.
lynx-2.8.5-18.2.i386.rpm 100% |=========================| 21 kB 00:00
---> ...
发表评论 »
Pages:
Prev
1
2
3
...11
12
13
14
15
...54
55
56
Next