Redhat linux 6.5 yum安裝
一:刪除已有的yum
rpm -qa|grep yum
rpm -qa|grep yum|xargs rpm -e --nodeps
rpm -qa|grep yum
二:安裝新的yum
wget /> wget /> wget />
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
三:檔案配置
cd /etc/yum.repos.d/
wget />
vim CentOS6-Base-163.repo 檔案中的所有$release用6.6代替
[base]
name=CentOS-6.6 - Base - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
gpgkey= />
#released updates
[updates]
name=CentOS-6.6 - Updates - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
gpgkey= />
#additional packages that may be useful
[extras]
name=CentOS-6.6 - Extras - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
gpgkey= />
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.6 - Plus - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
enabled=0
gpgkey= />
#contrib - packages by Centos Users
[contrib]
name=CentOS-6.6 - Contrib - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
enabled=0
gpgkey= />
四:使配置生效
yum clean all
yum makecache
yum update
五:防火牆配置
vi /etc/sysconfig/iptables
/etc/init.d/iptables restart
rpm -qa|grep yum
rpm -qa|grep yum|xargs rpm -e --nodeps
rpm -qa|grep yum
二:安裝新的yum
wget /> wget /> wget />
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
三:檔案配置
cd /etc/yum.repos.d/
wget />
vim CentOS6-Base-163.repo 檔案中的所有$release用6.6代替
[base]
name=CentOS-6.6 - Base - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
gpgkey= />
#released updates
[updates]
name=CentOS-6.6 - Updates - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
gpgkey= />
#additional packages that may be useful
[extras]
name=CentOS-6.6 - Extras - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
gpgkey= />
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.6 - Plus - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
enabled=0
gpgkey= />
#contrib - packages by Centos Users
[contrib]
name=CentOS-6.6 - Contrib - 163.com
baseurl= /> #mirrorlist= /> gpgcheck=1
enabled=0
gpgkey= />
四:使配置生效
yum clean all
yum makecache
yum update
五:防火牆配置
vi /etc/sysconfig/iptables
/etc/init.d/iptables restart
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28624388/viewspace-1773642/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RedHat Linux安裝CentOS YUMRedhatLinuxCentOS
- RedHat Linux 本地Yum源安裝RedhatLinux
- Redhat 5 上安裝yumRedhat
- CentOS release 6.5 yum安裝報錯CentOS
- RedHat 6.5離線安裝GCC方法RedhatGC
- redhat linux 5 之配置YUM源並安裝包RedhatLinux
- RedHat6.5如何更新為CentOS6.5的YUM源RedhatCentOS
- redhat6.5 配置使用centos的yum源RedhatCentOS
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- RHEL6.5使用安裝光碟搭建本地YUM
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- RedHat6.5 安裝Oracle 12c RACRedhatOracle
- Linux 安裝 yumLinux
- linux 安裝yum 安裝phpLinuxPHP
- redhat配置yum環境安裝rpm包Redhat
- linux配置本地yum安裝--FTP yumLinuxFTP
- 【Linux】yum 安裝nginxLinuxNginx
- [重慶思莊每日技術分享]-Redhat Linux 6.5安裝ORACLE ASMLIBRedhatLinuxOracleASM
- linux redhat 6.5 多路徑配置LinuxRedhat
- Linux安裝MySQL(使用yum)LinuxMySql
- linux下yum安裝mongoLinuxGo
- linux系統安裝yumLinux
- Linux下安裝java及配置(yum安裝)LinuxJava
- Linux(01):RedHat 7.6 安裝LinuxRedhat
- 使用Yum安裝MongoDB Linux版MongoDBLinux
- redhat6.5中Rac11g安裝錯誤筆記Redhat筆記
- REDHAT6.5上安裝 iRedMail-0.9.5 開源郵件伺服器安裝方案RedhatAI伺服器
- redhat linux 6.2 安裝配置GUIRedhatLinuxGUI
- yum安裝
- mysql安裝 (yum 安裝)MySql
- CentOS 6.5安裝Oracle 11.2.0.4------CentOS 6.5安裝CentOSOracle
- redhat 6.5安裝11gr2 RAC的過程及設定Redhat
- Linux上yum安裝mysql5.6LinuxMySql
- linux下yum無法安裝lrzszLinux
- RedHat Linux Enterprise 5.4 yum 配置RedhatLinux
- yum 安裝 PHPPHP
- mysql yum 安裝MySql
- yum安裝nginxNginx