Install PearAI on Linux: Simple Guide for All Distros
Download PearAI on Linux
-
Check your CPU compatibility:
If you're unsure whether your CPU supports AVX or AVX2 FMA, run the following command in your terminal:
lscpu | grep -o -w 'avx\|avx2\|fma'
If your result is:
avx avx2 fma
feel free to download the AVX2 version. If you only see
avx
, download the AVX version. -
Download the appropriate PearAI installation file:
- AVX version: Download PearAI (AVX)
- AVX2 version: Download PearAI (AVX2)
-
Extract the contents by running the following command:
tar -xvf PearAI-{AVX_VERSION}.tar.gz
-
Navigate to the extracted folder:
cd PearAI/
-
Run the installation script with superuser permissions:
bash pearai_manager.sh
-
Select your desired option:
1. Install PearAI 2. Uninstall PearAI 3. Exit
-
Add the following alias to your
~/.bashrc
or~/.zshrc
to run PearAI from any directory:
After adding the alias, runalias pearai='PearAI'
source ~/.bashrc
orsource ~/.zshrc
to apply the changes.
Notes
Once the installation is complete, PearAI will be ready to use! If you have any questions or run into issues, feel free to join our community and get support through our official Discord server.
This installation method has been tested on multiple Linux distributions, including Arch Linux, Ubuntu 24, Ubuntu 22, Fedora 40 and NixOS. It was compiled using GCC 10, so most distributions with this or newer version should be able to run PearAI without any issues.
We're thrilled to bring PearAI to the Linux community, stay tuned for more exciting updates and features on the horizon!