免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1072 | 回复: 0
打印 上一主题 下一主题

rhel4使用apt-get升级方法(转) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-05 15:52 |只看该作者 |倒序浏览
[color="#02368d"]rhel4使用apt升级方法
        
        
            
        
        
            
        
        
            
            
               
                    
                        
                        
                        
Apt for RHEL4
                        
                        apt下载页面:http://dag.wieers.com/packages/apt/
                        
                        [root@netgate ~]# wget http://dag.wieers.com/packages/apt/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 http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.4-1.el4.rf.i386.rpm
                        
                        [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 http://apt.sw.be redhat/el4/en/i386/dag repomd.xml [1128B]
                        Fetched 1128B in 1s (833B/s)
                        Get:1 http://apt.sw.be redhat/el4/en/i386/dag/ primary.xml [1244kB]
                        Get:2 http://apt.sw.be 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
                        
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93633/showart_1890632.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP