Solved

Install gcc without yum

Posted on 2006-11-27
3
688 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

828 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