Skip to content

Instantly share code, notes, and snippets.

@jastix
Created June 10, 2019 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jastix/ac76dc03324f21a0703050374e67e368 to your computer and use it in GitHub Desktop.
Save jastix/ac76dc03324f21a0703050374e67e368 to your computer and use it in GitHub Desktop.
install packages from source code in Arch/Manjaro
The general process for installing software that isn’t in the AUR is as follows:
1. download the tarball file containing the PKGBUILD file
2. expand/extract the tarball file
3. run makepkg in the folder containing the PKGBUILD script
4. install the .xz file that is produced
Step 2: To expand the tarball, do the follwing in a terminal. You need to cd to the directory where the tarball is located first:
tar zxvf mypackage.tar.gz
step 3 + step 4: To run makepkg you need to cd to the directory where the PKGBUILD script is located first and then run the following command:
makepkg -csir
The above command builds the package using makepkg and then installs the resulting .xz file
To uninstall software that was installed from source code using tarballs, enter the source directory of your package and then type:
make uninstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment