2

I used PHP7 from the dotdeb packages for my install of Debian 8 Jessie. Now, I want to upgrade to Debian 9 Stretch (which has php7) and I want my Php7 package to be from Stretch and no more from dotdeb.

Is it possible, or should I keep php from dotdeb?

(Note: I don't want to uninstall php and reinstall it because I don't want to lose my configurations...)

1 Answer 1

4

You can change the php7 from dotdeb to the stretch package, but to avoid any conflicts it will be best to uninstalling and then reinstalling php.

Which can be achieved by:

apt-get remove php7.0

followed by removing the repository for dotdeb from sources.list (see this stackexchange answer) then update apt and install php7 again:

apt-get update
apt-get install php7.0

(package name is PHP7.0)

3
  • I'd like to avoid loosing my conf files...
    – fred727
    Commented Sep 6, 2017 at 10:52
  • 1
    by default apt-get remove leaves the configuration files unless you use the purge command so your configs should be fine.
    – user86219
    Commented Sep 6, 2017 at 13:07
  • In fact, I have removed dotdeb link in sources.list and the update was OK witout deleting php first.
    – fred727
    Commented Sep 12, 2017 at 10:48

You must log in to answer this question.

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