Linux系统

linux从光驱安装rpm的方法

时间:2013/8/21 20:47:46  作者:说歌社区  来源:www.solgle.com  查看:959  评论:0
内容摘要:从光驱安装rpm的方法[oracle@oracle-serv 桌面]$ su root密码:[root@oracle-serv 桌面]# mount -t iso9660 /dev/cdrom /mnt/cdrom/mount: block device /dev/sr0 is ...
从光驱安装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

 
 
标签:linux从光驱安装rpm的方法 挂载光驱 linux 

solgle.com 版权所有,欢迎分享!!!

相关评论
 img1 img2 img3 img4 img5 img6 img7 img8 img9 img10
评论者:      验证码:  点击获取验证码
   Copyright © 2013-2028 solgle.com,All rights reserved.[solgle.com] 公安机关备案号:51010802000219
Email:solgle@solgle.com; weixin:cd1008610000 ICP:蜀ICP备14011070号-1