How to use the latest software on your Debian Stable
Well.. before running anything, if you haven't, read [this](https://wiki.debian.org/DontBreakDebian) first. And then, decide how would you run your latest software. There are multiple ways, including: 1. Compile and install it locally on your home directory 2. Run it with Flatpak, Snap, or Docker 3. Compile and install it globally (I personally don't recommend this and only do this when absolutely necessary) 4. You can even avoid compiling by downloading the binary directly and putting it somewhere in your `$PATH`, preferably somewhere at `$HOME` 5. Same as (4), but via tools like asdf, mise, pipx, npx, cargo, the list goes on.. Anyway, I write this post because last week I have a problem where I need i3wm 4.23 but only 4.22 is provided in the stable `apt` repo (also looked up for backports but it's not there). The 4.23 is only available in `testing`. I don't want to bother upgrading my whole system to `testing`. So, I decided to just compile the i3 4.23 as it's not that complicated, then I add this extra script in my `.xsession`. ``` # ... if [ -d "$HOME/opt/i3/bin" ]; then export PATH="$HOME/opt/i3/bin:$PATH" exec ~/opt/i3/bin/i3 fi exec i3 ``` I guess I will remove that once 4.23 is backported to `bookworm`.Created: 2024-11-05 12:38:03, Updated: 2024-11-05 12:44:49, ID: 3cb533b8-6294-4fb6-820c-0e6c55ff8636