Debian Repository

I have created my own debian repository, to be able to provide debian versions of my softs.

And as often as I can, I use it to provide debian versions of Code::Blocks Nightly Builds

It is available for Debian Bookworm and Bullseye for both 32 and 64 bits.

Here are the steps to set it up on your system.

Quick links for this article:

Note for users already using this repository before 2021-10-10 : The repository url(s) have been modified, switching from stable or oldstable to debian12 or debian11. You'll have to update your sources.list file.

Repository url

The first thing you have to set up is the url of the repository.

But, as this repostory is using https as protocol, you must be sure that apt-transport-https is installed.

If all is ok, you just have to add the following lines to the /etc/apt/sources.list file.

For Debian 12 (Bookworm):

deb bookworm main
deb-src bookworm main

And for Debian 11 (Bullseye):

deb bullseye main
deb-src bullseye main

There is also a Debian 9 (Stretch) and Debian 10 (Buster) url but this part of the repository won't be updated in the future:

deb buster main
deb-src buster main
deb stretch main
deb-src stretch main

For Ubuntu users, you'll have to search on witch version of Debian your distribution is based. You can have a look at the /etc/debian_version file by entering, in a terminal windows, the following line:

cat /etc/debian_version

Public key

The public key for this repository can be downloaded using this link.

It can then be added to your system's thrusted keys (probably using you favorite package manager).

This can also be done using command line (don't forget that this should be done in su mode):

1st method: to avoid the "Key is stored in legacy trusted.gpg keyring" security warning, you can use the following command:

wget -O- | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/xavs-repo.gpg

2nd method: if you don't mind getting this warning each time you perform an apt update, you can still use the old style method:

wget -O- | apt-key add -

That's all : you can now perform a simple apt update and install one of the packages provided in this repository.

Here is what it gives:

debian repository
Adding the key and updating the database

As usual, don't forget to tell me about problems you could have with this.


I regularly provide nightly-builds of Code::Blocks with this repository.

But as there is an official version provided by debian, these nightly-builds are not proposed for installation, nor they are automatically updated.

This behaviour can be overriden by pinning my repository with a high priority.

To do this, juste create a new file named, for example, codeblocks in /etc/apt/preferences.d (you'll need administrator's rights for this)

In this file, add the following lines:

Package: *
Pin: origin
Pin-Priority: 999

Now, you'll be able to install the last nightly-build of Code::Blocks as soon as I'll update the repository's content.