apt-get主要用于自动从互联网的软件仓库中搜索、安装、升级,卸载软件或操作系统
下载安装包
wget http://packages.sw.be/apt/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm
执行rpm -ivh wget http://packages.sw.be/apt/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm
修改下源文件 cp/etc/apt/sources.list.d/os.list/etc/apt/sources.list
vi /etc/apt/sources.list
# Name: Operating system and updates
### Red Hat Enterprise Linux
#repomd http://mirror.centos.org centos/$(VERSION)/os/$(ARCH)
#repomd http://mirror.centos.org centos/$(VERSION)/updates/$(ARCH)
#repomd http://mirror.centos.org centos/$(VERSION)/extras/$(ARCH)
#repomd http://mirror.centos.org centos/$(VERSION)/fasttrack/$(ARCH)
#repomd http://mrepo rhel$(VERSION)s-$(ARCH)/RPMS.os
#repomd http://mrepo rhel$(VERSION)s-$(ARCH)/RPMS.updates
#rpm http://mrepo rhel$(VERSION)s-$(ARCH) os updates
### Fedora Core Linux
#repomd http:/