Koozali.org: home of the SME Server

Uninstalling and RPM ??

Caos

Uninstalling and RPM ??
« on: December 16, 2002, 05:19:05 PM »
Hello people

as i am a complete newbie to the world of linux i was trying to install a compiler for my box so i could run some eggdrop bots in my irc channel

I as was following the http://www.e-smith.org/faq.php3#8q7 instructions
i installed the wrong version of  cpp. i installed cpp-2.96-81 but the one i should of installed was cpp-2.96-85.i386.rpm

this is the message i got

 rpm -ivh cpp-2.96-85.i386.rpm
Preparing...                ########################################### [100%]
file /usr/bin/cpp from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/lib/gcc-lib/i386-redhat-linux/2.96/tradcpp0 from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/share/info/cpp.info-1.gz from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/share/info/cpp.info-2.gz from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/share/info/cpp.info-3.gz from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/share/info/cpp.info.gz from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81
file /usr/share/man/man1/cpp.1.gz from install of cpp-2.96-85 conflicts with file from package cpp-2.96-81

How do i uninstall cpp2.96-81

i used the command rpm -ivh ftp://......(mirror site for aarnet red hat 7.1 rpm file command  ???
 
please help

regards
ugur

Dan Brown

Re: Uninstalling and RPM ??
« Reply #1 on: December 16, 2002, 05:29:18 PM »
You don't need to uninstall 2.96-81, you need to upgrade to 2.96-85.  Do this by using rpm -Uvh instead of -ivh.  In general, you can use the -U flag to rpm all the time.

To answer your question, though, you uninstall an rpm by using the -e flag.  Like this:

rpm -e cpp

Note, you don't need the version number, arch, or .rpm extension--just the name.

If you're a complete newbie, you probably don't have much business running a compiler--it's easy to hose things in ways that can't easily be fixed.  But, of course, it's your box...