--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.7.el6.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.12.7-1.1.el6 set to be updated
--> Finished Dependency Resolution
[root@BJ1 glibc]# ll
total 30696
-rw-r--r-- 1 root root 1161176 Sep 19 18:06 glib2-2.22.5-5.el6.i686.rpm
-rw-r--r-- 1 root root 1176560 Sep 19 18:06 glib2-2.22.5-5.el6.x86_64.rpm
-rw-r--r-- 1 root root 1312492 Sep 19 18:06 glib2-devel-2.22.5-5.el6.i686.rpm
-rw-r--r-- 1 root root 1313524 Sep 19 18:06 glib2-devel-2.22.5-5.el6.x86_64.rpm
-rw-r--r-- 1 root root 4466416 Sep 19 18:06 glibc-2.12-1.7.el6.i686.rpm
-rw-r--r-- 1 root root 3920028 Sep 19 18:06 glibc-2.12-1.7.el6.x86_64.rpm
-rw-r--r-- 1 root root 14815992 Sep 19 18:06 glibc-common-2.12-1.7.el6.x86_64.rpm
-rw-r--r-- 1 root root 983372 Sep 19 18:06 glibc-devel-2.12-1.7.el6.i686.rpm
-rw-r--r-- 1 root root 982972 Sep 19 18:06 glibc-devel-2.12-1.7.el6.x86_64.rpm
-rw-r--r-- 1 root root 605080 Sep 19 18:06 glibc-headers-2.12-1.7.el6.x86_64.rpm
-rw-r--r-- 1 root root 157512 Sep 19 18:06 glibc-utils-2.12-1.7.el6.x86_64.rpm
-rw-r--r-- 1 root root 278096 Sep 19 18:06 glibmm24-2.22.1-1.el6.x86_64.rpm
-rw-r--r-- 1 root root 111912 Sep 19 18:09 nss-softokn-freebl-3.12.7-1.1.el6.i686.rpm
-rw-r--r-- 1 root root 117720 Sep 19 18:09 nss-softokn-freebl-3.12.7-1.1.el6.x86_64.rpm
[root@BJ3 glibc]# rpm -ivh * --force --nodeps
ls: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by ls)
9d78d513d98112fe01bec1291a16a637440bc2307ac0d16568d4e55f9214051a1727a5ac26524655c4c40c7001df5e5d9ae73602200351ecdadf883b81e6d43f2ff97c68315ad51f4c844fbb8c067bce7ad61cabb81894a7ed68c8b9d2a48f07089c14127af7a1d6051d519133ae436afef6c71540424bfcba6f78ac527022c8254ab316f2e238390780f48c594b927bd1644280af42ea784deb
/lib/ld-linux.so.2 :bad ELF interpreter
2 卸载/挂载RHLE5系统盘
卸载(防止意外,所以先卸载几下,再放系统盘)
umount /dev/cdrom
umount /dev/cdrom
挂载到/mnt目录下面
mount /dev/cdrom /mnt
ls /mnt
命令:mount -t auto /dev/cdrom /mnt/cdrom这命令就是把CentOS CDROM挂载在/mnt/cdrom目录中,这里我就可以访问里面的内容了。
rpm -ivh jdk-1_5_0_07-linux-i586.rpm --nodeps --force
CentOS与redhat安装YUM是一样的,服务器配置命令1 配IPifconfig eth0 192.168.1.2 netmask 255.255.255.0ifconfig 查看2 卸载/挂载RHLE5系统盘卸载(防止意外,所以先卸载几下,再放系统盘)umount /dev/cdromumount /dev/cdrom挂载到/mnt目录下面mount /dev/cdrom /mntls /mnt3 查看软件包vsftpd,并安装,再启动vsftpd服务! cd /mnt/Server (S大写)!!!注意,一下都在Server目录下工作的!查看ls | grep vsftpd (用ls过滤没有安装的RPM软件包)!!!注意:是没有安装的RPM软件包,已安装的用命令 “rpm -qa 软件包名”查看!安装rpm -ivh vsftpd-2.0.5-16.e15.i386.rpm (可以用Tab键补全)启动service vsftpd start4 复制光盘/mnt/Server/目录下的软件到硬盘/var/ftp/的目录下ls /var/ftpcp -rvf /mnt/Server /var/ftp (v选项能在屏幕上显示复制过程)等几分钟.......(因为软件很多,有好几个G!)5 查看软件包createrepo,并安装,再刷新/var/ftpcd /mnt/Server查看ls | grep createrepo安装rpm -ivh createrepo-0.4.11-3.e15.noarch.rpm刷新createrepo -v /var/ftp(服务器刷新软件并联关系)等几分钟........(因为软件很多,有好几个G!)6 编辑配置文件/etc/yum.repos.d/rhel-debuginfo.repovi /etc/yum.repos.d/rhel-debuginfo.repo文件内容保留下面这些就可以了:[Server]name=Serverbaseurl=ftp://192.168.1.2/enabled=1gpgcheck=07 这时YUM服务器已完成,如想安装什么软件包yum -y install 软件包名称
http://blog.csdn.net/songyuhongnannan/article/details/7392413
1.我先下载了一个中科大的yum源的文件
先备份一下/etc/yum.repos.d/CentOS-Base.repo
#mv /etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.bak
#wget http://mirrors.ustc.edu.cn/centos/CentOS-Base.5.mirrors.repo -O /etc/yum.repos.d/CentOS-Base.repo
2.然后把/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-$releasever - Base
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.ustc.edu.cn/centos/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
更改一下源的路径就行了。现在可以更新Centos 6.0了。