LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2003, 01:44 PM   #1
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Rep: Reputation: 30
General Advice on keeping your files structured and clean.


Hi. I'll have used Linux on and off but I'm only recently new to installing/deinstalling software.
What is the most efficient way to install software?

For example I downloaded the X version of WinVice.

As user jsmith:
1) I extracted the gzipped tar to a /tmp dir in my home. eg /home/jsmith/vice1.11
2) Looked at the README then the INSTALL.
3) ./configure to compile the source.
4) make
5) As SU I "make install". I then do a "make clean"

Questions:
1) Like the FAQ so far. At this point is usually ok to rm the /home/jsmith/vice1.11 directory?
I ask this because many installs go to /usr/local/bin and /usr/local/lib and save space if the
directory is no longer needed/

2) If I want to remove the software later, would it be a case of make uninstall? (stated in README)
I ask this because I would still need the /home/jsmith/vice1.11 directory where I compiled vice?

3) A game I tried "xrick" simply extracted into a folder under my /home/.. and ran from there.
Would it be fair to summarize there are 2 types then?
i) "private" user based software?
ii) "local" users based software?

4) How does a seasoned user go about keeping track/managing of these files? For un-installs or re-installs
for instance.

Hope that didn't sound too convoluted there. I guess it's because there are more questions to ask that I
know at the moment.

Btw, Vice is fanastic under Linux!
 
Old 04-09-2003, 03:34 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Re: General Advice on keeping your files structured and clean.

Quote:
Originally posted by hamster
Hi. I'll have used Linux on and off but I'm only recently new to installing/deinstalling software.
What is the most efficient way to install software?
Most "efficient" would probably be (for you) via rpm format. HOWEVER, since I personally don't like RPM's, I think in the long run, installing from source is the best way. It's all personal preference, especially since you have Synaptic (see www.freshmeat.net) available to manage dependencies for you better with RPM's.
Quote:
For example I downloaded the X version of WinVice.

As user jsmith:
1) I extracted the gzipped tar to a /tmp dir in my home. eg /home/jsmith/vice1.11
2) Looked at the README then the INSTALL.
3) ./configure to compile the source.
4) make
5) As SU I "make install". I then do a "make clean"

Questions:
1) Like the FAQ so far. At this point is usually ok to rm the /home/jsmith/vice1.11 directory?
I ask this because many installs go to /usr/local/bin and /usr/local/lib and save space if the
directory is no longer needed/
Once the application has been "make install"ed you can safely delete the source directory (the one created when you untarred the file). However, see next question...
Quote:

2) If I want to remove the software later, would it be a case of make uninstall? (stated in README)
I ask this because I would still need the /home/jsmith/vice1.11 directory where I compiled vice?
If it's included in the makefile (and if it's in the README it probably is included in the Makefile) then yes, it's as easy as "make uninstall". However, not every application has that option. You can look into something like checkinstall to help you out (however it's really slack or Debian specific AFAIK) or something similar.
Quote:
3) A game I tried "xrick" simply extracted into a folder under my /home/.. and ran from there.
Would it be fair to summarize there are 2 types then?
i) "private" user based software?
ii) "local" users based software?
You can simply untar and make an application. And then just run it from the directory you "make" it in. That's usually for users who don't have root priviledges, and cannot run "make install" to get it to a system wide PATH for easier execution. So if you untar files in your HOME directory, you definitely don't have to install it to run it, however you will have to run it with full path.
Quote:
4) How does a seasoned user go about keeping track/managing of these files? For un-installs or re-installs
for instance.
With years of experience Nah, usually with either a package management system, or something similar to "make install".

Cool
 
Old 04-10-2003, 11:41 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
I have a seperate partition, /usr. In /usr/src i keep all program sources, so i can later easily just make uninstall them, or recompile them if i update some big libraries. Then all the binaries go to /usr/local/bin which is in the system $PATH. You also have to keep the the source directory from which you issued 'make' because you have to issue 'make uninstall' from the same directiry. If you are not interested in uninstalling software with make uninstall afterwards, then you can safely remove the source trees, however i still suggest that you keep them safe somewhere in /usr/src.
This way when you install a different distro, or reinstall your distro, or whatever, you will have all your sources in /usr/src (remember it's a different partition!) and all the binaries in /usr/local/bin where you can use them right away without having to 'make' them all again.
HTH
-NSKL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need more general live CD advice twistedpair Linux - General 1 11-15-2005 04:29 AM
Any general advice for a newbie? halfpower Linux - Newbie 4 08-01-2005 05:02 PM
Keeping a clean system. dirk102 Linux - Software 19 09-09-2004 03:47 PM
General questions after clean install 10.0 offical Phin666 Mandriva 2 08-28-2004 02:57 PM
Keeping LCD Displays Clean? sancho General 4 09-26-2003 03:20 PM


All times are GMT -5. The time now is 02:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration