LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where do programs go? (https://www.linuxquestions.org/questions/linux-newbie-8/where-do-programs-go-110608/)

bfibandit 10-30-2003 07:10 PM

Where do programs go?
 
Hi,

This is my first post here and I'm an extreme newbie so bear with me if this sounds stupid.

I'm to the point now where I can install programs by compiling them. My question is, where do they go when you compile them? I can usually run the program I compiled by typing it's name into the Run box in KDE, but that doesn't show me where they are located.

Also, how do you get rid of programs you no longer need? For example, I installed Mozilla 1.5 intending to upgrade the existing 1.3.1 installation. Now I have both versions installed. How do I get rid of the old one without breaking anything?

I'm running Mandrake 9.1 if that makes a difference.

Your help is much appreciated!

-Mike

joseph 10-30-2003 07:18 PM

ok, guy what is the source of your program, rpm or tar ball ?
usually the programs you installed will go to /etc.
/etc is the same with program files in windows.

If you wanna uninstall the program that an rpm package, you can use the command " rpm -e yourprogram.rpm"

Then about the tar ball, when you finished untar the program, do this immediatelly : "locate your program", I think it will show you where the program is (this is what i do in redhat)

Why you don't use "rpm -Uvh mozilla" it will upgrade your mozilla. So you don't need to care about get rid the old one.

jailbait 10-30-2003 07:21 PM

" where do they go when you compile them?"

There is no one place. Each tarball puts them where the developer thinks best.

"I can usually run the program I compiled by typing it's name into the Run box in KDE, but that doesn't show me where they are located."

You can find out where a program is located with:
which programname

"Also, how do you get rid of programs you no longer need?"

If you installed it using rpm then use rpm -e (see man rpm).

If you installed it with a tarball then cd to the install directory and issue:
make uninstall

" How do I get rid of the old one without breaking anything?"

When compiling tarballs it is usually best to get rid of the old one before you install the new one, although often the new one will overwrite the old one.

With rpm you can install with rpm -U

In the case of Mozilla where the old package is a rpm and the new package is a tarball then you should remove the rpm first before compiling the tarball.

Or

You can change the tarball into a rpm by using checkinstall, then rpm -U

http://asic-linux.com.mx/~izto/checkinstall/index.php

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites


All times are GMT -5. The time now is 06:59 AM.