360SDN.COM

首页/Kafka/列表

Centos 6.7 rpm方式不联网安装gcc、gcc-c++

来源:  2019-02-28 14:30:27    评论:0点击:

先到http://vault.centos.org/6.7/os/x86_64/Packages/这里下载需要用到的依赖包,然后依次执行以下命令
 
rpm -ivh libstdc++-devel-4.4.7-16.el6.x86_64.rpm
rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
rpm -ivh cpp-4.4.7-16.el6.x86_64.rpm
rpm -ivh kernel-headers-2.6.32-573.el6.x86_64.rpm
rpm -ivh glibc-headers-2.12-1.166.el6.x86_64.rpm
rpm -ivh glibc-devel-2.12-1.166.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.7-16.el6.x86_64.rpm
rpm -Uvh gcc-4.4.7-4.el6.x86_64.rpm --nodeps --force
 
rpm -ivh gcc-c++-4.4.7-16.el6.x86_64.rpm 
 
相关软件下载
https://download.csdn.net/download/u010438469/10479979
 
rpm使用指南
 
1.安装软件:执行rpm -ivh rpm包名,如: #rpm -ivh apache-1.3.6.i386.rpm 
2.升级软件:执行rpm -Uvh rpm包名。 
3.反安装:执行rpm -e rpm包名。 
4.查询软件包的详细信息:执行rpm -qpi rpm包名 
5.查询某个文件是属于那个rpm包的:执行rpm -qf rpm包名 
6.查该软件包会向系统里面写入哪些文件:执行 rpm -qpl rpm包名
 
原文:https://blog.csdn.net/u010438469/article/details/80699844  
为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权