> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/nl/installatie/upgrading-tex-live.md).

# TeX Live upgraden

Om bandbreedte te besparen, worden zowel de Overleaf Community Edition- als de Overleaf Pro-images alleen geleverd met een minimale installatie van [TeX Live](https://www.tug.org/texlive/). U kunt meer pakketten installeren of upgraden naar een volledige TeX Live-installatie met behulp van het [tlmgr](https://www.tug.org/texlive/tlmgr.html) commando in de `sharelatex` container.

{% hint style="warning" %}
De volgende instructies **alleen** zijn van toepassing op Community Edition-installaties. We raden Overleaf Pro-gebruikers sterk aan om [Sandboxed Compiles](broken://pages/d91211ccf4ca260d651a1eda0a74fce6bd7aa7ce) in te schakelen, omdat dit gebruikers toegang geeft tot dezelfde TeX Live-images die worden gebruikt op [overleaf.com](/on-premises/nl/configuratie/overleaf-toolkit.md) en daarnaast isolatie biedt tussen projectcompilaties voor extra beveiliging.
{% endhint %}

#### Binnenkomen in de sharelatex-container

Om een shell te starten in de `sharelatex` container, voert u

```bash
bin/shell
```

U krijgt een prompt die er als volgt uitziet:

```bash
root@309b192d4030:/#
```

In de volgende instructies gaan we ervan uit dat u zich in de container bevindt.

#### Uw huidige TeX Live-versie bepalen

TeX Live wordt elk jaar rond de maand april uitgebracht. Stappen voor het gebruiken van `tlmgr` zijn anders, afhankelijk van of u de huidige release of een oudere gebruikt. U kunt controleren welke versie van TeX Live u gebruikt met `tlmgr --version`. Deze installatie draait bijvoorbeeld TeX Live 2021:

```bash
# tlmgr --version
tlmgr revision 59291 (2021-05-21 05:14:40 +0200)
tlmgr using installation: /usr/local/texlive/2021
TeX Live (https://tug.org/texlive) version 2021
```

{% hint style="info" %}
De huidige release van TeX Live is te vinden op [de TeX Live-homepage](https://www.tug.org/texlive/).
{% endhint %}

Als u een oudere TeX Live-versie gebruikt, hebt u twee opties. Een nieuwe versie van de Overleaf Docker-image wordt meestal kort na een TeX Live-release uitgebracht; u kunt ofwel wachten tot die beschikbaar is en uw implementatie upgraden met behulp van het `bin/upgrade` script, of, als u liever de oudere TeX Live-release behoudt, moet u eerst `tlmgr` opdragen een historisch repository te gebruiken. Instructies daarvoor vindt u [hier](https://www.tug.org/texlive/acquire.html#past).

#### Pakketten installeren

Om een volledige TeX Live-installatie te installeren, voert u dit commando uit in de `sharelatex` container:

```
tlmgr install scheme-full
```

U kunt ook afzonderlijke pakketten handmatig installeren:

```bash
tlmgr install tikzlings tikzmarmots tikzducks
```

{% hint style="warning" %}
Vanaf `3.3.0` release is het uitvoeren van `tlmgr path add` is **vereist** opnieuw na elk gebruik van `tlmgr install`, om alle binaire bestanden correct als symbolische links in het systeempad te plaatsen.
{% endhint %}

Er zijn nog veel meer commando's beschikbaar. Lees er meer over met:

```
tlmgr help
```

Wanneer u klaar bent, typt u `exit` of drukt u op Control-D om de shell af te sluiten.

#### Uw wijzigingen opslaan

De wijzigingen die u zojuist hebt aangebracht, hebben de `sharelatex` container gewijzigd, maar ze zijn tijdelijk — ze gaan verloren als Docker Compose de container opnieuw aanmaakt, bijvoorbeeld als onderdeel van het bijwerken van de configuratie.

Om ze persistent te maken, gebruikt u `docker commit` om de wijzigingen op te slaan in een nieuwe docker-image:

```bash
cat config/version #5.2.1
docker commit sharelatex sharelatex/sharelatex:5.2.1-with-texlive-full
echo 5.2.1-with-texlive-full > config/version
```

Werk na het vastleggen van de wijzigingen de `config/version` dienovereenkomstig bij. Voer vervolgens `bin/up`, om de `sharelatex` container.

{% hint style="danger" %}
U moet deze stappen elke keer herhalen wanneer u [upgradet](https://github.com/overleaf/toolkit/blob/master/doc/upgrading.md) naar een nieuwe Overleaf-versie.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/nl/installatie/upgrading-tex-live.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
