I have this older package in this exact version that I want to install on Ubuntu.
https://launchpad.net/ubuntu/+source/php5/5.3.10-1ubuntu3.20
How can I install it using apt-get ? Thank you
I have this older package in this exact version that I want to install on Ubuntu.
https://launchpad.net/ubuntu/+source/php5/5.3.10-1ubuntu3.20
How can I install it using apt-get ? Thank you
For those looking for an earlier version of php 7.
List all php 7 versions:
apt-cache policy php7.*
Specify and install a specific php 7 version, in example 7.4.3:
sudo apt install php7.4-fpm=7.4.3-4ubuntu2.2
^ ^
| |
(left) pkgname / (right) version part
to find out what different versions of a package is available in the enabled repository
apt-cache policy <package-name>
in your case
apt-cache policy php5
select the version that you want to install and then type
sudo apt-get install pkgname=version
in your case
sudo apt-get install php5=5.3.10-1ubuntu3.20
before running any of the above commands, it is better to update the apt-cache first. To do it, run
sudo apt-get update
.deb
files and manually and install them using dpkg -i <filename>
However, there are chances that other version might not be supported on your ubuntu version. By the way, what version of Ubuntu are you using? –
Abstractionism php5.5
is better than php5.3
. It is necessarily php5.3
with more bug fixes. That is the reason why repos have replaced php5.3 with php5.5 –
Abstractionism Try:
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt install phpX.Y # E.g. 7.4
© 2022 - 2024 — McMap. All rights reserved.
dpkg -i
– Pickax