sudo apt update && sudo apt upgrade -y
sudo apt install build-essential cmake -y sudo apt install pkgconf libreadline8 libgpgme11 libarchive-tools fakeroot -y sudo apt install libusb-0.1-4 zlib1g-dev -y
sudo apt clean && sudo apt autoremove -y
echo export PSPDEV=/usr/local/pspdev >> ~/.bashrc echo export PATH=\$PSPDEV/bin:\$PATH >> ~/.bashrc exit
sudo mkdir -p /usr/local/pspdev sudo chown $USER:$(id -gn $USER) /usr/local/pspdev wget -O- https://github.com/pspdev/pspdev/releases/download/latest/pspdev-ubuntu-latest.tar.gz | tar -xvz -C $PSPDEV --strip-components=1
sudo mkdir -p /usr/local/pspdev sudo chown $USER:$(id -gn $USER) /usr/local/pspdev tar -xvf pspdev-ubuntu-latest.tar.gz -C $PSPDEV --strip-components=1
git clone https://github.com/Yoti/psp-packer cd psp-packer/psp-packer_vsh/src/ make sudo make install
wget -O- https://github.com/pspdev/pspdev/releases/download/latest/pspdev-ubuntu-latest.tar.gz | tar -xvz -C $PSPDEV --strip-components=1 psp-pacman -Syu
sudo rm -rf /usr/local/pspdev/