LinuxQuestions.org
Register a domain and help support LQ
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-19-2011, 01:02 PM   #1
kvenl
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
install gcc (already installed) erase gcc (not installed) huh ?


Hi all,

Following a book to learn Linux, but stumbled at this:
using rpm to install something for training dependencies.
When i want to install it says that gcc-4.* is already installed.
When I try to erase gcc-4.* it says it isn't installed.

I am confused.

Using Fedora 9; standard installed.
Trying the commands with SU

Anyone who can help me ?

Thanks a lot !

Kees
 
Old 01-19-2011, 01:14 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

# rpm -Uvh gcc-4*
# yum install gcc-4*

'rpm -Uvh' and 'yum' accept wildcards ( * ).

'rpm -e' : Wildcards cannot be used.
The valid package names for the e option are 'gcc', 'gcc-4.3.0-8.i386'.

Please use : 'rpm -qa | grep <name>' to know the name for an installed package.
..

Last edited by knudfl; 01-19-2011 at 03:00 PM.
 
Old 01-19-2011, 01:39 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Quote:
yum info gcc-4*
Will give you an idea about what is installed and what is available from your repos.
 
Old 01-19-2011, 03:01 PM   #4
kvenl
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Ok I see what I can do - I must update.

But can anyone explain what is happened?

I cannot erase a program that is not up-to-date ???

So I have to update it first and then erase ?

Anyone please ?

Kees
 
Old 01-19-2011, 03:24 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You have to use the FULL name or the common name in order to erase.

Quote:
The valid package names for the e option are 'gcc', 'gcc-4.3.0-8.i386'.
 
1 members found this post helpful.
  


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
How to install gcc when a current gcc is installed but not responding Nadishka Linux - Newbie 6 10-15-2009 04:33 PM
how do i install gcc from a tar.bz2 file when i have no C/C++ compiler installed sagitalk Linux - Newbie 52 08-04-2008 04:31 PM
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 01:15 AM
cannot use gcc even though it's installed. levicc00123 Debian 2 09-07-2004 09:48 PM
cc/gcc not installed...and how to install sfingerh Linux - Software 3 07-27-2002 07:56 PM


All times are GMT -5. The time now is 06:57 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