Skip to content

Development & Programming


How do I run DietPi-Software and install optimised software items?

To install any of the DietPi optimised software items listed below run from the command line:


Choose Browse Software and select one or more items. Finally select Install.
DietPi will do all the necessary steps to install and start these software items.

DietPi-Software menu screenshot

To see all the DietPi configurations options, review the DietPi Tools section.

Return to the Optimised Software list

Python 3

Python is a text based interpreted programming language with object oriented programming options for general purpose applications.

Python logo

Source: By, GPL

You can find Python everywhere in the world of computer programming. For example, Python is the foundation of some of the world’s most popular websites 3, including Reddit, Dropbox, and YouTube, to name a few. The Python web framework Django powers both Instagram and Pinterest.

Currently, Python is 3rd most popular of programming language 4.

To find out which version of Python is installed, just run

python3 -V

The install option explicitly installs only Python 3.
The pip/pip3 Python package manager and development headers are included. To use the pip package manager, a typical usage will be pip3 install -U <module>.

There are many Python IDE packages available. Following is a short list of well known and widely good accepted IDE packages (alphabetical order):

Eclipse + Pydev and
VSCodiumVSCodium below

Official documentation, from beginner to advanced:
How to Use Python: Your First Steps Wikipedia:


Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Go open source programming language logo

Source: By, Creative Commons Attribution 3.0

Go is a compiled, fast and high-performance language intended to be simple and is designed to be easy to read and understand. Go was created at Google by Rob Pike, Robert Griesemer, and Ken Thompson, and it first appeared in Nov 2009.

Go is used by some of the big organizations such as Google, BBC, Uber, Soundcloud, Twitch, Medium, Daily Motion2. Uber has reported better throughput, high performance, latency, and uptime. BBC, the house name in broadcasting the world news, uses it for backend, including crawlers and web scrapers. The build and deployment system of Soundcloud is in Go.

To find out which version of Go is installed, just run

go version

To edit the code you can use an editor of your choice, or use VSCodium. The Go extension available in VSCodium provides rich language support for the Go programming language.

Just to have a taste of it, you could run some commands in Go playground

Checkout also the official tutorial Get started with Go.

Some common Go commands are:

  • go env: Prints the Go internal environment variables (e.g. GOPATH). Can also be used e.g. like $(go env GOPATH)/bin
  • go mod tidy <MODULNAME>: Generate a Go module
  • go help: Start the Go internal help in general, details for commands e.g. via go help build
  • /usr/local/go: This is the place where the Go development tools is installed.
  • When installing packages via go get or go install, they are installed into the users home directory ~/go by default. A custom path can be set via the GOPATH environment variable. To also load binaries of compiled Go packages into your PATH, something like this can be done:

    cat << '_EOF_' >> ~/.bashrc
    export GOPATH=/path/to/go
    export PATH="$PATH:$GOPATH/bin"
dietpi-software reinstall 188

Official documentation:
Additional libraries: avelino/awesome-go
Source code: golang/go
License: BSD 3-Clause


Java programming language logo


The Java options of DietPi contain these basic options

  • Java Runtime Environment JRE
  • Java Development Kit JDK

