Chinaunix首页 | 论坛 | 博客
  • 博客访问: 206523
  • 博文数量: 38
  • 博客积分: 1032
  • 博客等级: 少尉
  • 技术积分: 260
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-14 18:14
文章分类

全部博文(38)

文章存档

2017年(2)

2016年(1)

2015年(10)

2012年(3)

2011年(1)

2010年(7)

2009年(14)

分类: LINUX

2010-02-02 10:01:54


看一下centos 5的部分:

首先确定你安装了 .

Protectbase

yum-protectbase在CentOS 5包仓库里面有提供:

#yum install yum-protectbase

在CentOS 5里面这个插件默认启动 .

编辑/etc/yum.repos.d/CentOS-Base.repo ,[base][update][centosplus] 段末加上一行:

protect=1

让 [centosplus] 段失效如下:

enabled=0

编辑/etc/yum.repos.d/CentOS-Base.repo ,在其它段的最后加上如下一行:

protect=0

rpmforge

下载rpmforge-release包.选择下面两个的其中一个, 依赖于你的机器.如果不能确定用哪一个用以下命令确定 uname -i

  • i386

  • x86_64

(你可以在 找到rpmforge-release包的完全列表,但是推荐使用上面列出两个中的一个).

安装DAG's GPG key

#rpm --import 

校验你下载的包

#rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm

安全警告: rpmforge-release包把GPG keys注射到你的RPM数据库中. 只要你验证包和相信Dag,它应该是安全的.

安装包

#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm

这一步会加入yum仓库配置文件,注射合适的GPG keys.

用以下命令测试:

#yum check-update

应该会有以下两行输出:

Loading "protectbase" plugin
...
76 packages excluded due to repository protections

上面的数字可能不同, 但应该有几种包显示会排除在外.

如果是这样大概它可以运转了,试着你这样安装一些东西 :

#yum install mplayer




PS: 发现一个MPlayer的另一个前端SMPlayer也可以使用.没有编译好的RPM包.但是这个可以用.

/etc/yum.repos.d/CentOS-Base.repo内容示范:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]

name=CentOS-5 - Base

baseurl=

gpgcheck=1

protect=1

#released updates

[update]

name=CentOS-5 - Updates

baseurl=

gpgcheck=1

protect=1

#packages used/produced in the build but not released

[addons]

name=CentOS-5 - Addons

baseurl=

gpgcheck=1

protect=0

#additional packages that may be useful

[extras]

name=CentOS-5 - Extras

baseurl=

gpgcheck=1

protect=0

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-5 - Plus

baseurl=

gpgcheck=1

enabled=0

protect=1

#contrib - packages by Centos Users

[contrib]

name=CentOS-5 - Contrib

baseurl=

gpgcheck=1

enabled=0

protect=0

#packages in testing

[testing]

name=CentOS-5 - Testing

baseurl=

gpgcheck=1

enabled=0

protect=0

当然,要想播放rm/rmvb还需要将codecs和wincodecs解压到/usr/lib,就是把codecs解压到/usr/lib/codecd, wincodecd解压到/usr/lib/wincodecs。

阅读(3044) | 评论(0) | 转发(1) |
0

上一篇:linux 下Raid 详解

下一篇:free bsd 使用手册

给主人留下些什么吧!~~