Installation Script for Linux - DavidDragonsage/FooocusPlus GitHub Wiki

2025-07-01_21-44-43_4437

To install FooocusPlus on Linux

  1. Save the script below (installer.sh) to the empty folder where you wish to install FooocusPlus
  2. Make it executable as follows: chmod +x installer.sh
  3. Run installer.sh to install FooocusPlus to that location
  4. Wait while FooocusPlus is installed and the Support Pack files are downloaded

NOTE: The script has been tested on Ubuntu 22.04 LTS. To use the script on newer Ubuntu versions, please install the python3.10-venv package from the Deadsnakes PPA.

#!/bin/bash
branch="main"
venv="python_embedded"
code="core"
data="UserDir"
entry="run_fooocus_plus.sh"

clear
echo "======================================================"
echo
echo "            FooocusPlus Installer for Linux"
echo "            Installer Version: 1.1"
echo
echo "======================================================"
echo
git clone https://github.com/DavidDragonsage/FooocusPlus.git -b $branch $code
python3.10 -m venv $venv
source $venv/bin/activate
pip install -U pip 'setuptools<70' wheel packaging
pip install pygit2 torchruntime requests cmake
pip install -r $code/requirements_patch.txt
if [[ ! -e $data ]]; then
    pip install py7zr huggingface-hub
    mkdir -p $data
    huggingface-cli download --local-dir $core DavidDragonsage/FooocusPlus SupportPack.7z
    py7zr x --verbose $data/SupportPack.7z $core
fi
deactivate
cat <<EOF > $entry
#!/bin/bash
source $venv/bin/activate
cd $code
python entry_with_update.py
EOF
chmod +x $entry
echo
echo "Running FooocusPlus for the first time..."
./$entry
⚠️ **GitHub.com Fallback** ⚠️