Discussion:
OpenVas 7 PDF-generation on CentOS 7
Dustin Demuth
2014-10-14 12:37:38 UTC
Permalink
Hey all,


I'd like to open an discussion for PDF-Generation on CentOS 7.

Currently this is failing, as the dependency
texlive-collection-latexextra is missing in the CentOS repositories.


So my Idea is the solution^W circumvention below, which could also be
posted to the Wiki, if you agree with it.


BR

Dustin

++++++

Problem and temporary solution:

If you are running OpenVAS 7 on a Centos 7 machine,
PDF-Generation is not working.
The required package "texlive-collection-latexextra" is currently
(October 2014) not available in the official repositories.

You can identify this problem the following way:

when running

# openvas-check-setup

the check reports:
...
Step 9: Checking presence of optional tools ...
OK: pdflatex found.
WARNING: PDF generation failed, most likely due to missing LaTeX
packages. The PDF report format will not work.
SUGGEST: Install required LaTeX packages.
...

and
# yum install texlive-collection-latexextra

shows sth. like:

"The package texlive-collection-latexextra is not available"


One possible alternative is the installation of texlive from the
official texlive-mirrors.

# wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
# tar xvzf install-tl-unx.tar.gz
# cd install-tl-*
# ./install-tl

Please refer to the instructions on
https://www.tug.org/texlive/acquire-netinstall.html

and
it
https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-18057r2

Use "options (O)" and "create symlinks (L)" for the texlive

binaries to: /usr/bin
manpages to: /usr/share/man
to: /usr/share/info

Now return (R) to the main menu an install (I) texlive



In the next step, you need to install openvas-manager without the
dependencies.
Unfortunately this step is required as the manually installed texlive
was not registered with the package management system and yum tries to
reinstall texlive, which MIGHT cause erratic behaviour of texlive

Download openvas-manager from the atomic repository:

# yum install --downloadonly --downloaddir=/tmp openvas-manager

and install
# cd /tmp
# rpm -i --nodeps openvas-manager-*.rpm


Now you can install greenbone-security-assistant normally with

# yum install greenbone-security-assistant


When running
# openvas-check-setup

you should receive:
...
Step 9: Checking presence of optional tools ...
OK: pdflatex found.
OK: PDF generation successful. The PDF report format is likely
to work.
...




If you already had installed openvas and texlive, you can remove texlive
without resolving missing dependcies like this:

# rpm -e --nodeps -v $(rpm -qa 'texlive*')

now you can reinstall texlive like described above.
This should keep your existing openvas installation intact.

Loading...