Thursday, January 6, 2022

[SOLVED] Debian 9/Ubuntu: Which repository sources can I add to sources.list in order to get more up-to-date packages?

Issue

(I've already run apt-get update.)

I installed php from the default Debian repositories, but found that it's only version 7.0. This is now 4 years old, from 2015...

Last year, I had been developing a project using the most recent stable PHP version at the time (7.2), which I had installed with Homebrew. Now I'm trying to set up a Debian machine, but I cannot compile my projects because Debian's default packages are so old. I expect that I'll have issues with other obsolete packages as well, which is why I'm generalizing my question beyond PHP.

Is there a repository (or repositories) that I can add to my /etc/apt/sources.list file that will grant me access to more recent packages? Homebrew is able to find them, so it must be possible.


Solution

Here you can find online repo list generator with a good explanation on each repo. read it for more info. by the way you need do what @JosephWorks said to get most recent packages.



Answered By - Siyavash vaez afshar