1

I added the Ondrej repository ( http://ppa.launchpad.net/ondrej/php/ubuntu/ ) on a Ubuntu Xenial virtual machine, to add PHP 5.6. It works flawlessy.

I noticed that this repository includes updates to PHP 7.x, but I'd like to keep the official Ubuntu version and get updates from Ondrej only for PHP 5.x. Could you help me to filter the repository updates in a correct way?

Thank you very much.

0

You will want to "Pin" the specific package version:

http://www.jaredlog.com/?p=1820
https://help.ubuntu.com/community/PinningHowto

This post specifically describes how you would accomplish this:

https://askubuntu.com/a/814936/163136

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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