LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install gcc (already installed) erase gcc (not installed) huh ? (https://www.linuxquestions.org/questions/linux-newbie-8/install-gcc-already-installed-erase-gcc-not-installed-huh-857322/)

kvenl 01-19-2011 01:02 PM

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

knudfl 01-19-2011 01:14 PM

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.
..

lazlow 01-19-2011 01:39 PM

Quote:

yum info gcc-4*
Will give you an idea about what is installed and what is available from your repos.

kvenl 01-19-2011 03:01 PM

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

lazlow 01-19-2011 03:24 PM

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'.


All times are GMT -5. The time now is 10:54 PM.