Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Wanted to setup APC php cache to a fresh 12.04 precise ubuntu box.

Do apt-get install php-apctotally replace apt-get -y install libpcre3-dev; sudo pecl install apc? If not what are the differences?

share|improve this question
up vote 3 down vote accepted

apt-get -y install libpcre3-dev; sudo pecl install apc will totally replace apt-get install php-apc. Both will install the APC extension for your PHP installation, there are however 2 differences:

  1. Different versions: apt-get will give you the release as of Ubuntu-12.04's freeze (aka APC v3.1.7), while 'pecl install apc' will give you pecl's latest version (v3.1.9 as of now).
  2. Visibility in the software center: Installing via pecl circumvents Ubuntu's integrated packaging system, so Ubuntu's apt/dpkg system is not aware of the updated version. In case there's an update Ubuntu may overwrite your side-loaded APC instance with an updated old version.
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .