srcredact command not found

In this troubleshooting guide we learn how to fix srcredact command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

srcredact: command not found

or when using sudo you get the following error message

sudo: srcredact: command not found

Solutions to srcredact: command not found

How To Fix srcredact: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu srcredact is provided by texlive-extra-utils package.

texlive-extra-utils is:

Myriad additional TeX-related support programs. Includes programs and macros for DVI file manipulation, literate programming, patgen, and plenty more.

This package includes the following CTAN packages:

a2ping – Advanced PS, PDF, EPS converter

adhocfilelist – ‘\listfiles’ entries from the command line

arara – Automation of LaTeX compilation

bibtex8 – BibTeX variant supporting 8-bit encodings

bibtexu – BibTeX variant supporting Unicode (UTF-8), via ICU

bundledoc – Bundle together all the files needed to build a LaTeX document

checklistings – Pass verbatim contents through a compiler and reincorporate the resulting output

chklref – Check for problems with labels in LaTeX

clojure-pamphlet – A simple literate programming tool based on clojure’s pamphlet system

cluttex – An automation tool for running LaTeX

ctan-o-mat – Upload or validate a package for CTAN

ctan_chk – CTAN guidelines verifier and corrector for uploading projects

ctanbib – Export CTAN entries to bib format

ctanify – Prepare a package for upload to CTAN

ctanupload – Support for users uploading to CTAN

ctie – C version of tie (merging Web change files)

cweb – CWEB for ANSI-C/C++ compilers

detex – Strip TeX from a source file

dtl – Tools to dis-assemble and re-assemble DVI files

dtxgen – Creates a template for a self-extracting .dtx file

dvi2tty – Produce ASCII from DVI

dviasm – A utility for editing DVI files

dvicopy – Copy DVI files, flattening VFs

dviinfox – Perl script to print DVI meta information

dviljk – DVI to Laserjet output

dviout-util –

dvipos – support DVI pos: specials used by ConTeXt DVI output

dvisvgm – Convert DVI, EPS, and PDF files to Scalable Vector Graphics format (SVG)

findhyph – Find hyphenated words in a document

git-latexdiff – Call latexdiff on two Git revisions of a file

gsftopk – Convert “Ghostscript fonts” to PK files

hook-pre-commit-pkg – Pre-commit git hook for LaTeX package developpers

installfont – A bash script for installing a LaTeX font family

ketcindy – macros for graphic generation and Cinderella plugin

latex-git-log – Typeset git log information

latex-papersize – Calculate LaTeX settings for any font and paper size

latex2man – Translate LaTeX-based manual pages into Unix man format

latex2nemeth – Convert LaTeX source to Braille with math in Nemeth

latexfileversion – Prints the version and date of a LaTeX class or style file

latexindent – Indent a LaTeX document, highlighting the programming structure

latexpand – Expand \input and \include in a LaTeX document

light-latex-make – llmk: A build tool for LaTeX documents

listings-ext – Automated input of source

ltxfileinfo – Print version information for a LaTeX file

ltximg – Extract LaTeX environments into separate image files

luajittex – LuaTeX with just-in-time (jit) compiler, with and without HarfBuzz

make4ht – A build system for tex4ht

match_parens – Find mismatches of parentheses, braces, (angle) brackets, in texts

mflua – configuration and base files for MFLua

mkjobtexmf – Generate a texmf tree for a particular job

optexcount – Python script for counting words in OpTeX documents

patgen – Generate hyphenation patterns

pdfbook2 – Create booklets from PDF files

pdfcrop – Crop PDF graphics

pdfjam – Shell scripts interfacing to pdfpages

pdflatexpicscale – Support software for downscaling graphics to be included by pdfLaTeX

pdftex-quiet – A bash wrapper for pdfTeX limiting its output to relevant errors

pdftosrc – Extract source file or stream from PDF file

pdfxup – Create n-up PDF pages with minimal margins

pfarrei – LaTeX support of pastors’ and priests’ work

pkfix – Replace pk fonts in PostScript with Type 1 fonts

pkfix-helper – Make PostScript files accessible to pkfix

pythontex – Run Python from within a document, typesetting the results

seetexk – Utilities for manipulating DVI files

spix – Yet another TeX compilation tool: simple, human readable, no option, no magic

srcredact – A tool for redacting sources

sty2dtx – Create a .dtx file from a .sty file

synctex – engine-level feature synchronizing output and source

tex4ebook – Converter from LaTeX to ebook formats

texcount – Count words in a LaTeX document

texdef – Display the definitions of TeX commands

texdiff – Compare documents and produce tagged merge

texdirflatten – Collect files related to a LaTeX job in a single directory

texfot – Filter clutter from the output of a TeX run

texlive-scripts-extra – TeX Live scripts

texliveonfly – On-the-fly download of missing TeX live packages

texloganalyser – Analyse TeX logs

texlogfilter – Filter LaTeX engines output or log file

texlogsieve – Filter and summarize LaTeX log files

texosquery – Cross-platform Java application to query OS information

texplate – A tool for creating document structures based on templates

texware – Utility programs for use with TeX

tie – Allow multiple web change files

tpic2pdftex – Use tpic commands in pdfTeX

typeoutfileinfo – Display class/package/file information

web – The original literate programming system

xindex – Unicode compatible index generation

xpdfopen – Commands to control PDF readers, under X11

To fix this problem, we can install more using the command below.

sudo apt-get -y install texlive-extra-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install texlive-extra-utils.

sudo apt -y install texlive-extra-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install texlive-extra-utils

Summary

In this tutorial we learn how to fix srcredact command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.