Install older version of package on ubuntu/debian
Intro
I had a problem installing gitlab-ce a newer version, because it was a mayor update you first needed to install a older version.
Fixing it
[mermaid] flowchart TD start([Start]) –> step1(apt-get update) –> step2(apt-cache show gitlab-ce | grep Version) –> step3(apt-get install gitlab-ce=14.0.12-ce.0) –> step4(apt-get install gitlab-ce) –> finish([Finished]) [/mermaid]
So in text
- apt-get update
- apt-cache show <package_name>
- apt-get install <package_name>=
- apt-get install <package_name>
Later,
Richard