Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the different between php5 and php5-dev

Tags:

linux

php

ubuntu

When I install php on ubuntu, somebody use

sudo apt-get install php5

somebody use

sudo apt-get install php5-dev

What is the different between them?

like image 376
Edison Liu Avatar asked Jan 17 '12 05:01

Edison Liu


2 Answers

php5-dev contains files to develop PHP modules:

This package provides the files from the PHP5 source needed for compiling additional modules.

php5 is a meta package that installs the PHP runtime.

like image 116
Daff Avatar answered Oct 03 '22 19:10

Daff


The command

  apt-cache search php

would tell you the difference:

   php5 - server-side, HTML-embedded scripting language (metapackage)
   php5-dev - Files for PHP5 module development
like image 32
Basile Starynkevitch Avatar answered Oct 03 '22 20:10

Basile Starynkevitch