While I know that php 8 is the default PHP choice on Ubuntu 22.04, I still use php 7 for my project. When installing packages related to PHP, the dependancies always pick php-common, php-*, etc.. and end up installing php 8 on the server.
Currently I have trouble installing Composer via apt install composer
So how do I tell the system that php-* is always mapped to php7.4-* and force libraries to always pick this given php version?