File size: 583 Bytes
86aee9f
 
33b7638
 
 
 
 
 
 
 
 
0ee2031
 
 
 
 
 
 
7109571
33b7638
7109571
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Update package list
apt-get update

# Install Tesseract OCR
apt-get install -y tesseract-ocr

# Install Poppler for PDF processing
apt-get install -y poppler-utils

# Remove the outdated Ghostscript version
apt-get remove -y ghostscript

# Download and install a newer Ghostscript version
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs1003/ghostscript-10.03.0-linux-x86_64.tgz
tar -xvzf ghostscript-10.03.0-linux-x86_64.tgz
mv ghostscript-10.03.0-linux-x86_64/gs-1003-linux-x86_64 /usr/local/bin/gs

# Verify installation
gs --version