Skip to content

Instantly share code, notes, and snippets.

@razametal
Created December 27, 2025 05:12
Show Gist options
  • Select an option

  • Save razametal/90c845840d5f64812069bc59e2e6dafd to your computer and use it in GitHub Desktop.

Select an option

Save razametal/90c845840d5f64812069bc59e2e6dafd to your computer and use it in GitHub Desktop.
Upgrade Python3 and yt-dlp on XUI 1.5.12
Install Python3.10:
~~~
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
curl \
wget \
libssl-dev \
zlib1g-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline-dev \
libffi-dev \
libsqlite3-dev \
libbz2-dev \
liblzma-dev \
tk-dev \
uuid-dev
cd /usr/src
curl -O https://www.python.org/ftp/python/3.10.15/Python-3.10.15.tgz
tar -xf Python-3.10.15.tgz
cd Python-3.10.15
./configure --enable-optimizations --enable-shared --with-ensurepip=install
make -j"$(nproc)"
make altinstall
ldconfig
update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10 1
update-alternatives --set python3 /usr/local/bin/python3.10
~~~
Upgrade yt-dlp:
~~~
cd /home/xui/bin
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O youtube
chmod a+x /home/xui/bin/youtube
~~~
Automatic upgrade:
~~~
cat <<EOF > /etc/cron.d/yt-dlp
0 1 * * * root cd /home/xui/bin && wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O youtube && chmod a+x /home/xui/bin/youtube
EOF
~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment