Re: How to get rst preview tools on CentOS7?

Oleksandr Gavenko <[email protected]>
Newsgroups gmane.text.docutils.user
Organization Oleksandr Gavenko <[email protected]>, http://defun.work/
Message-ID <[email protected]>
On 2016-06-03, Oleksandr Gavenko wrote:
> From: "David M. Karr"
>> What I can't figure out is how to get the various RST preview tools, 
>> like "rst2pdf".  I see that "rst2pdf" is available on Ubuntu, but I 
>> don't see it in the default repos for CentOS7.
>
> I don't use RH, just make web search for Debian "apt-file" alternative:
>
>   sudo yum install yum-utils
>   repoquery --whatprovides '*bin/rst2pdf'

On Debian 'rst2pdf' is provided by external project:

  $ apt-file search bin/rst2pdf
  rst2pdf: /usr/bin/rst2pdf

  $ apt-cache show rst2pdf
  Version: 0.93-4
  Maintainer: Elena Grandi <[email protected]>
  Homepage: http://code.google.com/p/rst2pdf/

It seems that docutils team is not responsible for that utility.

You should contact RH/CentOS packaging team and ask them for inclusion of
rst2pdf utility.

================================================================

I managed to install CentOS in LXC container:

  sudo lxc-create -t centos -n centos2 -- --release 6.8
  sudo lxc-create -t centos -n centos2 -- --release 7

Even "yum" utility provide built-in ability to query for packages which have
certain files:

  [root@centos media]# cat /etc/redhat-release 
  CentOS release 6.8 (Final)

  [root@centos media]# yum whatprovides '*/bin/rst2pdf*'

  No Matches found

  [root@centos media]# yum whatprovides '*/bin/rst2*'
  python-docutils-0.6-1.el6.noarch : A system for processing plaintext documentation
  Matched from:
  Filename    : /usr/bin/rst2html
  Filename    : /usr/bin/rst2odt
  Filename    : /usr/bin/rst2xml
  Filename    : /usr/bin/rst2s5
  Filename    : /usr/bin/rst2latex
  Filename    : /usr/bin/rst2man
  Filename    : /usr/bin/rst2pseudoxml
  Filename    : /usr/bin/rst2newlatex
  Filename    : /usr/bin/rst2odt_prepstyles


  [root@centos2 media]# cat /etc/redhat-release 
  CentOS Linux release 7.2.1511 (Core) 

  [root@centos2 media]# yum whatprovides '*/bin/rst2pdf*'

  No Matches found


  [root@centos2 media]# yum whatprovides '*/bin/rst2*'
  Loaded plugins: fastestmirror
  Loading mirror speeds from cached hostfile
   * base: mirror.mirohost.net
   * extras: mirror.mirohost.net
   * updates: mirror.mirohost.net
  python-docutils-0.11-0.2.20130715svn7687.el7.noarch : System for processing plaintext documentation
  Repo        : base
  Matched from:
  Filename    : /usr/bin/rst2odt
  Filename    : /usr/bin/rst2html
  Filename    : /usr/bin/rst2pseudoxml
  Filename    : /usr/bin/rst2xml
  Filename    : /usr/bin/rst2s5
  Filename    : /usr/bin/rst2latex
  Filename    : /usr/bin/rst2man
  Filename    : /usr/bin/rst2odt_prepstyles
  Filename    : /usr/bin/rst2xetex

-- 
http://defun.work/


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.