Script to install and update Invidious
1) Install Invidious          6) Start, Stop or Restart
2) Update Invidious           7) Uninstall Invidious
3) Deploy with Docker         8) Set up PostgreSQL Backup
4) Add Swap Space             9) Install Nginx
5) Run Database Maintenance  10) Install Invidious Companion
                             11) Exit"Usage:  invidious_update.sh [options]
  If called without arguments, installs Invidious.
  --help                   |-h      Display this help and exit
  --install-invidious      |-i      Install Invidious
  --cron-update            |-c      Update Invidious with cron
  --database-maintenance   |-m      Database Maintenance
  --install-log            |-l      Activate logging
  --install-inv-companion  |-iic    Install Invidious CompanionTo install Invidious: Note: you will be prompted to enter root password
If root password is not set, type:
sudo passwd rootLog in as root
su root- Latest release
curl -sSL https://github.com/tmiland/Invidious-Updater/releases/latest/download/invidious_update.sh > invidious_update.sh && \ chmod +x invidious_update.sh && \ ./invidious_update.sh -i
 - Master
curl -sSL https://tmiland.github.io/invidious-updater/invidious_update.sh > invidious_update.sh && \ chmod +x invidious_update.sh && \ ./invidious_update.sh -i
 
Invidious-Installer is sourced in the install option.
To install this script: See Install.md
| Debian | Ubuntu | 
|---|---|
![]()  | 
![]()  | 
| CentOS | Fedora | 
|---|---|
![]()  | 
![]()  | 
| Arch | PureOS | 
|---|---|
![]()  | 
![]()  | 
| Linux Mint | 
|---|
![]()  | 
It is recommended to use this script on a fresh installation to avoid unwanted complications.
- I recommend a Debian 12 Droplet on DigitalOcean
 
Tested and working on:
| Debian | Ubuntu | CentOS | Fedora | Arch | PureOS | 
|---|---|---|---|---|---|
- 
Tested extensively on Debian 9/10/11/12
- Docker option tested and working
 
 - 
Tested on Ubuntu 16.04/18.10/24
- Docker option tested, not working
 
 - 
Tested on CentOS 8
- Docker option tested and working
 
 - 
Tested on Fedora 40
- Docker option tested and working
 
 - 
On Bash on Debian on Windows (in Gnome-Boxes)
- Systemd not working
 - Docker option not working
 
 - 
Tested on Linux Mint 22
- Docker option tested and working
 - See #15
 
 - 
Tested on Arch Linux
- Docker option tested and working
 
If you get permission issues, set selinux to permissive. See how to here: How do I enable or disable SELinux ?Postgresql 11 will be installed by default in both Fedora and CentOS. (If not already installed)Postgresql will be default from repo on Fedora and CentOS 
See Changelog
- Debian 8 and later
 - Ubuntu 16.04 and later
 - Linux Mint 22
 - PureOS (Not tested)
 - CentOS 8
 - Fedora 40
- Docker support
 
 - Arch Linux
 
- Code is mixed and customized from these sources:
 
- Bug report
 - Feature request
 - IRC Freenode: #InvidiousUpdater
 
*** Use at own risk ***








