Chinaunix首页 | 论坛 | 博客
  • 博客访问: 373913
  • 博文数量: 49
  • 博客积分: 3380
  • 博客等级: 中校
  • 技术积分: 610
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-10 19:56
文章分类

全部博文(49)

文章存档

2011年(18)

2010年(1)

2009年(30)

我的朋友

分类: LINUX

2009-04-05 15:52:04

rhel4使用apt升级方法


Apt for RHEL4

apt下载页面:

[root@netgate ~]# wget apt-0.5.15lorg3.1-4.el4.rf.i386.rpm
...
[root@netgate ~]# rpm -ivh apt-0.5.15lorg3.1-4.el4.rf.i386.rpm
Preparing...                ########################################### [100%]
   1:apt                    ########################################### [100%]
[root@netgate ~]# wget

[root@netgate ~]# rpm -Uvh rpmforge-release-0.3.4-1.el4.rf.i386.rpm
Preparing...                ########################################### [100%]
        package rpmforge-release-0.3.4-1.el4.rf is already installed

安装后,如果使用代理上网,设置下/etc/apt/apt.conf文件,在proxy中填入代理服务器即可.


升级信息:
[root@netgate ~]# apt-get update
Get:1 redhat/el4/en/i386/dag repomd.xml [1128B]
Fetched 1128B in 1s (833B/s)
Get:1 redhat/el4/en/i386/dag/ primary.xml [1244kB]
Get:2 redhat/el4/en/i386/dag/ filelists.xml [1592kB]
Fetched 2836kB in 2m13s (21.2kB/s)
Reading Package Lists... Done
Building Dependency Tree... Done

系统升级:
[root@netgate ~]# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
apt convmv freetype freetype-devel mtr nmap python-elementtree
python-urlgrabber rsync syslinux xrestop yum
The following packages have been kept back
lftp
12 upgraded, 0 newly installed, 0 removed and 1 not upgraded.
Need to get 4685kB of archives.
After unpacking 2767kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
...

安装软件包:
apt-get install XXX

阅读(1570) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~