First, mount cdrom:
mount /dev/cdrom /media/RHEL_6.0 x86_64 Disc 1
Second, add cdrom.repo config file to /etc/yum.repo.d
[CODE]
[root@localhost ~]# cat /etc/yum.repos.d/cdrom.repo
[cdrom]
name=cdrom
baseurl="file:///media/RHEL_6.0 x86_64 Disc 1/"
enable=1
gpgcheck=1
gpgkey="file:///media/RHEL_6.0 x86_64 Disc 1/RPM-GPG-KEY-redhat-release"
[/CODE]
Third, use yum --help to validated this config..
By the way, RHEL 6(Santiago) did not install glibc x86 archives by default. Fixed this issue by yum manual:
yum -y install glibc-i686
[CODE]
[root@localhost etc]# yum install glibc.i686
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
cdrom | 3.7 kB 00:00 ...
cdrom/primary_db | 2.9 MB 00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.7.el6 set to be updated
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.7.el6.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.7.el6.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.12.7-1.1.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================
Installing:
glibc i686 2.12-1.7.el6 cdrom 4.3 M
Installing for dependencies:
nss-softokn-freebl i686 3.12.7-1.1.el6 cdrom 109 k
Transaction Summary
=========================================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 4.4 M
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------------------
Total 21 MB/s | 4.4 MB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
cdrom/gpgkey | 6.3 kB 00:00 ...
Importing GPG key 0xFD431D51 "Red Hat, Inc. (release key 2)
" from /media/RHEL_6.0%20x86_64%20Disc%201/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Importing GPG key 0x2FA658E0 "Red Hat, Inc. (auxiliary key) " from /media/RHEL_6.0%20x86_64%20Disc%201/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : glibc-2.12-1.7.el6.i686 1/2
Installing : nss-softokn-freebl-3.12.7-1.1.el6.i686 2/2
Installed:
glibc.i686 0:2.12-1.7.el6
Dependency Installed:
nss-softokn-freebl.i686 0:3.12.7-1.1.el6
Complete!
[/CODE]
[CODE]
43 yum --help
44 yum repolist
55 yum -y install libstdc++.i686
61 yum install gcc.x86_64
62 yum install g++.x86_64
63 yum install gcc-c++.x86_64
64 which gcc
65 gcc -v
66 g++ -v
67 make -v
[/CODE]
阅读(1072) | 评论(0) | 转发(0) |