Difference between revisions of "Arch User Repository"

imported>Richard
imported>Richard
Line 63: Line 63:
= Installing from the AUR by hand =
= Installing from the AUR by hand =


Packages from the AUR can also be installed ''by hand'' (manually). To do that follow the steps given below-
==Packages from the AUR can also be installed ''by hand'' (manually)==
 
To do that follow the steps given below:
 
Download the tarball from the AUR preferably to ''~/Downloads''


* Download the tarball from the AUR preferably to ''~/Downloads''
(just click on the tarball from your browser and you should get it)
(just click on the tarball from your browser and you should get it)
   
   
Make a sub-directory in downloads called builds-
 
* Make a sub-directory in downloads called builds-
  mkdir ~/Downloads/builds
  mkdir ~/Downloads/builds
Move the tarball to builds (foo is the name of the package you've downloaded).
 
-- Move the tarball to builds (foo is the name of the package you've downloaded).
  mv foo.tar.gz builds
  mv foo.tar.gz builds
Change directory to the builds folder-
 
-- Change directory to the builds folder-
  cd builds
  cd builds
Untar the tarball  
 
-- Untar the tarball  
  tar -xvf foo.tar.gz
  tar -xvf foo.tar.gz
Move into the new sub-directory
 
-- Move into the new sub-directory
  cd <foo>
  cd <foo>


To make/complie the package, run-
 
* To make/compile the package, run-
  makepkg -s
  makepkg -s
This will build the package and pull in any dependencies needed.
This will build the package and pull in any dependencies needed.
''Note that it wont pull a dependency from the AUR, only from the Manjaro Repos.''
''Note that it won't pull a dependency from the AUR, only from the Manjaro Repos.''


If you run   
If you run   
ls
  ls
you'll probably find a few new files.
 
you'll probably find a few new files. You're interested in the one that ends with .pkg.tar.xz (usually)
You're interested in the one that ends with .pkg.tar.xz (usually)


The final event is running $sudo pacman -U on that file-


* The final event is running $sudo pacman -U on that file-
  sudo pacman -U foo.pkg.xz
  sudo pacman -U foo.pkg.xz
And you've done it...the safest way to install from the AUR.
And you've done it...the safest way to install from the AUR.


This is essentially what most install scripts do for you.
This is essentially what most install scripts do for you.


''Note''-To install the package, instead of using ''sudo pacman -U foo.pkg.xz'' can also use -
''Note''-To install the package, instead of using ''sudo pacman -U foo.pkg.xz'' can also use:
makepkg -i


makepkg -i


You can ask for support for installing by hand at the following link-[http://forum.manjaro.org/index.php?topic=7076.msg61520#msg61520]
You can ask for support for installing by hand at the following link-[http://forum.manjaro.org/index.php?topic=7076.msg61520#msg61520]
Anonymous user