LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-18-2004, 03:41 PM   #1
wmcase
Member
 
Registered: Sep 2003
Location: Ottawa, Ontario, Canada
Distribution: Fedora 12
Posts: 57

Rep: Reputation: 15
'Best practices' when installing downloads/programs?


Hi;

This not really a HOWTO question. I have been downloading programs and installing them in Linux for over 2 years now but ...

I have been rather cavalier up to now as to where I stick the downloads and archives . I usually 'make' into a /usr/share/directory. RPM's take care of themselves.

Does anyone have suggestions for:

1) Where and how to create a specific downloads directory with specific program sub-directories i.e. is /downloads with chown root, chgrp user1 (me), chmod 775 a good idea? Does that give me enough latitude or is it too permissive. I have a two computer home network used mainly by me.

2) When I unzip program.tar.gz or program.tar.bzip2 should I create the tar archive in /downloads/program/archive or should I archive elsewhere? Don't some people use /tmp for archives and is this a good pracitice?

3) After building from an archive to a /usr/share/program directory should I remove the archive directory because its taking up space and is un-neat (space is not a problem at the moment). Or, is it somehow safer to leave the archive in place?

After 1 to 2 years on a steep Linux learning curve, its time for me to pause and clean up -- with regards to this issue and several others. I would like to do it properly. Thanks

Regards Bill
 
Old 12-18-2004, 05:14 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Re: 'Best practices' when installing downloads/programs?

Quote:
Originally posted by wmcase
1) Where and how to create a specific downloads directory with specific program sub-directories i.e. is /downloads with chown root, chgrp user1 (me), chmod 775 a good idea? Does that give me enough latitude or is it too permissive. I have a two computer home network used mainly by me.
I have ~/src, chmod 700, with categories - editors, net, blah - and apps - vim, nedit, blah - inside those. Tarballs inside those.

Quote:
2) When I unzip program.tar.gz or program.tar.bzip2 should I create the tar archive in /downloads/program/archive or should I archive elsewhere? Don't some people use /tmp for archives and is this a good pracitice?
I create the untarred directory right next to the tarball. Name the last one foo.bak. If everything goes well, I delete the old and keep the new.

Quote:
3) After building from an archive to a /usr/share/program directory should I remove the archive directory because its taking up space and is un-neat (space is not a problem at the moment). Or, is it somehow safer to leave the archive in place?
I keep the new because I might want to check out the source, look over the config logs, change a flag and recompile, whatever. I install everything possible to /usr/local or, failing that, ~/bin or, failing that, then to /usr. Unless it's a lib that I think is easier pathwise to just stick in a default place. All the downloading and compiling is as regular user - I just su or switch to a virtual console as root to install.

That's just me. I'm sure there's a zillion ways and it probably depends on the setup, users, etc. I'm the only user of my machines (I hope ) so I do things however I like.
 
Old 12-18-2004, 06:30 PM   #3
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Personally, I put all of my source trees in /usr/src/, which is owned by root but has group read/write/execute permission for a group that my user(s) belong to. I usually junk the tarballs after compile, and I only keep the trees if it is something that I may need to recompile in the future.

You may want to try out checkinstall. It is a wonderful little piece of programming that allows you to skip the 'make install' phase and instead creates a package from your source tree (It does support RPMs as well as slackware .tgz and debian packages as well I believe). I use to keep most of my source trees around so that I could 'make uninstall' if I needed to, with checkinstall I can just delete the package as I would any other.

slight
 
  


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
Best Practices When Installing Software Hangetsu Linux - Security 7 12-01-2005 09:35 AM
Kynaptic downloads programs but doesn't install Toonses82 Ubuntu 32 07-07-2005 10:29 PM
Partitioning: Best Practices newtype Linux - General 2 06-05-2004 07:44 AM
installing downloads godders48 Linux - Software 7 03-15-2004 04:23 PM
Best Practices mooreted Linux - Software 4 06-12-2003 12:31 PM

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

All times are GMT -5. The time now is 10:56 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