LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   remove source code? (https://www.linuxquestions.org/questions/linux-general-1/remove-source-code-82512/)

secprovider 08-16-2003 08:04 AM

remove source code?
 
Hi,

As you know, in windows you install programs under program files directory, and all relevant files are kept under program filed d. in addition, maybe some relevant dll under system32.

What about for linux or more specificaly for suse?
In which directory do people install programs?

another related question? For example, for windows, after installing you can delete setup.exe and relevan files. Let's say you install a program under linux from source. (./configure, make ...) or even say rpm. Are you allowed to remove the the installation program (whatever inside .tar.gz)?


Thanx

jvds 08-16-2003 08:13 AM

IF you've compiled from source then you can just delete the source directory

Rgds

Rus

MasterC 08-16-2003 08:18 AM

Re: remove source code?
 
Quote:

Originally posted by secprovider
Hi,

As you know, in windows you install programs under program files directory, and all relevant files are kept under program filed d. in addition, maybe some relevant dll under system32.

What about for linux or more specificaly for suse?
In which directory do people install programs?

Let the installer lead the way...

Usually things will be installed into /usr/local/bin OR /usr/bin however the installer will decide the best place 92% of the time so there really is no need to worry about where things 'go'. The configure script with sources usually give you the option to place things in a certain directory other than the 'default' (usually /usr/local ) as well, if you are interested. But almost always it will install the necessary files into a location that exists in the users $PATH. What this means is you can launch the file without worrrying about where it is by just typing the name of the application to launch it.
Quote:


another related question? For example, for windows, after installing you can delete setup.exe and relevan files. Let's say you install a program under linux from source. (./configure, make ...) or even say rpm. Are you allowed to remove the the installation program (whatever inside .tar.gz)?


Thanx
Yes, you can delete both the source directory, the tarball and the RPM, AFTER they are installed. The README/INSTALL file(s) will usually hint at whether or not this is true with that particular program. But as a rule of thumb, yes it's fine. It's usually a good idea to at least keep the tarball around though, if you need to change something about the compiled binary, or uninstall the application, sometimes the source will be the way to do this.

Cool


All times are GMT -5. The time now is 11:02 AM.