Solved

Install gcc without yum

Posted on 2006-11-27
3
716 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

696 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