redhat6.3 64位更新源(使用网易源)全过程记录

来源:互联网 发布:网络公章在线制作 编辑:程序博客网 时间:2024/06/16 05:09

本篇博客参考:http://chinaxiaoyu.diandian.com/post/2013-01-24/40046529897。首先在浏览器中输入http://tel.mirrors.163.com/centos/ 查看最新的版本,截止到今天是6.4,然后就使用6.4的源;

在目录http://tel.mirrors.163.com/centos/6.4/os/x86_64/Packages/下载下面的软件包:


使用 rpm -Uvh --replacepkgs *.rpm --aid 进行安装:

[root@localhost matlab]# rpm -Uvh --replacepkgs *.rpm --aidwarning: python-iniparse-0.3.1-2.1.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEYPreparing...                ########################################### [100%]   1:yum-metadata-parser    ########################################### [ 25%]   2:python-iniparse        ########################################### [ 50%]   3:yum-plugin-fastestmirro########################################### [ 75%]   4:yum                    ########################################### [100%]
然后:

[root@localhost matlab]# cd /etc/yum.repos.d/[root@localhost yum.repos.d]# rm -rf ./*[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo--2013-08-25 19:48:18--  http://mirrors.163.com/.help/CentOS6-Base-163.repo正在解析主机 mirrors.163.com... 123.58.173.106正在连接 mirrors.163.com|123.58.173.106|:80... 已连接。已发出 HTTP 请求,正在等待回应... 200 OK长度:2006 (2.0K) [application/octet-stream]正在保存至: “CentOS6-Base-163.repo”100%[==============================================>] 2,006       --.-K/s   in 0.08s   2013-08-25 19:48:25 (23.1 KB/s) - 已保存 “CentOS6-Base-163.repo” [2006/2006])[root@localhost yum.repos.d]# lsCentOS6-Base-163.repo
编辑上面的文件  vi CentOS6-Base-163.repo ,把$releasever替换为6.4,然后:

[root@localhost yum.repos.d]# yum clean allLoaded plugins: fastestmirror, product-id, subscription-managerUpdating certificate-based repositories.Unable to read consumer identityCleaning repos: base extras updatesCleaning up Everything[root@localhost yum.repos.d]# yum makecacheLoaded plugins: fastestmirror, product-id, subscription-managerUpdating certificate-based repositories.Unable to read consumer identityDetermining fastest mirrorsbase                                                             | 3.7 kB     00:00     base/group_gz                                                    | 212 kB     00:00     base/filelists_db                                                | 5.9 MB     00:31     base/primary_db                                                                         base/other_db                                                                           extras                                                                                  extras/filelists_db                                                                     extras/prestodelta                                                                      extras/primary_db                                                                       extras/other_db                                                                         updates                                                                                 updates/filelists_db                                                                    updates/prestodelta                                                                     updates/primary_db                                                                      updates/other_db                                                                        Metadata Cache Created
然后使用:yum remove PackageKit

