LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-28-2008, 04:05 PM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Upgrade GCC Compiler?


This feels a little humiliating but...

I'm using Fedora Core 8 and this apparently ships with GCC 4.1. I want to upgrade to the latest 4.2 version, as some software I've got apparently requires it. So, three questions really...

1. How to find GCC 4.2 as a package that I can install easily?
2. Is there a good tutorial on 'yum' or 'apt' or whatever it is? I gather its similar to RPM, but seems to look at online repositories from the command-line for software rather than downloading RPM files manually off the web. If possible, something that explains how to 'scan' for certain software versions that might be available.
3. Newbie's way out: Can I get GNOME to 'force' a scan for upgraded packages. At the moment, it just occasionally finds new updates to install somehow.

I get the feeling if I can get my head around the common package managers, Linux software will be much easier to obtain. I already know how to search/install/uninstall RPM files that I've downloaded from the web, but thats about it.

Thanks.
 
Old 01-28-2008, 04:30 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200
2. a) in the terminal you can type: man yum
b) in google type: yum tutorial
3. you can't force anything, if automatic updates are turned on, then the moment a more recent package gets to repositories, your software updater will update it, you can't force to update something that doesn't have a more recent version, if that's what you meant.

1. I don't know much about fedora repositories, possibly you'd have to download it from the internet, just do some google search.

hth
 
Old 01-28-2008, 04:34 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
arschi


Replacing the version of GCC that a particular version of linux is using is quite difficult. The problem is this: the entire system is built around that particular GCC versions libs. So if you replace the GCC version you (essentially) have to replace anything that relies on those libs (basically the entire system). What app are you trying to build that requires 4.2 (this will be an extremely rare instance as 4.1 has not been out very long (a year?)?

The easiest way to look for software (that you do not know the name of) is to install yumex. It is a graphical front end for yum. (yum install yummex) It should show up under Applications->System Tools->Yum Extender. If you know the name of the package:
Quote:
yum install packagename
or to update an installed package:
Quote:
yum update packagename
For a general system update:
Quote:
yum update
 
Old 01-28-2008, 04:44 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,789

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by arashi256 View Post

I'm using Fedora Core 8 and this apparently ships with GCC 4.1. I want to upgrade to the latest 4.2 version, as some software I've got apparently requires it. So, three questions really...

1. How to find GCC 4.2 as a package that I can install easily?
If Fedora has not created an RPM for GCC 4.2 then you are unlikely to find one. You would have to download the source for gcc 4.2 and compile it yourself. You would have to find out if any of gcc's dependencies change from 4.1 and 4.2 and compile any dependency which has changed. You would want to compile gcc 4.2 into a different directory than gcc 4.1 so that you can run either one.

Quote:
Originally Posted by arashi256 View Post

2. Is there a good tutorial on 'yum' or 'apt' or whatever it is? I gather its similar to RPM, but seems to look at online repositories from the command-line for software rather than downloading RPM files manually off the web. If possible, something that explains how to 'scan' for certain software versions that might be available.
You have your terminology confused. RPM is a collection of ideas that includes a package format and some command line programs to manage packages built on the RPM format. yum is a higher level package manager built on top of RPM. yum will look at online repositories and select the combination of packages that you need, download them, and install them. Documentation includes the man pages:

man yum

man rpm

You can probably find a tutorial with Google.

There is a completely different package manager based on Debian. The packages are called deb packages. apt is a command line program used to manage deb packages. The GUI version of apt is called synaptic. Fedora does not use the deb system.

Quote:
Originally Posted by arashi256 View Post

3. Newbie's way out: Can I get GNOME to 'force' a scan for upgraded packages. At the moment, it just occasionally finds new updates to install somehow.

I get the feeling if I can get my head around the common package managers, Linux software will be much easier to obtain. I already know how to search/install/uninstall RPM files that I've downloaded from the web, but thats about it.
GNOME is a desktop manager. It has nothing to do with rpm or deb. You can use anacron to periodically schedule an update scan, say once a week. Work on creating a script which has yum do the scan, download, and update to your satisfaction then tell anacron to schedule your yum script to run periodically.

-----------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why gcc is needed for an HBA card? How to upgrade gcc enayet_v Linux - Newbie 3 11-17-2007 05:57 AM
GCC Compiler..... mani_iips Linux - Newbie 4 08-08-2005 09:55 PM
GCC compiler aviceda Linux - Newbie 5 08-13-2004 07:55 AM
GCC/glibc odyssee: Or "how do I upgrade my compiler environment?" BedriddenTech Slackware 5 09-01-2003 10:17 AM
GCC compiler ionic Programming 3 05-10-2001 09:59 AM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration