====== Debian external repositories ======
Debian GNU/Linux contains a lesser known external repository tool. It's called **extrepo** and it's available in the official [[https://packages.debian.org/stable/extrepo|stable repository]]. Extrepo doesn't contain as many packages as AUR (the external repo for Arch Linux), but it still might be useful to some people.
Just to name a few repos it contains:
* VS Codium repository (FLOSS binaries of VS Code)
* Ondřej Surý's package repo (newest PHP packages)
* Valve Corporation's Steam repo
* WineHQ repository
* VirtualBox official repository
* Brave browser release repository
* Prosody XMPP server
For a full list you can [[https://salsa.debian.org/extrepo-team/extrepo-data/-/tree/master/repos/debian?ref_type=heads|browse the config files]]
==== How to enable extrepo =====
As root run:\\
''apt install extrepo''\\
Then have a look at the man pages which explain how to use it, it's very simple.\\
''man extrepo''
For example if you would like to add the VS Codium repo and install Codium, you would just run (as root)\\
extrepo enable vscodium
apt update
apt install codium
Or if you would like to search for Brave browser in Extrepo and install it, you would do
extrepo search brave
You will get 3 results: brave_beta, brave_nightly and brave_release (stable).
extrepo enable brave_release
Now package //brave-browser// is part of our repositories, it can be found with
apt search brave --names-only
Result: //brave-browser//. So install it:
apt install brave-browser
===== Do you know Backports? =====
But don't forget that Debian's official [[https://backports.debian.org/|Backports repository]] should be the first one to look at if you want a newer version of a particular package, compared to the stable branch. Reason: security.
I am using this little shell function for backports installs because I can't remember the correct syntax :-D
function backportsinstall()
{
# The backports repository is deactivated by default.
# If we want to install a backported package, we need to use this.
# See https://wiki.debian.org/Backports
# Make sure $VERSION_CODENAME is available, just "source /etc/os-release" first
echo "Trying to install '$1' from backports repository..."
sudo apt -t $VERSION_CODENAME-backports install "$1"
}