2015-06-10 11:56:09 +02:00
---
layout: post
comments: true
title: "Installing ZNC on Ubuntu from PPA"
category: [english]
tags: [irc, english]
2018-11-25 23:51:24 +01:00
redirect_from: /english/2015/05/10/znc-ubuntu.html
2024-06-03 08:48:19 +02:00
sitemap: false
2015-06-10 11:56:09 +02:00
---
2024-06-19 07:19:44 +02:00
_Many people seem to be installing ZNC using some weird instructions and don't
ever upgrade after that. This is yet another unofficial install guide, but with
this you should be able to upgrade too._
2015-06-10 11:56:09 +02:00
**This is not the official install guide, if you are looking for that,
2024-06-19 07:19:44 +02:00
[click here. ](https://wiki.znc.in/Installation )** _You will find these same
instructions there too though._
2015-06-10 11:56:09 +02:00
2024-06-19 07:19:44 +02:00
Step 0: If you had already installed ZNC from source, go to the source directory
and run `make uninstall` or `sudo make uninstall` if needed.
2015-06-10 11:56:09 +02:00
2024-06-19 07:19:44 +02:00
[Thomas Ward ](https://launchpad.net/~teward ) has PPA which usually includes the
latest version of ZNC for
[supported Ubuntu releases ](https://wiki.ubuntu.com/Releases ) and this guide
uses it.
2015-06-10 11:56:09 +02:00
2024-06-19 07:19:44 +02:00
1. Install required package for adding PPAs:
`sudo apt-get install python-software-properties`
2015-06-10 11:56:09 +02:00
2. Add the PPA `sudo add-apt-repository ppa:teward/znc`
3. Refresh list of packages in the repos `sudo apt-get update`
4. If you had installed ZNC from Ubuntu repositories, now you could run
`sudo apt-get upgrade` , otherwise finally install ZNC with
`sudo apt-get install znc` .
2024-06-19 07:19:44 +02:00
ZNC is now installed. If you had it running before installing from PPA, you
should restart it especially if it was different version than what the PPA has.
2015-06-10 11:56:09 +02:00
2024-06-19 07:19:44 +02:00
Now you can either (new ZNC user) run `znc --makeconf` to create config file and
then (existing ZNC user) run `znc` and your ZNC starts listening on where you
told it to listen.
2015-06-10 11:56:09 +02:00
You might also want to read:
2023-02-22 19:28:38 +01:00
- [FAQ ](https://wiki.znc.in/FAQ )
- [Automatic restart in case of X (crontab) ](https://wiki.znc.in/FAQ#How_can_I_restart_ZNC_automatically_.28in_case_of_a_machine_reboot.2C_crash.2C_etc..29.3F )