Kitware APT Repository

This is Kitware, Inc.'s third-party APT repository, which we use for hosting our own Ubuntu packages, such as CMake.

We currently support Ubuntu 24.04, 22.04 and 20.04 on our repository. The repositories support x86 (64-bit only) and ARM (32-bit and 64-bit).

To add the repository to your installation, run the kitware-archive.sh script, or do the following in order:

  1. If you are using a minimal Ubuntu image or a Docker image, you may need to install the following packages:

    sudo apt-get update
    sudo apt-get install ca-certificates gpg wget
  2. If the kitware-archive-keyring package has not been installed previously, manually obtain a copy of our signing key:

    test -f /usr/share/doc/kitware-archive-keyring/copyright ||
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
  3. Add the repository to your sources list and update.

    For Ubuntu Noble Numbat (24.04):

    echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
    sudo apt-get update

    For Ubuntu Jammy Jellyfish (22.04):

    echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
    sudo apt-get update

    For Ubuntu Focal Fossa (20.04):

    echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
    sudo apt-get update
  4. If the kitware-archive-keyring package has not been installed previously, remove the manually obtained signed key to make room for the package:

    test -f /usr/share/doc/kitware-archive-keyring/copyright ||
    sudo rm /usr/share/keyrings/kitware-archive-keyring.gpg
  5. Install the kitware-archive-keyring package to ensure that your keyring stays up to date as we rotate our keys:

    sudo apt-get install kitware-archive-keyring
  6. As an optional step, if you would like to subscribe to release candidates in addition to production releases, you can add our release candidate repository to your sources.

    For Ubuntu Noble Numbat (24.04):

    echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble-rc main' | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
    sudo apt-get update

    For Ubuntu Jammy Jellyfish (22.04):

    echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy-rc main' | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
    sudo apt-get update

    For Ubuntu Focal Fossa (20.04):

    echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
    sudo apt-get update

    Note that if you add the release candidate repository, you will still need to add the main repository as well, as the release candidate repository does not provide production releases on its own.

Now you can install any package from our APT repository. As an example, try installing the cmake package:

sudo apt-get install cmake

For all questions and concerns, please contact debian@kitware.com.