Reply To: Xorg is dead. Long live XLibre

Forum › Forums › General › Software › Xorg is dead. Long live XLibre › Reply To: Xorg is dead. Long live XLibre

#200331
Wallon
Member

    Dear all,

    I’d like to share something that might be useful for people testing or using XLibre on MX/antiX (or Debian Trixie in general).

    After installing XLibre from its repository, everything works fine, and APT usually prefers XLibre packages because they have a higher version number than Debian’s Xorg ones.

    However, there is an important detail:

    APT does NOT prioritize XLibre by default. Both Debian and XLibre repositories typically have the same priority (500). This means that if Debian later provides a newer version of a package, it could overwrite XLibre and partially revert the system back to Xorg.

    To avoid this, it is a good idea to add an APT pinning rule to ensure XLibre always stays preferred.

    Here is what I did:

    1. Create a new file:

    
       sudo nano /etc/apt/preferences.d/xlibre
    

    2. Add the following content:

    
       Package: *
       Pin: origin xlibre-debian.github.io
       Pin-Priority: 900
    

    3. Update APT:

    
       sudo apt update
    

    You can verify it works with:

    
    apt-cache policy x11proto-dev
    

    You should then see the XLibre repository with priority 900, and Debian with 500.

    This does NOT force anything dangerous, but ensures that XLibre packages remain preferred and are not accidentally replaced by Xorg in future updates.

    Given that XLibre is still somewhat experimental and not fully integrated into the standard Debian workflow, this small step helps make the setup more robust.

    Hope this helps others