Enterprise Qt Debian Packaging

To use Debian packaging with Qt, add your enterprise repositories to Advanced Packaging Tool (APT). For details, see Debian Repository Configuration Format.

To use the enterprise repositories, you need to:

Debian Repository Configuration Format

To add extra repositories for APT, insert repositories into a file with an extension of .list under the /etc/apt/sources.list.d directory. For each repository, add a new entry in the file. The generic format is as follows:

deb [arch=<arch> signed-by=<path>] <REPO_URL> <DIST> <COMPONENT(s)>

An example of an enterprise repository entry:

$ sudo nano /etc/apt/sources.list.d/tqtc.list

    deb [arch=arm64 signed-by=/home/<user>/keyrings/tqtc/qt-company-debian-repo.gpg] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main

See Repository information for Qt Releases for detailed information on how you can configure repositories per Qt release and architecture.

Installing Public GPG Key

Install a public GPG (GNU Privacy Guard) key for Qt Enterprise Debian repositories as follows:

$ mkdir -p $HOME/keyrings/tqtc  # pick a suitable location for you!
$ wget https://cdn.qt.io/debian/keys/qt-company-debian-repo.gpg $HOME/keyrings/tqtc

An alternative, although deprecated, way is as follows:

$ sudo apt-key add qt-company-debian-repo.gpg

Configuring Authentication

To access the listed repositories, you need an enterprise Qt Account or an evaluation Qt Account.

Note: If your password contains special characters, you may need to escape those by using '\' or '%40'.

Configure the Qt Account credentials for your APT package manager as follows:

$ sudo nano /etc/apt/auth.conf

      machine https://debian-packages.qt.io
      login <Qt Account login name (email)>
      password <Qt Account password>

If your Linux distribution does not support the auth.conf configuration, you can alternatively put the login credentials into the repository entry definition as follows:

deb [arch=arm64 signed-by=<path>] https://john.smith@company.com:password123@debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main

Repository Configuration Example

The following code snippet demonstrates how you can configure repositories for multiple Qt repositories:

$ sudo nano /etc/apt/sources.list.d/tqtc.list

    deb [arch=arm64 signed-by=/home/<user>/keyrings/tqtc/qt-company-debian-repo.gpg] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main
    deb [arch=amd64 signed-by=/home/<user>/keyrings/tqtc/qt-company-debian-repo.gpg] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-amd64 tqtc-focal main

    # in case you need to put your Qt Account credentials directly into the repository entry
    deb [arch=arm64 signed-by=/home/<user>/keyrings/tqtc/qt-company-debian-repo.gpg] https://john.smith@company:password123@debian-packages.qt.io/debian/enterprise/qt-6.4.0-arm64 tqtc-jammy main

See Repository information for Qt Releases to pick the needed repositories into your /etc/apt/sources.list.d/tqtc.list file.

Repository information for Qt Releases

Below you can find the Qt releases that the enterprise Qt Debian packaging supports. Pick the needed repositories and add them to your /etc/apt/sources.list.d/tqtc.list as instructed above.

Also, the following tables list the installation directories on your system and the Linux distribution used to build the packages.

Qt 6.3.1

ArchitectureDistribution (build platform)Installation directoryPackage resource list entries for APT
arm64focal-fossa (Ubuntu 20.04)/opt/qt-6.3.1/aarch64-linux-gnu/deb [arch=amd64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-amd64 tqtc-focal main
amd64focal-fossa (Ubuntu 20.04)/opt/qt-6.3.1/x86_64-linux-gnu/deb [arch=arm64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.