A
A
Alexey Tutubalin2015-05-12 12:58:04
Apache HTTP Server
Alexey Tutubalin, 2015-05-12 12:58:04

How to rollback apache?

After updating via apt-get upgrade, Apache was also updated from version 2.2 to 2.4 without updating the configs, but I need the old version, please tell me how to roll back?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-05-12
@Kennius

If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on the manual page of apt-get. It can also be accessed from terminal by typing man apt-get

sudo apt-get install <package-name>=<package-version-number> OR

sudo apt-get -t=<target release> install <package-name>

is the command to be run. This can be used to down-grade a package to a specific version.
It has been helpfully pointed out in the comments that
apt-cache showpkg lists all available versions. (h/t Sparhawk)
apt-mark hold "holds" the package at the current version, preventing automatic upgrades.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question