Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Skills of installing GCC without Network in Linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "skills of installing GCC without network in Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

There is only one instruction to install gcc when you have a network: yum install gcc, how do you install gcc without a network? Although there is no network, you need to have an installation CD or ISO image, use the installation CD or ISO image to mount a local yum source, and use this to install gcc.

Steps:

One: Mount the yum source. I use the ISO image to enter the command on the terminal: mount-o loop xxxx.iso / media/CentOS/.

Description: xxxx.iso is your image file name (note that the path is correct)

/ media/Centos/ this is the address of the mounted file. Centos is built by yourself, or you can choose your own path.

II: modify / etc/yum.repos.d/CentOS-Media.repo

1. First go to the file: vi / etc/yum.repos.d/CentOS-Media.repo

two。 The modified file is as follows:

[c6-media]

Name=CentOS-$releasever-Media # is just a name

Baseurl= file:///media/Centos # remember the address where you just mounted the image No, yes, that's it

Gpgcheck=1

Enabled=1

Gpgkey= file:///etc/media/Centos/RPM-GPG-KEY-CentOS-6 # should still pay attention to the path

3. Exit save.

4. Input instructions: gcc-v to see if there is any response.

The above is the Linux no network installation GCC skills introduction, the premise is that you must have an installation CD or ISO image, otherwise you can not install, although no network can install GCC, but relatively complex, it is recommended to use network installation GCC.

This is the end of the introduction to "Linux's tips for installing GCC without a network". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report