发布时间:2014-09-05 16:45:50作者:知识屋
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
1.163 http://mirrors.163.com/.help/centos.html
priority=9
2.epel http://fedoraproject.org/wiki/EPEL
priority=9
3.RPMforge http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01
priority=9
4.RPMFusion http://mirrors.163.com/.help/rpmfusion.html http://rpmfusion.org/ http://rpmfusion.org/Configuration/
su -c 'rpm -Uvh http://mirrors.163.com/rpmfusion/free/el/updates/testing/6/x86_64/rpmfusion-free-release-6-0.1.noarch.rpm http://mirrors.163.com/rpmfusion/nonfree/el/updates/testing/6/x86_64/rpmfusion-nonfree-release-6-0.1.noarch.rpm'
priority=9
CentOS6-Base-163.repo priority=1 priority=2
CentOS-Base.repo.backup
CentOS-Debuginfo.repo priority=1 priority=2
CentOS-Media.repo priority=1 priority=2
epel.repo priority=10 priority=11
epel-testing.repo priority=10 priority=11
rpmfusion-free-updates.repo priority=20 priority=21
rpmfusion-free-updates-testing.repo priority=21
rpmfusion-nonfree-updates.repo priority=20 priority=21
rpmfusion-nonfree-updates-testing.repopriority=21
rpmforge.repo priority=30 priority=31
yum makecache
yum check-update
yum update
uname -pr
yum install yumex
yum install ntfs-3g.x86_64
yum install proftpd.x86_64
rpm - gadmin-proftpd-0.4.0-0.1.rhfc12.nr.i686.rpm
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
rpm -ivh foo-1.0-1.i386.rpm
###########################
http://mirrors.163.com/.help/centos.html
http://www.librehat.info/04/redhat-yum-rpm-repo/
官方国内镜像>epel>rpmforge>rpmfusion (priority的值
1. RPMforge for CentOS 6
The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default.
You can find a complete listing of the RPMforge package packages at http://packages.sw.be/
Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i
i686 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above.
Install DAG's GPG key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
If you get an error message like the following the key has already been imported:
error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.
Verify the package you have downloaded
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the md5sum of the key injection package, and trust Dag, et al., then it should be as safe as your trust of them extends.
Install the package
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
This will add a yum repository config file and import the appropriate GPG keys.
Then try to install something like this
yum install htop
第1步:安装centos6,并添加centos的升级镜像,添加epel镜像
首先备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
然后下载epel库安装
wget http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
rpm -Uhv epel-release-6-5.noarch.rpm
运行yum makecache生成缓存
如果出错,检查下163的镜像库是否有问题。
vim CentOS6-Base-163.repo
将对应的addons内容注释掉,因为库还没出来,所以必须注释掉
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons - 163.com
#baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
第2步,安装编译程序所需要的日常库
sudo -s
LANG=C
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel /
libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses /
ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl /
openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
linux一键安装web环境全攻略 在linux系统中怎么一键安装web环境方法
Linux网络基本网络配置方法介绍 如何配置Linux系统的网络方法
Linux下DNS服务器搭建详解 Linux下搭建DNS服务器和配置文件
对Linux进行详细的性能监控的方法 Linux 系统性能监控命令详解
linux系统root密码忘了怎么办 linux忘记root密码后找回密码的方法
Linux基本命令有哪些 Linux系统常用操作命令有哪些
Linux必学的网络操作命令 linux网络操作相关命令汇总
linux系统从入侵到提权的详细过程 linux入侵提权服务器方法技巧
linux系统怎么用命令切换用户登录 Linux切换用户的命令是什么
在linux中添加普通新用户登录 如何在Linux中添加一个新的用户
2012-07-10
CentOS 6.3安装(详细图解教程)
Linux怎么查看网卡驱动?Linux下查看网卡的驱动程序
centos修改主机名命令
Ubuntu或UbuntuKyKin14.04Unity桌面风格与Gnome桌面风格的切换
FEDORA 17中设置TIGERVNC远程访问
StartOS 5.0相关介绍,新型的Linux系统!
解决vSphere Client登录linux版vCenter失败
LINUX最新提权 Exploits Linux Kernel <= 2.6.37
nginx在网站中的7层转发功能