从光驱安装rpm的方法
[oracle@oracle-serv 桌面]$ su root
密码:
[root@oracle-serv 桌面]# mount -t iso9660 /dev/cdrom /mnt/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0 already mounted or /mnt/cdrom/ busy
mount: according to mtab, /dev/sr0 is already mounted on /mnt/cdrom
[root@oracle-serv 桌面]# cd /mnt/cdrom/Packages/
[root@oracle-serv Packages]# rpm -ivh glibc-common-2.12-1.47.el6.i686.rpm
warning: glibc-common-2.12-1.47.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%] package glibc-common-2.12-1.47.el6.i686 is already installed
[root@oracle-serv Packages]# rpm -ivh kernel-headers-2.6.32-220.el6.i686.rpm
warning: kernel-headers-2.6.32-220.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%] 1:kernel-headers ########################################### [100%]
[root@oracle-serv Packages]# rpm -ivh libgcc-4.4.6-3.el6.i686.rpm
warning: libgcc-4.4.6-3.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%] package libgcc-4.4.6-3.el6.i686 is already installed
[root@oracle-serv Packages]# rpm -ivh glibc-2.12-1.47.el6.i686.rpm
warning: glibc-2.12-1.47.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%] package glibc-2.12-1.47.el6.i686 is already installed
[root@oracle-serv Packages]# rpm ivh libgomp-4.4.6-3.el6.i686.rpm
RPM version 4.8.0
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
用法: rpm [-aKfgpWHqVcdilsKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
[--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
[--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nofiledigest] [--nomd5]
[--nofiles] [--nodeps] [--noscript] [--comfollow] [--logical]
[--nochdir] [--nostat] [--physical] [--seedot] [--xdev]
[--whiteout] [--addsign] [-K|--checksig] [--delsign] [--import]
[--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb]
[--aid] [--allfiles] [--allmatches] [--badreloc]
对于安装失败的情况,可以尝试用yum安装
[root@oracle-serv 桌面]# yum install gcc (让yum来自动解决软件的依赖性)
[root@oracle-serv 桌面]# yum install libgcc-4.4.6-3.el6.i686.rpm