Skip to content
Back to skills

Arch Knowledge Patch

ASecurity

Arch Linux

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added May 27, 2026
developmentpythonrustphptestinggitapidatabasebackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill arch-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Arch Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Arch Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-arch-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-arch-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: arch-knowledge-patch
description: Arch Linux
version: null
license: MIT
metadata:
  author: Nevaberry
---


# Arch Linux Compatibility Guidance

Load this skill for Arch Linux upgrades, package building, service migrations,
security interventions, and recovery during Arch service outages.
Use the topic references for complete conditions and migration details.

## Reference index

| Reference | Topics |
| --- | --- |
| [Operations and Security](references/operations-and-security.md) | SSH, rsync, CA certificates, PHP, firewall rules, TPM2, outages, AUR review |
| [Package Management](references/package-management.md) | Pacman configuration, download sandbox, local repositories, makepkg, package metadata, licensing |
| [Runtime and Desktop Transitions](references/runtime-and-desktop-transitions.md) | Plasma, NVIDIA, firmware, Wine, Discord, .NET, Waydroid, VirtualBox |
| [Service Migrations](references/service-migrations.md) | Dovecot, Redis to Valkey, Zabbix, Kea, Varnish to Vinyl Cache |

## Breaking changes and upgrade interventions

### Restore SSH connections after the OpenSSH upgrade

After upgrading to `openssh-9.8p1`, the existing daemon cannot accept new
connections. On remote hosts, restart the service immediately after upgrading:

```sh
systemctl try-restart sshd
```

### Remove retired repositories

Remove `[community]`, `[community-testing]`, `[testing]`, `[testing-debug]`,
`[staging]`, and `[staging-debug]` from `/etc/pacman.conf` to avoid database
sync errors. Use the `.pacnew` shipped with `pacman>=6.0.2-7` as a reference.

### Migrate Dovecot configuration before starting it

Dovecot 2.4 cannot start with configuration from 2.3 or earlier. Follow the
upstream guide *Upgrading Dovecot CE from 2.3 to 2.4* before starting it.
For replication, which 2.4 removes, or to defer migration, use `dovecot23`
from `[extra]` with the matching packages needed: `pigeonhole23`,
`dovecot23-fts-elastic`, and `dovecot23-fts-xapian`.
Arch announced upstream critical security fixes for 2.3 until further notice.

### Handle NVIDIA driver and firmware transitions

Driver 590 drops Pascal (GTX 10xx) and older GPUs, potentially leaving the
graphical environment unusable. On affected systems, uninstall the installed
`nvidia`, `nvidia-dkms`, or `nvidia-lts` and install `nvidia-580xx-dkms` from the AUR.
Turing, including GTX 1650, and newer GPUs switch to open kernel modules
automatically on upgrade. See the runtime reference for package replacements.

With `linux-firmware` starting at `20250613.12fe085f-5`, upgrades from
`20250508.788aadc8-2` or earlier can hit NVIDIA symlink conflicts under
`/usr/lib/firmware/nvidia/`. Remove and reinstall the package as root:

```sh
pacman -Rdd linux-firmware
pacman -Syu linux-firmware
```

### Keep the intended desktop and Wine setup

Plasma 6.4 installs only the Wayland session by default. When upgrading an
X11 setup, install `plasma-x11-session` to keep its login session.
Pure WoW64 `wine` and `wine-staging` builds no longer require `[multilib]`.
Recreate existing 32-bit prefixes and reinstall their applications after upgrading.

### Retain required .NET packages

The 9.0 to 10.0 upgrade can fail with unsatisfied dependencies. If a 9.0
package is still needed, install its `-9.0` variant during the full upgrade,
then remove the unversioned package. For `aspnet-runtime`:

```sh
pacman -Syu aspnet-runtime-9.0
pacman -Rs aspnet-runtime
```

### Resolve unowned-file conflicts

Waydroid `1.5.4-3` ships Python bytecode that installs older than `1.5.4-2`,
including `aur/waydroid`, could leave unowned. If those files cause
`exists in filesystem` errors, retry with:

```sh
pacman -Syu --overwrite /usr/lib/waydroid/tools/\*__pycache__/\*
```

Before upgrading `virtualbox-ext-vnc` to `7.2.12-2` or later, run
`VBoxManage extpack uninstall 'VNC'` as root, or remove the package and
reinstall it after upgrading. The runtime reference also gives the supported
one-time overwrite for VNC extension pack files during a full upgrade.

### Preserve firewall rules and TPM2 unlocking

`iptables` replaces `iptables-nft` and uses the nft backend by default.
When switching among `iptables-nft`, `iptables`, and `iptables-legacy`, check
`/etc/iptables/iptables.rules.pacsave` and `/etc/iptables/ip6tables.rules.pacsave`
and restore saved rules as needed. Test uncommon xtables extensions or
legacy-only behavior; use `iptables-legacy` if required.

Starting with `mkinitcpio` `42-1`, the `systemd` hook includes
`systemd-pcrosseparator.service`, changing measurements for PCRs 0–7, 9, and
12–14. Re-enroll TPM2 for a LUKS volume if its unlocking uses that hook and
depends on any of those PCRs. The operations reference links the relevant guides.

