Ask Ubuntu Asked on January 3, 2022
My package does not define specific PHP version in its dependency, but only works with older PHP versions (7.2). On Ubuntu 20.04 the apt install <my-package>
will want to install php7.4-mysql, unless I explicitelly install php7.2-mysql.
Is there a solution to configure PHP (repositories, versions) and/or apt
in a way that apt install <my-package>
can only install its dependency for specific PHP versions?
If the repository contains more than on version it is possible to install that certain version with:
sudo apt install <my-package>=<X.Y>
e.g.
sudo apt install php=7.2
but the chances are low that there are more versions of php. (They must be compiled against the current libraries, so maintenance of different versions costs quite some time)
You could add a ppa which is compatible with 20.04, or you can download the appropriate deb files.
Those files can be installed either with the gdebi installer (GUI frontend( or by hand: `sudo dpkg -i <name-of-debfile.deb>
Answered by kanehekili on January 3, 2022
0 Asked on October 31, 2021 by inglebard
1 Asked on October 31, 2021 by malchesador
5 Asked on October 31, 2021 by keddad
5 Asked on October 31, 2021
8 Asked on October 31, 2021 by sancho-s-reinstatemonicacellio
1 Asked on October 31, 2021 by vladimir-usora
0 Asked on October 31, 2021 by aman-grover
1 Asked on October 31, 2021 by mh-shuvo
2 Asked on October 31, 2021 by popoolmica
0 Asked on October 31, 2021 by piyush-sharma
1 Asked on October 31, 2021
1 Asked on October 31, 2021
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP