# Migrate Pi-Hole installation - install older version

**URL:** <https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397>\
**Category:** Help\
**Created:** [March 23, 2025, 7:15pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397 "2025-03-23T19:15:40Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [April 6, 2025, 5:39pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397/21 "2025-04-06T17:39:16Z")

</div>

`pihole -r` uses the `basic-install.sh` in `/etc/.pihole/`

---

<div class="post-metadata">

**Author:** ![MichaIng](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/michaing/32/13351_2.png) [@MichaIng](https://discourse.pi-hole.net/u/MichaIng)\
**Post date:** [April 6, 2025, 5:50pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397/22 "2025-04-06T17:50:18Z")

</div>

And for `pihole -r`, you need to do mostly the same adjustments to the `basic-install.sh` you did for the install, but adjust the `update_repo` function instead of `make_repo`. They are however identical in the relevant 2nd half. After the repair, the adjustments are however lost ... yeah it is not that optimal. If you really want to use Pi-hole v5 longer, easier would be probably to create a fork, change and use the `v5.18.4` tag to contain the needed changes to pull from that repo and tag in any case. So `pihole -r` does not revert changes, and you can redo the setup any time.

---

<div class="post-metadata">

**Author:** ![bcutter](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bcutter/32/5769_2.png) [@bcutter](https://discourse.pi-hole.net/u/bcutter)\
**Post date:** [April 6, 2025, 5:57pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397/23 "2025-04-06T17:57:20Z")

</div>

Yes figured that out meanwhile, just a few minutes ago.

Basically using the same `basic-install.sh` script at `/etc/.pihole` is fine as the content is completely identical.

Important thing is: during running `pihole -r`, the script gets pulled again and therefore is the default version again. Luckily (for no reason as my OS is supported) running `pihole -r` for a 2nd time got stuck at the OS check level (I have the skip os check option set to true in my custom `basic-install.sh`).

~~Unfortunately, even running `pihole -r` did not solve my remaining issue ([Conflict with other webservices running on Pi (Ports 80 and 443) - #73 by bcutter](https://discourse.pi-hole.net/t/conflict-with-other-webservices-running-on-pi-ports-80-and-443/2329/73))~~  
--\> edit: web interface IP binding issue solved now ✅

---

<div class="post-metadata">

**Author:** ![bcutter](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bcutter/32/5769_2.png) [@bcutter](https://discourse.pi-hole.net/u/bcutter)\
**Post date:** [April 6, 2025, 8:07pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397/24 "2025-04-06T20:07:24Z")

</div>

Everything should work now. Tested the whole migration while keeping a specific (latest v5) Pi-Hole version as well as the specific network interface setup. Even the LTS are there (in the 2nd attempt, forgot to stop pihole-FTL on the old host when copying the data(base)), database integrity confirmed with an `ok` result from `sudo service pihole-FTL stop; sqlite3 /etc/pihole/pihole-FTL.db "PRAGMA integrity_check; sudo service pihole-FTL start; pihole status` and all graphs etc. are there.

Final productive migration in a few days. So far: thank you very very much!

---

<div class="post-metadata">

**Author:** ![bcutter](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bcutter/32/5769_2.png) [@bcutter](https://discourse.pi-hole.net/u/bcutter)\
**Post date:** [April 23, 2025, 5:52pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397/25 "2025-04-23T17:52:33Z")

</div>

Productive migration done already a while ago. No further surprises. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [May 14, 2025, 5:53pm UTC](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397/26 "2025-05-14T17:53:19Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.pi-hole.net/t/migrate-pi-hole-installation-install-older-version/78397.md?page=1)
