# How to update Pi-hole

> Learn how to update Pi-hole on your Raspberry Pi by running the pihole -up command over SSH, and how to automate it on a schedule with a cron job.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2021-01-11 | Topics: [Networking](https://flaviocopes.com/tags/network/) | Canonical: https://flaviocopes.com/how-to-update-pihole/

I installed my [Raspberry Pi](https://flaviocopes.com/arduino-vs-raspberry-pi/) as a network-wide adblocker with [Pi-hole](http://pi-hole.net).

It works great.

Sometimes it's necessary to update the Pi-hole software because new releases are available, and so on.

You will see this notice at the bottom of the Pi-hole admin interface:

![Pi-hole admin interface showing update available notifications for Pi-hole, Web interface, and FTL components](https://flaviocopes.com/images/how-to-update-pihole/Screen_Shot_2020-12-24_at_10.13.36.png)

You can update it manually by logging in the Raspberry Pi, using VNC or SSH, and then run the

```sh
pihole -up
```

command.

![Terminal showing pihole -up command running with update progress for Pi-hole Core, Web Interface, and FTL components](https://flaviocopes.com/images/how-to-update-pihole/Screen_Shot_2020-12-24_at_10.13.22.png)

![Terminal showing Pi-hole update completion with current version information and DNS service status](https://flaviocopes.com/images/how-to-update-pihole/Screen_Shot_2020-12-24_at_10.18.50.png)

And the version will be updated:

![Pi-hole admin interface footer showing updated version numbers for Pi-hole, Web interface, and FTL after update](https://flaviocopes.com/images/how-to-update-pihole/Screen_Shot_2020-12-24_at_10.19.00.png)

You can set up a script to run `pihole -up` from time to time automatically, using a cron job.

Run `crontab -e` and then at the bottom add

```
0 6 * * * pihole -up
```

to run it every day at 6am.
