?
Solved

Install gcc without yum

Posted on 2006-11-27
3
Medium Priority
?
738 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 2000 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

771 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