LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 12: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, 12:14 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 02:00 PM.
 
Old 01-19-2011, 12:39 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

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, 02: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, 02:24 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

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



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 03: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 03:31 PM
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 12:15 AM
cannot use gcc even though it's installed. levicc00123 Debian 2 09-07-2004 08:48 PM
cc/gcc not installed...and how to install sfingerh Linux - Software 3 07-27-2002 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 PM.

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
Open Source Consulting | Domain Registration