[
    {
        "role": "user",
        "content": "has%20package%20emacs-nox%20for%20emacs%2030%20been%20backported%20to%20debian%2012%3F%20if%20so%20give%20commands%20to%20uninstall%20existing%20emacs-nox%20and%20then%20install%20emacs-nox%20with%20emacs%2030."
    },
    {
        "role": "assistant",
        "content": "Yes \u2014 the `emacs-nox` package for **Emacs 30** *has* been backported to Debian 12 (\u201cBookworm\u201d) in the bookworm-backports repository. It is version **1:30.1+1-6~bpo12+1**. ([packages.debian.org](https://packages.debian.org/bookworm-backports/emacs?utm_source=openai))\n\nHere are the commands to remove any current `emacs-nox`, and then install `emacs-nox` version 30 from the backports.\n\n---\n\n### 1. Enable Backports\n\nMake sure your system has the `bookworm-backports` repository enabled.  \nYou should have a line like this in `/etc/apt/sources.list` or in a file under `/etc/apt/sources.list.d/`:\n\n```\ndeb http://deb.debian.org/debian bookworm-backports main\n```\n\nThen update:\n\n```bash\nsudo apt update\n```\n\n---\n\n### 2. Uninstall Existing Emacs / emacs-nox (if installed)\n\nTo remove the existing `emacs-nox` package and related Emacs versions (GUI or otherwise), use:\n\n```bash\nsudo apt remove --purge emacs-nox\nsudo apt remove --purge emacs emacs-common emacs-lucid emacs-gtk emacs-pgtk\nsudo apt autoremove --purge\n```\n\nThis ensures you\u2019re starting clean. Be cautious: if you have configurations or custom files, back them up before purging.\n\n---\n\n### 3. Install Emacs-nox 30 from Bookworm-backports\n\nUse the `-t` (target-release) option to grab from backports:\n\n```bash\nsudo apt install -t bookworm-backports emacs-nox=1:30.1+1-6~bpo12+1\n```\n\nIf you want the `emacs` metapackage (so that you can later easily switch GUI/no\u2010GUI variants), you can install that instead:\n\n```bash\nsudo apt install -t bookworm-backports emacs=1:30.1+1-6~bpo12+1\n```\n\nNote that `emacs` depends on one of its variants \u2014 `emacs-nox` is one of them. ([packages.debian.org](https://packages.debian.org/bookworm-backports/emacs?utm_source=openai))\n\n---\n\n### 4. Verify the Installed Version\n\nAfter installation, you can check:\n\n```bash\nemacs --version\n```\n\nThis should show something like **GNU Emacs 30.1**. Also:\n\n```bash\napt policy emacs-nox\n```\n\nShould show the installed version and confirm it comes from `bookworm-backports`.\n\n---\n\nIf you run into dependency or script errors (especially around `elpa-` packages, `dh-elpa`, etc.), note that there have been reports of some incompatibilities when upgrading to Emacs 30 from older backports. Those typically can be resolved by ensuring you have updated `dh-elpa-helper` to a later version and reinstalling problematic packages. ([bugs.debian.org](https://bugs.debian.org/1099325?utm_source=openai))\n\nIf you want, I can walk you through troubleshooting those, or doing a complete backup/rollback plan."
    }
]