[root@localhost yum.repos.d]# yum remove PackageKitLoaded plugins: fastestmirror, product-id, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Remove ProcessResolving Dependencies--> Running transaction check---> Package PackageKit.x86_64 0:0.5.8-20.el6 will be erased--> Processing Dependency: PackageKit >= 0.5.0 for package: gnome-packagekit-2.28.3-3.el6.x86_64--> Processing Dependency: PackageKit = 0.5.8-20.el6 for package: PackageKit-glib-0.5.8-20.el6.x86_64--> Running transaction check---> Package PackageKit-glib.x86_64 0:0.5.8-20.el6 will be erased--> Processing Dependency: libpackagekit-glib2.so.12()(64bit) for package: PackageKit-gstreamer-plugin-0.5.8-20.el6.x86_64--> Processing Dependency: PackageKit-glib = 0.5.8-20.el6 for package: PackageKit-gstreamer-plugin-0.5.8-20.el6.x86_64--> Processing Dependency: PackageKit-glib = 0.5.8-20.el6 for package: PackageKit-device-rebind-0.5.8-20.el6.x86_64--> Processing Dependency: PackageKit-glib = 0.5.8-20.el6 for package: PackageKit-gtk-module-0.5.8-20.el6.x86_64---> Package gnome-packagekit.x86_64 0:2.28.3-3.el6 will be erased--> Running transaction check---> Package PackageKit-device-rebind.x86_64 0:0.5.8-20.el6 will be erased---> Package PackageKit-gstreamer-plugin.x86_64 0:0.5.8-20.el6 will be erased---> Package PackageKit-gtk-module.x86_64 0:0.5.8-20.el6 will be erased--> Finished Dependency ResolutionDependencies Resolved======================================================================================== Package      Arch   Version      Repository                                               Size========================================================================================Removing: PackageKit      x86_64 0.5.8-20.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 2.3 MRemoving for dependencies: PackageKit-device-rebind      x86_64 0.5.8-20.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 231 k PackageKit-glib      x86_64 0.5.8-20.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 734 k PackageKit-gstreamer-plugin      x86_64 0.5.8-20.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 232 k PackageKit-gtk-module      x86_64 0.5.8-20.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 231 k gnome-packagekit      x86_64 2.28.3-3.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 7.9 MTransaction Summary========================================================================================Remove        6 Package(s)Installed size: 12 MIs this ok [y/N]: y
Downloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum.** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:rhn-check-1.0.0-87.el6.noarch has missing requires of yum-rhn-plugin >= ('0', '0.9.1', '35')  Erasing    : gnome-packagekit-2.28.3-3.el6.x86_64                                 1/6   Erasing    : PackageKit-device-rebind-0.5.8-20.el6.x86_64                         2/6   Erasing    : PackageKit-gstreamer-plugin-0.5.8-20.el6.x86_64                      3/6   Erasing    : PackageKit-gtk-module-0.5.8-20.el6.x86_64                            4/6   Erasing    : PackageKit-0.5.8-20.el6.x86_64                                       5/6   Erasing    : PackageKit-glib-0.5.8-20.el6.x86_64                                  6/6 Loading mirror speeds from cached hostfileInstalled products updated.  Verifying  : PackageKit-glib-0.5.8-20.el6.x86_64                                  1/6   Verifying  : gnome-packagekit-2.28.3-3.el6.x86_64                                 2/6   Verifying  : PackageKit-gtk-module-0.5.8-20.el6.x86_64                            3/6   Verifying  : PackageKit-0.5.8-20.el6.x86_64                                       4/6   Verifying  : PackageKit-device-rebind-0.5.8-20.el6.x86_64                         5/6   Verifying  : PackageKit-gstreamer-plugin-0.5.8-20.el6.x86_64                      6/6 Removed:  PackageKit.x86_64 0:0.5.8-20.el6                                                      Dependency Removed:  PackageKit-device-rebind.x86_64 0:0.5.8-20.el6                                          PackageKit-glib.x86_64 0:0.5.8-20.el6                                                   PackageKit-gstreamer-plugin.x86_64 0:0.5.8-20.el6                                       PackageKit-gtk-module.x86_64 0:0.5.8-20.el6                                             gnome-packagekit.x86_64 0:2.28.3-3.el6                                                Complete!
然后使用命令yum remove gnome-packagekit
Loaded plugins: fastestmirror, product-id, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Remove ProcessNo Match for argument: gnome-packagekitLoading mirror speeds from cached hostfilePackage(s) gnome-packagekit available, but not installed.No Packages marked for removal
然后使用命令: yum install PackageKit

得到:

[root@localhost yum.repos.d]# yum install PackageKitLoaded plugins: fastestmirror, product-id, subscription-managerUpdating certificate-based repositories.Unable to read consumer identityLoading mirror speeds from cached hostfileSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package PackageKit.x86_64 0:0.5.8-21.el6 will be installed--> Processing Dependency: PackageKit-yum-plugin = 0.5.8-21.el6 for package: PackageKit-0.5.8-21.el6.x86_64--> Processing Dependency: PackageKit-yum = 0.5.8-21.el6 for package: PackageKit-0.5.8-21.el6.x86_64--> Processing Dependency: PackageKit-gtk-module = 0.5.8-21.el6 for package: PackageKit-0.5.8-21.el6.x86_64--> Processing Dependency: PackageKit-glib = 0.5.8-21.el6 for package: PackageKit-0.5.8-21.el6.x86_64--> Processing Dependency: libpackagekit-glib2.so.12()(64bit) for package: PackageKit-0.5.8-21.el6.x86_64--> Running transaction check---> Package PackageKit-glib.x86_64 0:0.5.8-21.el6 will be installed---> Package PackageKit-gtk-module.x86_64 0:0.5.8-21.el6 will be installed---> Package PackageKit-yum.x86_64 0:0.5.8-21.el6 will be installed---> Package PackageKit-yum-plugin.x86_64 0:0.5.8-21.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================== Package                       Arch           Version                Repository    Size========================================================================================Installing: PackageKit                    x86_64         0.5.8-21.el6           base         526 kInstalling for dependencies: PackageKit-glib               x86_64         0.5.8-21.el6           base         221 k PackageKit-gtk-module         x86_64         0.5.8-21.el6           base          95 k PackageKit-yum                x86_64         0.5.8-21.el6           base         156 k PackageKit-yum-plugin         x86_64         0.5.8-21.el6           base          92 kTransaction Summary========================================================================================Install       5 Package(s)Total download size: 1.1 MInstalled size: 3.9 MIs this ok [y/N]:
出现下面的错误:

http://mirrors.163.com/centos/6.4/os/x86_64/Packages/PackageKit-0.5.8-21.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"

修改源url 在mirrors前面加上 tel. 即可,如下:

Running Transaction  Installing : PackageKit-yum-0.5.8-21.el6.x86_64                                   1/5   Installing : PackageKit-gtk-module-0.5.8-21.el6.x86_64                            2/5   Installing : PackageKit-glib-0.5.8-21.el6.x86_64                                  3/5   Installing : PackageKit-0.5.8-21.el6.x86_64                                       4/5   Installing : PackageKit-yum-plugin-0.5.8-21.el6.x86_64                            5/5 Installed products updated.  Verifying  : PackageKit-yum-plugin-0.5.8-21.el6.x86_64                            1/5   Verifying  : PackageKit-yum-0.5.8-21.el6.x86_64                                   2/5   Verifying  : PackageKit-gtk-module-0.5.8-21.el6.x86_64                            3/5   Verifying  : PackageKit-glib-0.5.8-21.el6.x86_64                                  4/5   Verifying  : PackageKit-0.5.8-21.el6.x86_64                                       5/5 Installed:  PackageKit.x86_64 0:0.5.8-21.el6                                                      Dependency Installed:  PackageKit-glib.x86_64 0:0.5.8-21.el6   PackageKit-gtk-module.x86_64 0:0.5.8-21.el6    PackageKit-yum.x86_64 0:0.5.8-21.el6    PackageKit-yum-plugin.x86_64 0:0.5.8-21.el6  Complete!
然后使用命令:yum install gnome-packagekit

得到:

[root@localhost yum.repos.d]# yum install gnome-packagekitLoaded plugins: fastestmirror, product-id, refresh-packagekit, subscription-managerUpdating certificate-based repositories.Unable to read consumer identityLoading mirror speeds from cached hostfileSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package gnome-packagekit.x86_64 0:2.28.3-7.el6 will be installed--> Processing Dependency: PackageKit-device-rebind >= 0.5.0 for package: gnome-packagekit-2.28.3-7.el6.x86_64--> Running transaction check---> Package PackageKit-device-rebind.x86_64 0:0.5.8-21.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================== Package                         Arch          Version                Repository   Size========================================================================================Installing: gnome-packagekit                x86_64        2.28.3-7.el6           base        2.5 MInstalling for dependencies: PackageKit-device-rebind        x86_64        0.5.8-21.el6           base         95 kTransaction Summary========================================================================================Install       2 Package(s)Total download size: 2.6 MInstalled size: 8.1 MIs this ok [y/N]: yDownloading Packages:(1/2): PackageKit-device-rebind-0.5.8-21.el6.x86_64.rpm          |  95 kB     00:01     (2/2): gnome-packagekit-2.28.3-7.el6.x86_64.rpm                  | 2.5 MB     00:10     ----------------------------------------------------------------------------------------Total                                                   198 kB/s | 2.6 MB     00:13     Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction  Installing : PackageKit-device-rebind-0.5.8-21.el6.x86_64                         1/2   Installing : gnome-packagekit-2.28.3-7.el6.x86_64                                 2/2 Installed products updated.  Verifying  : gnome-packagekit-2.28.3-7.el6.x86_64                                 1/2   Verifying  : PackageKit-device-rebind-0.5.8-21.el6.x86_64                         2/2 Installed:  gnome-packagekit.x86_64 0:2.28.3-7.el6                                                Dependency Installed:  PackageKit-device-rebind.x86_64 0:0.5.8-21.el6                                        Complete!
最后使用命令:yum update -y,然后就是378个文件的下载信息了