## Updating UnrealIRCd

UnrealIRCd updates itself. As the IRCd user:

```
cd ~/unrealircd
./unrealircd upgrade
```

It downloads the latest stable release, checks its signature, builds it with your previous settings and installs it. Then restart:

```
./unrealircd configtest
./unrealircd restart
```

Your config, TLS certificate and spkifp stay the same, so your link blocks keep working. See [Upgrading](https://www.unrealircd.org/docs/Upgrading) in the UnrealIRCd docs.

## Moving from PissIRCd

PissIRCd is retired. Replace it with plain UnrealIRCd in the same directory:

1. Back up your install: `cp -R ~/unrealircd ~/unrealircd.backup`
2. Download and build UnrealIRCd as in [So you want to link to pissnet](/docs/linking#step-1-build-unrealircd). When `./Config` asks for the install directory, keep `~/unrealircd`.
3. PissIRCd set the network's cloak settings for you, plain UnrealIRCd doesn't. Add the cloak module, network name and cloak keys from [Network settings](/docs/configuration#network-settings) to `unrealircd.conf`.
4. Run `./unrealircd configtest`, fix what it reports, then `./unrealircd restart`.

If it doesn't come back up, restore the backup: `rm -rf ~/unrealircd && mv ~/unrealircd.backup ~/unrealircd && ~/unrealircd/unrealircd start`.

## Still on UnrealIRCd 5

5.x is end of life. Follow [Upgrading from 5.x](https://www.unrealircd.org/docs/Upgrading_from_5.x): the config format changed, so `./unrealircd upgrade` alone is not enough.

## After an OS upgrade

A distribution upgrade replaces libraries UnrealIRCd was built against. Rebuild before restarting: run `./Config`, `make` and `make install` again in the source directory.
