centos 如何安装yum的方法
2011-02-17 11:39
477 查看
CentOS 5 i386:
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-27.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.8.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm # (1)
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm (2)
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm (2)
rpm -Uvh elfutils-libs-0.137-3.el5.i386.rpm
rpm -Uvh gmp-4.1.4-10.el5.i386.rpm
rpm -Uvh readline-5.1-3.el5.i386.rpm
rpm -Uvh python-2.4.3-27.el5.i386.rpm
rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh libxml2-2.6.26-2.1.2.8.i386.rpm
rpm -Uvh libxml2-python-2.6.26-2.1.2.8.i386.rpm
rpm -Uvh expat-1.95.8-8.2.1.i386.rpm
rpm -Uvh python-elementtree-1.2.6-5.i386.rpm
rpm -Uvh sqlite-3.3.6-5.i386.rpm
rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -Uvh elfutils-0.137-3.el5.i386.rpm
rpm -Uvh rpm-python-4.4.2.3-18.el5.i386.rpm # (1)
rpm -Uvh m2crypto-0.16-6.el5.6.i386.rpm
rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -Uvh yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
rpm -Uvh yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm yum-3.2.22-20.el5.centos.noarch.rpm
yum -y update
CentOS 5 X86_64:
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-27.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-18.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget ftp://ftp.sunet.se/pub/Linux/distributions/centos/5.5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
wget ftp://ftp.sunet.se/pub/Linux/distributions/centos/5.5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpmrpm -Uvh gmp-4.1.4-10.el5.x86_64.rpm
rpm -Uvh readline-5.1-3.el5.x86_64.rpm
rpm -Uvh python-2.4.3-27.el5.x86_64.rpm
rpm -Uvh libxml2-2.6.26-2.1.2.8.x86_64.rpm
rpm -Uvh libxml2-python-2.6.26-2.1.2.8.x86_64.rpm
rpm -Uvh expat-1.95.8-8.2.1.x86_64.rpm
rpm -Uvh python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh sqlite-3.3.6-5.x86_64.rpm
rpm -Uvh python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh elfutils-libelf-0.137-3.el5.x86_64.rpm
rpm -Uvh elfutils-0.137-3.el5.x86_64.rpm
rpm -Uvh rpm-4.4.2.3-18.el5.x86_64.rpm
rpm -Uvh rpm-python-4.4.2.3-18.el5.x86_64.rpm
rpm -Uvh m2crypto-0.16-6.el5.6.x86_64.rpm
rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -Uvh yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
rpm -Uvh yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-3.2.22-26.el5.centos.noarch.rpm
yum -y update
如上述文件找不到,可到http://rpm.pbone.net/,找查找,然后继续安装
注意:安装的时候最好几个同时安装,如果单个安装的话可能会出现依赖问题。
出现了相互依赖的问题。
混在一起安装,如
# rpm -ihv xxx.rpm yyyy.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-libs-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-27.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.8.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm # (1)
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm (2)
wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm (2)
rpm -Uvh elfutils-libs-0.137-3.el5.i386.rpm
rpm -Uvh gmp-4.1.4-10.el5.i386.rpm
rpm -Uvh readline-5.1-3.el5.i386.rpm
rpm -Uvh python-2.4.3-27.el5.i386.rpm
rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh libxml2-2.6.26-2.1.2.8.i386.rpm
rpm -Uvh libxml2-python-2.6.26-2.1.2.8.i386.rpm
rpm -Uvh expat-1.95.8-8.2.1.i386.rpm
rpm -Uvh python-elementtree-1.2.6-5.i386.rpm
rpm -Uvh sqlite-3.3.6-5.i386.rpm
rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -Uvh elfutils-0.137-3.el5.i386.rpm
rpm -Uvh rpm-python-4.4.2.3-18.el5.i386.rpm # (1)
rpm -Uvh m2crypto-0.16-6.el5.6.i386.rpm
rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -Uvh yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
rpm -Uvh yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm yum-3.2.22-20.el5.centos.noarch.rpm
yum -y update
CentOS 5 X86_64:
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-27.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-18.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget ftp://ftp.sunet.se/pub/Linux/distributions/centos/5.5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
wget ftp://ftp.sunet.se/pub/Linux/distributions/centos/5.5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpmrpm -Uvh gmp-4.1.4-10.el5.x86_64.rpm
rpm -Uvh readline-5.1-3.el5.x86_64.rpm
rpm -Uvh python-2.4.3-27.el5.x86_64.rpm
rpm -Uvh libxml2-2.6.26-2.1.2.8.x86_64.rpm
rpm -Uvh libxml2-python-2.6.26-2.1.2.8.x86_64.rpm
rpm -Uvh expat-1.95.8-8.2.1.x86_64.rpm
rpm -Uvh python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh sqlite-3.3.6-5.x86_64.rpm
rpm -Uvh python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh elfutils-libelf-0.137-3.el5.x86_64.rpm
rpm -Uvh elfutils-0.137-3.el5.x86_64.rpm
rpm -Uvh rpm-4.4.2.3-18.el5.x86_64.rpm
rpm -Uvh rpm-python-4.4.2.3-18.el5.x86_64.rpm
rpm -Uvh m2crypto-0.16-6.el5.6.x86_64.rpm
rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -Uvh yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
rpm -Uvh yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-3.2.22-26.el5.centos.noarch.rpm
yum -y update
如上述文件找不到,可到http://rpm.pbone.net/,找查找,然后继续安装
注意:安装的时候最好几个同时安装,如果单个安装的话可能会出现依赖问题。
出现了相互依赖的问题。
混在一起安装,如
# rpm -ihv xxx.rpm yyyy.rpm
相关文章推荐
- 如何解决在centos上面用yum不能安装redis
- Centos 64位使用 yum 会安装两个相同软件包的解决方法
- 在Centos中yum安装和卸载软件的使用方法
- flash player在centos 6.5上的安装步骤(yum方法)
- [Linux]在Centos中yum安装和卸载软件的使用方法
- 如何在CentOS 6上通过YUM安装Nginx和PHP-FPM
- 如何在CentOS 7上安装Vmware 10?成功安装Vmware 10的方法
- 在Centos中yum安装和卸载软件的使用方法
- centos 6.5 YUM安装软件 错误提示 No more mirrors to try. 如何解决
- CentOS 7中利用yum安装Nginx的方法教程
- CentOS 7.0下使用yum安装mysql的方法详解
- 在Centos中yum安装和卸载软件的使用方法
- CentOS 5.5 安装Apache+MySQL+PHP(yum直接安装,mysql自动备份,mysql忘记密码的找回方法)
- CentOS 5 上使用yum同时安装32位和64位包的解决方法
- 在Centos中yum安装和卸载软件的使用方法
- centos下yum搭建安装linux+apache+mysql+php环境的方法
- CentOS 5.5如何通过yum安装Zend Optimizer
- CentOS 6.5 中 Yum 方法安装 MySQL 5.7 完整步骤
- CentOS 7.0 YUM安装配置LAMP服务器方法(Apache+PHP+MariaDB)
- 安装centos mini版,无法联网,用yum安装软件提示 cannot find a valid baseurl for repo:base/7/x86_64 的解决方法