### Migrate service packages and accounts

- Valkey replaces Redis in `[extra]`. The April 17 announcement deprecated
  and froze `redis` updates, allowing roughly 14 days to migrate before its AUR move.
- Starting with Zabbix `7.4.1-2`, main configuration files and systemd units
  migrate automatically to `zabbix`. Reassign custom files owned by obsolete
  Zabbix accounts to `zabbix` and update custom configuration references
  before removing those accounts.
- Starting with Kea `1:3.0.3-6`, all Kea services run as `kea`. On existing installs,
  update runtime file ownership and restart running services after upgrading;
  see the service reference for the root commands and group access guidance.
- `vinyl-cache` replaces `varnish`. Before starting new services, migrate
  configuration and state paths, fix state-file ownership, update binary and
  account references, and switch systemd units as detailed in the service reference.

## Immediate security updates

- Upgrade `rsync` to `3.4.0-1` or newer and reboot immediately on every Arch
  system running an rsync daemon or client, including mirrors serving signed
  packages. Anonymous read access to a vulnerable daemon can allow remote code
  execution; a compromised server can read or overwrite arbitrary files on
  connected vulnerable clients.
- Upgrade all Arch systems immediately to `ca-certificates-mozilla`
  `3.131.1-1` or later. This removes or invalidates compromised eMudhra
  intermediate CA certificates that could enable man-in-the-middle attacks.
- On systems publicly exposing a PHP application, immediately upgrade `php`
  to `8.5.12` or later, `php-legacy` to `8.3.36` or later, or both as applicable.
  Earlier versions in these branches are vulnerable to remote code execution through
  `CVE-2026-109618` and `CVE-2026-109619`.

## Pacman and makepkg quick reference

### Account for signature defaults and download permissions

Pacman 7.1.0 defaults to `SigLevel = Required` for both repository databases
and packages; leaving it unset requires valid signatures for both.
Pacman can drop download privileges through `DownloadUser`, placing downloads
in a temporary directory owned by that account. Merge the configuration
`.pacnew` to apply Arch's new default. For local repositories, set the tree's
group to `alpm` and ensure the download user can read files and traverse every
directory in the path (`+x`):

```sh
chown -R :alpm /path/to/local/repo
```

### Control the sandbox and inspect failures

On Linux, pacman confines downloader writes to the download directory.
`DisableSandbox` in `[options]` in `pacman.conf`, or `--disable-sandbox`,
disables this write restriction. Pacman 7.1.0 also restricts system calls
and exposes finer-grained sandbox controls in configuration and on the command line.
Use `--debug` to see dependency-cycle messages. `pacman -Sg group-name`
now prints an error for an unknown group.

### Keep build settings in their supported locations

- Makepkg removes `GITFLAGS` support. Review workflows relying on it for Git fetch flags.
- Set `BUILDENV` and global `OPTIONS` in `makepkg.conf`; PKGBUILDs cannot override them.
- `options=(!buildenv)` leaves `MAKEFLAGS` and `CHOST` active. Review builds
  that relied on suppressing either setting.
- Put Git settings needed by makepkg in `/etc/makepkg.d/gitconfig`, the only
  Git configuration file it now uses.
- If a PKGBUILD's Git source checksum changes, regenerate and verify it once.
  Makepkg stabilizes checksums for repositories using `.gitattributes` and
  removes dependence on the user's Git configuration.
- For builds relying on makepkg's `PYTHON_HASHSEED` handling, use the
  corresponding drop-in from `libmakepkg-dropins`.

### Use package-building and repository features

Set `NPROC` in `makepkg.conf` for makepkg's own parallel operations, such as
stripping package files. Use `xdata` for generic PKGBUILD metadata and
`options_$arch` for architecture-specific packaging options, such as
`options_x86_64=(!strip)`. Split PKGBUILDs can build different subpackages
for different architectures; keep each value in the `arch` array unique.

Create an empty repository with `repo-add local.db.tar.gz`. Pass
`--wait-for-lock` to `repo-add` to wait for the database lock before updating it.
Pacman downloads each repository database and its signature from the same
location, also fixing signature downloads with `XferCommand`.

## Recovery during service outages

| Unavailable service | Available fallback |
| --- | --- |
| Reflector's mirror list endpoint | Mirrors listed in `pacman-mirrorlist` |
| Main site for ISO downloads | Arch mirror carrying the ISO, such as a geomirror; verify integrity and a trusted Arch installation-image signature |
| `aur.archlinux.org` | Clone the package's branch from Arch's GitHub mirror; command in the operations reference |
| `wiki.archlinux.org` | Recent snapshots in `arch-wiki-docs` or `arch-wiki-lite` |

During the June 2026 malicious AUR adoption and update incident, Arch advised
reviewing all PKGBUILD and install-script changes before updating. Report
suspicious package commits to Arch staff through `aur-general`.

Files in this skill

  • SKILL.md6.2 KB
  • references/desktop-graphics.md1.8 KB
  • references/pacman-7.md717 B
  • references/server-packages.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.