redhat6.3 64位更新源(使用網易源)全過程記錄
阿新 • • 發佈:2018-12-26
使用 rpm -Uvh --replacepkgs *.rpm --aid 進行安裝:
然後:[[email protected] matlab]# rpm -Uvh --replacepkgs *.rpm --aid warning: python-iniparse-0.3.1-2.1.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY Preparing... ########################################### [100%] 1:yum-metadata-parser ########################################### [ 25%] 2:python-iniparse ########################################### [ 50%] 3:yum-plugin-fastestmirro########################################### [ 75%] 4:yum ########################################### [100%]
[[email protected] matlab]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# rm -rf ./*
[[email protected] 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])
[ [email protected] yum.repos.d]# ls
CentOS6-Base-163.repo
編輯上面的檔案 vi CentOS6-Base-163.repo ,把$releasever替換為6.4,然後:[[email protected] yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Cleaning repos: base extras updates
Cleaning up Everything
[ [email protected] yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Determining fastest mirrors
base | 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[[email protected] yum.repos.d]# yum remove PackageKit
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Remove Process
Resolving 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 Resolution
Dependencies Resolved
========================================================================================
Package
Arch Version Repository Size
========================================================================================
Removing:
PackageKit
x86_64 0.5.8-20.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 2.3 M
Removing 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 M
Transaction Summary
========================================================================================
Remove 6 Package(s)
Installed size: 12 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: 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 hostfile
Installed 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-packagekitLoaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Remove Process
No Match for argument: gnome-packagekit
Loading mirror speeds from cached hostfile
Package(s) gnome-packagekit available, but not installed.
No Packages marked for removal
然後使用命令: yum install PackageKit得到:
[[email protected] yum.repos.d]# yum install PackageKit
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving 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 Resolution
Dependencies Resolved
========================================================================================
Package Arch Version Repository Size
========================================================================================
Installing:
PackageKit x86_64 0.5.8-21.el6 base 526 k
Installing 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 k
Transaction Summary
========================================================================================
Install 5 Package(s)
Total download size: 1.1 M
Installed size: 3.9 M
Is 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得到:
[[email protected] yum.repos.d]# yum install gnome-packagekit
Loaded plugins: fastestmirror, product-id, refresh-packagekit, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving 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 Resolution
Dependencies Resolved
========================================================================================
Package Arch Version Repository Size
========================================================================================
Installing:
gnome-packagekit x86_64 2.28.3-7.el6 base 2.5 M
Installing for dependencies:
PackageKit-device-rebind x86_64 0.5.8-21.el6 base 95 k
Transaction Summary
========================================================================================
Install 2 Package(s)
Total download size: 2.6 M
Installed size: 8.1 M
Is this ok [y/N]: y
Downloading 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_debug
Running Transaction Test
Transaction Test Succeeded
Running 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個檔案的下載資訊了