LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-31-2010, 08:45 AM   #1
csushil
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
how does apt-get work


I have run into some issues with apt-get -
When trying to install php5, it always installs version 5.2.10.
So I downloaded the package and compiled and installed from source.
This does not remove/overwrite the old package and instead installs the package somewhere else.
Now I have two versions - cli 5.3.2 and cgi 5.2.10 and two different copies.
So I went on to remove the old one - apt-get remove php5 --purge
But nothing is purged. Both the builds are still there and localhost still shows php version 5.2.10 using phpinfo(). Cli still shows php version 5.3.2
So I go and remove all php files manually /etc/php5, some under /usr/local, some under /usr/share etc.
localhost still shows php 5.2.10
Please note that I had restarted apache everytime I did something.

In the end I decided to remove apache too and compile both php and apache from sources so I can get can php v 5.3.2 on localhost
I removed apache2 using apt-get remove
localhost still worked. Restarted apache, localhost still worked.

Well, it would be great if someone can tell me:
1. what exactly does apt-get remove do? and what is the --purge option for?
2. what is the default installation directory for apt-get?
3. what is the default installation directory for installation from source?
4. Which one is the place where actual installed file "should" reside (normally, as per linux design)?
4. what would we need to do to tell apache of the new version of php?
5. can I get the latest version of php by editing apt sources.lst file?
6. Will there be a third kind of installation if I use some other method like dpkg?

any help is much appreciated!
thanks,
sushil
 
Old 03-31-2010, 10:59 AM   #2
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
If I were you I would start again with a clean install. Aptitude update and aptitude upgrade to bring everything up-to-date, then aptitude install php5 should give you version 5.3.2 in Ubuntu 10.4.

To vaguely answer your questions, purge is to remove configuration files. There is no set installation directory, files for different purposes are put into their corresponding folders (for documentation, executable files etc).
 
Old 04-02-2010, 03:16 AM   #3
csushil
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hey jsteel
thanks for your reply.
>>If I were you I would start again with a clean install.
I completely agree with your suggestion. But the problem is that I have not been able to uninstall the earlier version of apache, and I am not sure how to go about going that. Even after removing it using
apt-get remove
it still works perfectly!
So before I re-install, it I want to make sure that earlier version is removed.
Can you help me with how to uninstall apache fully? I intend to reinstall it using source.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update doesn't work cccc Debian 1 01-04-2008 02:47 AM
apt-get remove doesn't work Yukon Linux - General 5 12-10-2006 11:40 PM
apt won't work jojo46 Linux - Newbie 5 09-14-2004 05:57 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM
Getting apt-get to work? Megamieuwsel Linux - Software 2 09-17-2003 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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