How to install stable and ~fresh Pandoc on UBUNTU?

Viewed 2790

"Near fresh" here means "reasonably new", nowadays, "same year" or "1 year old"... Maybe "2 years old" also reasonable.

I used apt install pandoc today at UBUNTU 16 LTS, and for my surprise it is not a "fresh version", a very old version was installed: pandoc --version is 1.16.0.2 (of 2015!!) instead a 2019 version, v2.9. Out of curiosity I did the same on other machine with UBUNTU 18 LTS, same ugly surprise.

How to install stable "recent Pandoc", and not a 5 years-old version?
Or how to upgrade it by "plug and play mode"?


PS: internet/google show nothing, only very confuse comments. Install page also very confuse. No "clean and objective" install instruction for apt neither upgrade... Only other topic, "cabal update".

1 Answers

        ((please edit and update if necessary: this answer is a Wiki!))


The command line when I type "pandoc" on the UBUNTU terminal is
"use apt install pandoc"... It is bad instruction!

... And the installing page don't say that it's an ugly 5 years-old version!
It say to check UBUNTU method for "stable version" (it is not stable, it is "ugly version")...
Them, after disaster, the Pandoc's Linux installaing page finally says:

To get the latest release, we provide a binary package for amd64 architecture on the download page.

So, the full instruction is:

  1. Purge apt installed, you must "undo" the bad instruction.
    apt purge pandoc
  2. Get fresh .deb at Pandoc's git/releases. Example:
    wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
  3. Install. Example:
    sudo dpkg -i pandoc-2.9.2.1-1-amd64.deb
Related