diff --git a/install_ubuntu_details.sh b/install_ubuntu_details.sh
index bef0d618676716cc0dd9903547905a4b6eef7e03..5b8f2a218f17b7a9ab1deea3dedad532f7b44dc2 100644
--- a/install_ubuntu_details.sh
+++ b/install_ubuntu_details.sh
@@ -691,13 +691,36 @@ systemctl --user --now enable pipewire-media-session.service
 # sudo snap remove hugo
 hugo version
 
+#-----------------------------------------------------------------------
+# QGIS.
+# https://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu
+
+# Dependencies.
+sudo apt install gnupg software-properties-common
+
+# Add the public key.
+sudo mkdir -m755 -p /etc/apt/keyrings  # not needed since apt version 2.4.0 like Debian 12 and Ubuntu 22 or newer
+sudo wget -O /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg
+
+# Adds content to file.
+sudo geany /etc/apt/sources.list.d/qgis.sources
+# Types: deb deb-src
+# URIs: https://qgis.org/debian
+# Suites: your-distributions-codename
+# Architectures: amd64
+# Components: main
+# Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
+
+# Update and install.
+sudo apt update
+sudo apt install qgis qgis-plugin-grass
+
 #-----------------------------------------------------------------------
 # Raspberry Pi Imager.
 # https://ubuntu.com/tutorials/how-to-install-ubuntu-desktop-on-raspberry-pi-4#2-prepare-the-sd-card
 
 sudo snap install rpi-imager
 
-
 #-----------------------------------------------------------------------
 # Install Docker.
 # https://linuxconfig.org/how-to-install-docker-on-ubuntu-20-04-lts-focal-fossa