LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2003, 08:04 AM   #1
secprovider
Member
 
Registered: Jul 2003
Distribution: Debian sarge
Posts: 40

Rep: Reputation: 15
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
 
Old 08-16-2003, 08:13 AM   #2
jvds
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
IF you've compiled from source then you can just delete the source directory

Rgds

Rus
 
Old 08-16-2003, 08:18 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove from source android6011 Linux - Software 1 11-03-2005 06:08 PM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
LD linker doesn't remove unreachable code ? vips Programming 3 09-08-2004 08:12 AM
source code of ls avadhootak Linux - Software 1 11-02-2003 12:06 PM
Remove program which installed by source code cccc Linux - Software 3 09-09-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:49 AM.

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