6

When you use apt-get, what's the difference between the php7.0-sqlite package and the php-sqlite3 package?

I'm trying to get a php PDO package

  • 2
    There is no php7.0-sqlite package. – muru Jun 28 '16 at 0:24
  • I probably got it mixed up with an older version, thank you for the help again – Drato Zelta Jun 28 '16 at 0:28
  • Fixed it ^^^^^^ I meant the Php7.0- and the Php- packages – Drato Zelta Jun 28 '16 at 0:36
15

php7.0-sqlite3 is the package that provides the PHP plugins for SQLite3 Database support.

php-sqlite3 is a metapackage that pulls in php7.0-sqlite3 (in Xenial). Part of the migration was that it is easier to just define a dependency on php-sqlite3 or similar so if we ever go to php7.1 or such, and a package just depends on php-sqlite3 it automatically pulls in the correct version. This also makes it easier on setup scripts and users to just install php-sqlite3 instead of having to memorize what PHP numeric version is in use (or worse, hardcode the version to use).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.