Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having one heck of a time trying to install GCC without the use of YUM. I have tried various methods of using our proxy here at work, but nothing seems to work.
I need to get GCC on our system, but cannot use YUM.
Why can you not use yum? You could theoretically compile from source, but it's almost always a better idea to use a package manager if you have one available...
EDIT: or you could find and download an rpm, and use the 'rpm' command to install it. But my question regarding YUM stands!
It's a little different, but not in any way that really matters. Your link describes the process for mounting the iso image and using that, the one I posted describes mounting the DVD itself. I've copied the instructions below:
Quote:
In this post, i will share on how to update and install the RPM packages from CD-ROM/DVD-ROM image on CentOS 6.2. This will very useful when you are running on slow internet connection. Instead of go through the internet connection, it is possible to use Local CD/DVD-ROM as your yum repository. There are two methods to install and configure local CentOS 6.2 yum repository. Both methods have been tested and working on CentOS 6.2 linux server. You can select any method that you most preferred. This may be also applicable on other version of CentOS server.
Method 1:
1. Insert DVD/ISO into DVD-Drive.
2. Mount the ISO from the DVD-ROM into /mnt directory :
Code:
[root@centos62 ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
3. Create centos62.repo text file in /etc/yum.repos.d/ with the following content. Please create something as follow:
Code:
[root@centos62 ~]# vi /etc/yum.repos.d/centos62.repo
It's a little different, but not in any way that really matters. Your link describes the process for mounting the iso image and using that, the one I posted describes mounting the DVD itself. I've copied the instructions below:
I only have an ISO for use. It's how I installed the OS on the VM.
I have mounted the OS seeing as how the system has a virtual ROM drive with the ISO mounted as suggested in your post.
I take it that I should now be able to type
Code:
yum install gcc -y
However, when I do this, it is trying to retrieve the mirrorlist, which won't work.
Code:
[root@localhost local]#yum install gcc -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 22 - "The requested URL returned error: 407"
Error: Cannot find a valid baseurl for repo: base
When I type the following:
Code:
yum -y localinstall gcc.rpm
I get
Code:
Cannot open: gcc.rpm. Skipping. Nothing to do
Please note: I am actually trying to install Apache (httpd). In the process, apparently I don't have a compiler on this system.
Did you carry out step (3) that was posted by suicidaleggroll? (editing /etc/yum.repos.d/centos62.repo)
Also, if you're trying to install Apache, then you probably want to use yum to install that, rather than install gcc and then compiling apache yourself...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.