The Java Runtime Environment is the runtime environment of the Java technology. It serves as a more or less hardware dependent software platform to abstract the Java applications from the host system (operating system). It defines an API (application programming interface, which is host system independent and contains the so called Java Virtual Machine (JVM).

The Java Development Kit is one of several Java software development kits (SDK) and is often used by the Java developers. It contains the components Java compiler javac, Java debugger jdb, Java documentation tool javadoc, Java archiver jar and further small tools.
To find out which version of Java is installed, just run

java -version


Mono .NET Framework implementation logo

Source: User OsamaK -

Mono is a cross platform, open source .NET framework. Is an alternative implementation of the Microsoft .NET framework. It support the development of platform independent software on the standards of the Common Language Infrastructure and the programming language C#.

To find out which version of Mono is installed, just run

mono --version


In 2013, Docker introduced containers. These are a standardized unit of software that allows developers to isolate their application from the environment. Docker is de facto standard to build and share containerized apps - from single board computers (SBC), to desktop or cloud.

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.

Docker functional block diagram

Source: User:Maklaan - Based on a Docker blog post

The Docker configuration files are located at:

  • Docker: /etc/docker/daemon.json
  • containerd: /etc/containerd/config.toml

Since Docker is installed via APT packages, it can be updated by running the following commands:

apt update
apt install docker-ce docker-ce-cli

Docker logs can be accessed using next command:

journalctl -u docker -u containerd

Docker offers plugins on its website (e.g. Docker Plugins amd64 stable), some of them are not installed by the Docker installation by default resp. are no install option from dietpi-software (like the Docker Compose plugin is one).
These additional plugins can be installed by the user as described below.

Docker Buildx CLI plugin:

apt install docker-buildx-plugin

Docker vulnerability scan CLI plugin:

apt install docker-scan-plugin

For running container rootless:

apt install docker-ce-rootless-extras

Docker downloads image file chunks to /mnt/dietpi_userdata/docker-data/tmp when generating a Docker image. After this, the file chunks are deleted as they are only temporary files.
In case of a slower disk (e.g. SD Card) this takes a longer time due to the SD Card reading/writing speed. To speedup the image generation, a tmpfs file system can be used.
A drawback of using a tmpfs is the required RAM, i.e. enough RAM memory (e.g. > 2 GB) should be present for the tmpfs.

The tmpfs file system can be added manually via the file /etc/fstab by entering a line (e.g. in the TMPFS area) like:

tmpfs /mnt/dietpi_userdata/docker-data/tmp tmpfs size=2G,noatime,lazytime,nodev,nosuid

The size= option should be adjusted to the systems RAM size: Only a part of the total RAM size should be used to avoid low memory issues.
After changing the file /etc/fstab the tmpfs needs to be activated. This can be done via a file system remount via

mount -o remount /mnt/dietpi_userdata/docker-data/tmp

or a system reboot.

Official documentation:
Configuration docs:
Logging docs:
Source code: moby/moby
License: Apache-2.0

YouTube video tutorial: DietPi Docker Setup on Raspberry Pi 3 B Plus

Docker Compose

Docker Compose is a Docker tool used to define and run multi-container applications. With Compose, you use a YAML file to create and configure your application’s services from this configuration file.

docker-compose is an excellent tool for development, testing, continuous integration (CI) workflows, and staging environments.

Docker Compose diagram

Docker (individual container) vs. Docker Compose (several containers) - source: A beginner’s guide to Docker

To update Docker Compose to the latest version, simply reinstall it:

dietpi-software reinstall 134

Official documentation:
Getting started:
Sample apps with Compose:
Release notes:
Source code: docker/compose
License: Apache-2.0


Portainer simplifies your Docker container management via Portainer web interface. It enables faster deploy of the applications and it gives real time visibility.

Portainer screenshot

The web interface is accessible via port 90021:

  • URL = http://<your.IP>:9002

To update Portainer, simply reinstall it:

dietpi-software reinstall 185

Official documentation:
Beginners guide: Source code: portainer/portainer
Open-source license: zlib


VSCodium is a FLOSS version of Microsoft’s Visual Studio code, built directly from the source on GitHub, without branding, tracking, or telemetry.

VSCodium screenshot

VSCodium is installed as APT package, hence you can update it by running the following commands:

apt update
apt install codium

Documentation (Visual Studio Code):
Documentation (VSCodium):
Source code: VSCodium/vscodium
License: MIT


Git logo


Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows.

To find out which version of Git is installed, just run

git --version

See also Gogs and Gitea, the GitHub style servers which are available in dietpi-software as an installation package.

Official website:
Official documentation:
Source code: git/git
License: GPLv2

Return to the Optimised Software list

  1. Logitech Media Server already listened to port 9000, and this is why Portainer has been configured to start using port 9002. For more details on the implementation Portainer in DietPi see the GitHub task: MichaIng/DietPi!3933 

  2. 7 Most Famous Companies That Use Golang 

  3. 8 World-Class Software Companies That Use Python 

  4. TIOBE Programming Community index