CentOS rpm 离线安装 gcc

1.从http://www.rpmfind.net/linux/rpm2html/search.php下载
cloog-ppl-0.15.7-1.2.el6.x86_64.rpm,
cpp-4.4.6-4.el6.x86_64.rpm ,
gcc-4.4.6-4.el6.x86_64.rpm ,
glibc-devel-2.12-1.80.el6.x86_64.rpm,
glibc-headers-2.12-1.80.el6.x86_64.rpm ,
kernel-headers-2.6.32-279.el6.x86_64.rpm ,
libgomp-4.4.6-4.el6.x86_64.rpm ,
mpfr-2.4.1-6.el6.x86_64.rpm ,
ppl-0.10.2-11.el6.x86_64.rpm
2.rpm按顺序安装

#[color=red] rpm -Uvh kernel-headers-2.6.32-279.el6.x86_64.rpm [/color]
warning: kernel-headers-2.6.32-279.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:kernel-headers ########################################### [100%]
#[color=red] rpm -Uvh gcc-4.4.6-4.el6.x86_64.rpm [/color]
warning: gcc-4.4.6-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
cloog-ppl >= 0.15 is needed by gcc-4.4.6-4.el6.x86_64
cpp = 4.4.6-4.el6 is needed by gcc-4.4.6-4.el6.x86_64
glibc-devel >= 2.2.90-12 is needed by gcc-4.4.6-4.el6.x86_64
# [color=red]rpm -Uvh glibc-headers-2.12-1.80.el6.x86_64.rpm[/color]
warning: glibc-headers-2.12-1.80.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:glibc-headers ########################################### [100%]
# [color=red]rpm -Uvh glibc-devel-2.12-1.80.el6.x86_64.rpm [/color]
warning: glibc-devel-2.12-1.80.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:glibc-devel ########################################### [100%]
#[color=red] rpm -Uvh libgomp-4.4.6-4.el6.x86_64.rpm [/color]
warning: libgomp-4.4.6-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
package libgomp-4.4.6-4.el6.x86_64 is already installed

#[color=red] rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm[/color]
warning: ppl-0.10.2-11.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
package ppl-0.10.2-11.el6.x86_64 is already installed
#[color=red] rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm[/color]
warning: cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
package cloog-ppl-0.15.7-1.2.el6.x86_64 is already installed
#[color=red] rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm[/color]
warning: mpfr-2.4.1-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:mpfr ########################################### [100%]
# rpm -ivh cpp-4.4.6-4.el6.x86_64.rpm
warning: cpp-4.4.6-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:cpp ########################################### [100%]
#[color=red] rpm -ivh gcc-4.4.6-4.el6.x86_64.rpm[/color]
warning: gcc-4.4.6-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]


# [color=red]rpm -Uvh gcc-4.4.6-4.el6.x86_64.rpm[/color]
warning: gcc-4.4.6-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
package gcc-4.4.6-4.el6.x86_64 is already installed
# [color=red]rpm -qa|grep gcc[/color]
gcc-4.4.6-4.el6.x86_64
libgcc-4.4.6-4.el6.x86_64
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值