|
| 1 | +--- |
| 2 | +title: Installation on Arch Linux |
| 3 | +layout: home |
| 4 | +nav_exclude: true |
| 5 | +--- |
| 6 | + |
| 7 | +# Installation on Arch Linux |
| 8 | + |
| 9 | +{: .fs-8 .fw-700 .text-center } |
| 10 | + |
| 11 | +Arch Linux users can install the PSP SDK using packages available in the Arch |
| 12 | +User Repository (AUR). There are two primary options: a pre-compiled binary |
| 13 | +package (recommended for faster installation) and a source package (which builds |
| 14 | +the SDK locally). |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +{: .fs-6 .fw-700 } |
| 19 | + |
| 20 | +### AUR Helper (Optional but Recommended) |
| 21 | + |
| 22 | +An AUR helper (like `yay`, `paru`, etc.) simplifies installing and updating AUR |
| 23 | +packages. If you don't have one, you can find instructions on the |
| 24 | +[Arch Wiki's AUR helpers page](https://wiki.archlinux.org/title/AUR_helpers). |
| 25 | +Using an AUR helper is assumed for the simplified commands below, but manual |
| 26 | +installation steps are also provided. |
| 27 | + |
| 28 | +## Installation via AUR (Recommended - Binary) |
| 29 | + |
| 30 | +{: .fs-6 .fw-700 } |
| 31 | + |
| 32 | +The [`psp-sdk-bin`](https://aur.archlinux.org/packages/psp-sdk-bin) package, |
| 33 | +provides pre-compiled binaries for the PSP SDK, making installation much faster. |
| 34 | + |
| 35 | +**Using an AUR helper (e.g., `yay`):** |
| 36 | + |
| 37 | +```shell |
| 38 | +yay -S psp-sdk-bin |
| 39 | +``` |
| 40 | + |
| 41 | +**Manual Installation:** |
| 42 | + |
| 43 | +```shell |
| 44 | +# Clone the build files |
| 45 | +git clone https://aur.archlinux.org/psp-sdk-bin.git |
| 46 | +cd psp-sdk-bin |
| 47 | + |
| 48 | +# Build and install the package |
| 49 | +makepkg -si |
| 50 | + |
| 51 | +# Clean up (optional) |
| 52 | +cd .. |
| 53 | +rm -rf psp-sdk-bin |
| 54 | +``` |
| 55 | + |
| 56 | +## Installation via AUR (Alternative - Source) |
| 57 | + |
| 58 | +{: .fs-6 .fw-700 } |
| 59 | + |
| 60 | +The [`psp-sdk`](https://aur.archlinux.org/packages/psp-sdk) package builds the |
| 61 | +entire SDK from source. This takes significantly longer but ensures you are |
| 62 | +building against your system's exact libraries. |
| 63 | + |
| 64 | +**Warning:** Building the full SDK can take a considerable amount of time and |
| 65 | +CPU resources. |
| 66 | + |
| 67 | +**Using an AUR helper (e.g., `yay`):** |
| 68 | + |
| 69 | +```shell |
| 70 | +yay -S psp-sdk |
| 71 | +``` |
| 72 | + |
| 73 | +**Manual Installation:** |
| 74 | + |
| 75 | +```shell |
| 76 | +# Clone the build files |
| 77 | +git clone https://aur.archlinux.org/psp-sdk.git |
| 78 | +cd psp-sdk |
| 79 | + |
| 80 | +# Build and install the package (this will take a while!) |
| 81 | +makepkg -si |
| 82 | + |
| 83 | +# Clean up (optional) |
| 84 | +cd .. |
| 85 | +rm -rf psp-sdk |
| 86 | +``` |
| 87 | + |
| 88 | +## Verification |
| 89 | + |
| 90 | +{: .fs-6 .fw-700 } |
| 91 | + |
| 92 | +From a new terminal, run the following command to confirm the SDK is found and |
| 93 | +the environment variable is set: |
| 94 | + |
| 95 | +```shell |
| 96 | +psp-config --pspdev-path |
| 97 | +``` |
| 98 | + |
| 99 | +This command should output the path you set for `PSPDEV` (e.g., `/opt/pspdev`). |
| 100 | +If the command itself is not found, ensure `/opt/pspdev/bin` (or the equivalent |
| 101 | +`bin` directory for your installation) is in your `PATH`. The profile script |
| 102 | +installed by the AUR package should handle this automatically after logging out |
| 103 | +and back in or rebooting. |
| 104 | + |
| 105 | +That's it, now the PSP SDK can be used to build PSP software. Check out the |
| 106 | +[How to Use](../how_to_use.html) page for a guide on how to do so. |
0 commit comments