金融其它Linuxyum

Linux中安装yum

Linux中安装yum
as4

安装的yum是从centos升级到RHEL4
1.需要的rpm包(附件中给出)
从上到下安装防止依赖问题
centos-yumconf-4-4.5.noarch.rpm
python-elementtree-1.2.6-7.el4.rf.i386.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
yum-2.4.2-0.4.el4.rf.noarch.rpm

rpm -ivh *.rpm

需要修改/etc/yum.repos.d/CentOS-Base.repo文件内容(下载附件有此文件)
直接覆盖文件

安装完以上所有安装包就执行如下命令
   导入GPG Key
  rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
或rpm --import http://www.haoxm.net/tools/RPM-GPG-KEY-CentOS-4

此时yum安装完毕


yum 的参数list/search/install/upgrade/remove
ep:
#yum install firefox
参与3

2同行回答

qihongqihong其他wu
附件在哪里?显示全部
附件在哪里?收起
2012-07-20
浏览1434
unixlinuxsysunixlinuxsys软件开发工程师GUANGZHOUCTO
http://dag.wieers.com/rpm/FAQ.php#B4B4. How do I use Yum ?Yum is an update-tool written in python. The advantage of Yum is that it is written in Python. The disadvantage is that there are many versions of Yum, and only recent versions work with recen...显示全部
http://dag.wieers.com/rpm/FAQ.php#B4








B4. How do I use Yum ?
Yum is an update-tool written in python. The advantage of Yum is that it is written in Python. The disadvantage is that there are many versions of Yum, and only recent versions work with recent distributions. If you like to use a single tool across all distributions, it's better to use Apt.

Yum is usually already installed if you're running Fedora Core. In case you are using Red Hat Enterprise Linux or an older Red Hat Linux distribution. You can find Yum at: http://dag.wieers.com/packages/yum/

The configuration of Yum is inside the rpmforge-release package. You need to install it yourself.

If you've done that, the rest is simple. Upgrade your system by doing:
yum update
You can add new software by typing:
yum install
Or update installed software:
yum update
Or search for software in the local repository meta-data:
yum search
Or simply list all available software:
yum list available
From time to time you may want to save some diskspace:
yum clean收起
互联网服务 · 2012-01-18
浏览1539

提问者

yinxin
系统管理员银信长远
擅长领域: 服务器存储虚拟化

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2012-01-18
  • 关注会员:1 人
  • 问题浏览:6133
  • 最近回答:2012-07-20
  • X社区推广