LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2009, 01:49 PM   #1
SyncRaven
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
Understanding source installations


Hi - This is probably a silly question to those that understand, but i'm trying to get my head wrapped around how source installations work exactly on a linux system.
For example, let's say I install zend optimizer via source v 1.23
under the directory /folder/zend
It writes to some config files, such as php, when it installs.

Then lets say later I install a new version of zend optimizer v1.50 under another directory /folder/zend2
Does it automatically overwrite the system files (php etc) so that the old version is not referenced anywhere - and I can safely delete the original /folder/zend?
Or do you have to uninstall the original version first somehow?

Also another related question - if I install something manually via source like zend optimizer, and it makes adjustments to the system files, and then I usea package manager like yum to update php - will zend continue to work or do you have to reinstall it (does yum break connections to anything you installed manually?)

Thanks very much linux gurus
 
Old 03-31-2009, 03:15 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I'm not sure there will be a universal answer to this. Suppose that I have Firefox installed as part of the distro (including installation using the package manager). When a user runs Firefox for the first time, a folder is created in $HOME---typically .mozilla, which then contains firefox. If I then install another version of FF--say in /opt---it will still use the same $HOME/.mozilla/firefox path.

There are a few general rules which will help:

1. Whenever possible, always use the package manager.

2. If you install manually (including from source), always use a common directory such as /opt

3. If you have to remove something that was not installed using the package manager, then hunt down and remove all traces.

4. Backup important files
 
Old 03-31-2009, 10:31 PM   #3
SyncRaven
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks - I was hoping there was a universal connection between when you installed a new package (that it might overwrite previous configs).
Fortunatly the thing i'm currently installing I was able to do it through yum.
I'll keep working on understand it I guess .
 
  


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
How would you know all dependencies needed for source installations? chutsu Linux - General 1 01-16-2009 07:57 PM
Understanding source code Ashkan_s Linux - Software 3 07-20-2008 09:39 AM
understanding linux source code pankaj99 Programming 10 03-19-2006 05:54 PM
uninstall source installations shanenin Linux - Software 1 09-24-2003 11:41 PM
Illogical Failed dependencies for RPMs and source code installations, Slackware 9 peroxiderocket Slackware 4 07-14-2003 10:47 PM


All times are GMT -5. The time now is 01:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration