Solved

Install gcc without yum

Posted on 2006-11-27
3
674 Views
Last Modified: 2013-12-15
I just put Centos on a new computer and unfortunately my wireless card needs ndiswrapper to be able to run in centos.  This is fine but the problem now becomes that I need gcc and the linux source to install ndiswrapper.  If I could connect to the internet I could simply type

1) yum install gcc
and
2) yum install linux-source

but I can't install either of my wireless cards without ndiswrapper so I can't get on the internet and this becomes the old what came first the chicken or the egg story.

So my question is how can I get the same effect as running those two commands without being connected to the internet
0
Comment
Question by:ICPooreman
  • 2
3 Comments
 
LVL 14

Expert Comment

by:ygoutham
ID: 18025493
you can copy the rpms off the internet on to some media and try a simple rpm -Uvh ...
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 18025766
or edit the yum.conf file to point the repository to a local directory and try installing the files through yum
0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 500 total points
ID: 18041411
>  I can't get on the internet
Download gcc rpm file from Centros website and use USB flash drive to transfer this rpm file from your PC to your Linux machine.
On Linux machine, as root:
1. mkdir /mnt/usb
2. mount /dev/sda1 /mnt/usb  (/dev/sda1 might vary, run "fdisk -l" to verify first)
3. cp /mnt/usb/gcc*.rpm /tmp
4. rpm -ivh /tmp/gcc*.rpm
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now