CentOS rpm 离线安装 gcc

Aveiox 2013-03-11

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按顺序安装

[root@localhostgcc]#rpm-Uvhkernel-headers-2.6.32-279.el6.x86_64.rpm

warning:kernel-headers-2.6.32-279.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:kernel-headers###########################################[100%]

[root@localhostgcc]#rpm-Uvhgcc-4.4.6-4.el6.x86_64.rpm

warning:gcc-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

error:Faileddependencies:

cloog-ppl>=0.15isneededbygcc-4.4.6-4.el6.x86_64

cpp=4.4.6-4.el6isneededbygcc-4.4.6-4.el6.x86_64

glibc-devel>=2.2.90-12isneededbygcc-4.4.6-4.el6.x86_64

[root@localhostgcc]#rpm-Uvhglibc-headers-2.12-1.80.el6.x86_64.rpm

warning:glibc-headers-2.12-1.80.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:glibc-headers###########################################[100%]

[root@localhostgcc]#rpm-Uvhglibc-devel-2.12-1.80.el6.x86_64.rpm

warning:glibc-devel-2.12-1.80.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:glibc-devel###########################################[100%]

[root@localhostgcc]#rpm-Uvhlibgomp-4.4.6-4.el6.x86_64.rpm

warning:libgomp-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

packagelibgomp-4.4.6-4.el6.x86_64isalreadyinstalled

[root@localhostgcc]#rpm-ivhppl-0.10.2-11.el6.x86_64.rpm

warning:ppl-0.10.2-11.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

packageppl-0.10.2-11.el6.x86_64isalreadyinstalled

[root@localhostgcc]#rpm-ivhcloog-ppl-0.15.7-1.2.el6.x86_64.rpm

warning:cloog-ppl-0.15.7-1.2.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

packagecloog-ppl-0.15.7-1.2.el6.x86_64isalreadyinstalled

[root@localhostgcc]#rpm-ivhmpfr-2.4.1-6.el6.x86_64.rpm

warning:mpfr-2.4.1-6.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:mpfr###########################################[100%]

[root@localhostgcc]#rpm-ivhcpp-4.4.6-4.el6.x86_64.rpm

warning:cpp-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:cpp###########################################[100%]

[root@localhostgcc]#rpm-ivhgcc-4.4.6-4.el6.x86_64.rpm

warning:gcc-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:gcc###########################################[100%]

[root@localhostgcc]#rpm-Uvhgcc-4.4.6-4.el6.x86_64.rpm

warning:gcc-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

packagegcc-4.4.6-4.el6.x86_64isalreadyinstalled

[root@localhostgcc]#rpm-qa|grepgcc

gcc-4.4.6-4.el6.x86_64

libgcc-4.4.6-4.el6.x86_64

相关推荐