Install pandoc on Ubuntu: sudo apt-get install pandoc

Learn how to install pandoc with the command sudo apt-get install pandoc on Ubuntus.


 

Ads

Quick installation of pandoc:

Step 1: Update system:

	sudo apt-get update

Step 2: Install: pandoc

Ater updaing the OS run following command to install the packae:

	sudo apt-get install pandoc

Package Details

Package:pandoc
Version:1.9.1.1-1
Maintainer:Ubuntu Developers
Home page:http://johnmacfarlane.net/pandoc/
Description:general markup converter Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX; and it can write plain text, markdown, reStructuredText, XHTML, HTML 5, LaTeX (including beamer slide shows), ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, Word docx, GNU Texinfo, MediaWiki markup, EPUB, Textile, groff man pages, Emacs Org-Mode, AsciiDoc, and Slidy, DZSlides, or S5 HTML slide shows. It can also produce PDF output on systems where LaTeX is installed. . Pandoc's enhanced version of markdown includes syntax for footnotes, tables, flexible ordered lists, definition lists, delimited code blocks, superscript, subscript, strikeout, title blocks, automatic tables of contents, embedded LaTeX math, citations, and markdown inside HTML block elements. (These enhancements can optionally be disabled.) . In contrast to most existing tools for converting markdown to HTML, which use regex substitutions, Pandoc has a modular design: it consists of a set of readers, which parse text in a given format and produce a native representation of the document, and a set of writers, which convert this native representation into a target format. Thus, adding an input or output format requires only adding a reader or writer. . This package contains the pandoc tool. . PDF output via PDFLaTeX requires the package texlive-latex-recommended, via XeLaTeX it additionally requires texlive-xetex, and via LuaTeX additionally texlive-luatex. Homepage: http://johnmacfarlane.net/pandoc/
Distro:Ubuntu 12.04 LTS
Release:
Repo/Section:universe/text

How to install pandoc on Ubuntu 12.04 LTS?

First of all update your system with the command:

sudo apt-get update

Ads

Above command will download the package lists for Ubuntu 12.04 LTS on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If pandoc is not installed on your compter then the command 'dpkg -L pandoc' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L pandoc
Package `pandoc' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing pandoc:

After system update use the following command to install pandoc:

sudo apt-get install pandoc

Above command will confirm before installing the package on your Ubuntu 12.04 LTS Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove pandoc from Ubuntu 12.04 LTS?

Now we will see the commands for uninstalling the pandoc from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the pandoc following command is used:

sudo apt-get remove  pandoc

Following command is used to remove the pandoc package along with its dependencies:

sudo apt-get remove --auto-remove pandoc

This will remove pandoc and all its dependent packages which is no longer needed in the system.

Completely removing pandoc with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge pandoc

or you can use following command also:

sudo apt-get purge --auto-remove pandoc

Above command will remove all the configuration files and data associated with pandoc package. You can can't recover the delete data, so, use this command with care.