Advertisement
mouhsineelachbi

How to Add AUR repos and install packages [ArchLinux]

Feb 22nd, 2016
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.94 KB | None | 0 0
  1. How to Add AUR repos and install packages from community repos!
  2. « on: 01. October 2012, 19:05:42 »
  3. If you need some packages via the community repos you need 'yaourt' . First you should have install base-devel:
  4. Code:
  5. sudo pacman -S base-devel
  6.  
  7. And you need to adjust the /etc/pacman.conf. Open it with your favorite editor:
  8. Code:
  9. sudo nano /etc/pacman.conf
  10.  
  11. Add this in:
  12. 32 Bit:
  13. Code:
  14. [archlinuxfr]
  15. Server = http://repo.archlinux.fr/i686
  16.  
  17. 64 Bit:
  18. Code:
  19. [archlinuxfr]
  20. Server = http://repo.archlinux.fr/x86_64
  21.  
  22. Example:
  23. Code:
  24. #
  25. # /etc/pacman.conf
  26. #
  27. # See the pacman.conf(5) manpage for option and repository directives
  28.  
  29. #
  30. # GENERAL OPTIONS
  31. #
  32. [options]
  33. # The following paths are commented out with their default values listed.
  34. # If you wish to use different paths, uncomment and update the paths.
  35. #RootDir     = /
  36. #DBPath      = /var/lib/pacman/
  37. #CacheDir    = /var/cache/pacman/pkg/
  38. #LogFile     = /var/log/pacman.log
  39. #GPGDir      = /etc/pacman.d/gnupg/
  40. HoldPkg     = pacman glibc manjaro-system
  41. # If upgrades are available for these packages they will be asked for first
  42. SyncFirst   = manjaro-system pacman
  43. #XferCommand = /usr/bin/curl -C - -f %u > %o
  44. #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
  45. #CleanMethod = KeepInstalled
  46. Architecture = auto
  47.  
  48. # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
  49. #IgnorePkg   =
  50. #IgnoreGroup =
  51.  
  52. #NoUpgrade   =
  53. #NoExtract   =
  54.  
  55. # Misc options
  56. #UseSyslog
  57. #UseDelta
  58. #TotalDownload
  59. CheckSpace
  60. #VerbosePkgLists
  61.  
  62. # By default, pacman accepts packages signed by keys that its local keyring
  63. # trusts (see pacman-key and its man page), as well as unsigned packages.
  64. #SigLevel = Optional TrustedOnly
  65.  
  66. # NOTE: You must run `pacman-key --init` before first using pacman; the local
  67. # keyring can then be populated with the keys of all official packages
  68. # Manjaro Linux supports with `pacman-key --populate archlinux manjaro`.
  69.  
  70. #
  71. # REPOSITORIES
  72. #   - can be defined here or included from another file
  73. #   - pacman will search repositories in the order defined here
  74. #   - local/custom mirrors can be added here or in separate files
  75. #   - repositories listed first will take precedence when packages
  76. #     have identical names, regardless of version number
  77. #   - URLs will have $repo replaced by the name of the current repo
  78. #   - URLs will have $arch replaced by the name of the architecture
  79. #
  80. # Repository entries are of the format:
  81. #       [repo-name]
  82. #       Server = ServerName
  83. #       Include = IncludePath
  84. #
  85. # The header [repo-name] is crucial - it must be present and
  86. # uncommented to enable the repo.
  87. #
  88.  
  89. [basis]
  90. SigLevel = PackageRequired
  91. Include = /etc/pacman.d/mirrorlist
  92.  
  93. [platform]
  94. SigLevel = PackageRequired
  95. Include = /etc/pacman.d/mirrorlist
  96.  
  97. [addon]
  98. SigLevel = PackageRequired
  99. Include = /etc/pacman.d/mirrorlist
  100.  
  101. [extra]
  102. SigLevel = PackageRequired
  103. Include = /etc/pacman.d/mirrorlist
  104.  
  105. [community]
  106. SigLevel = PackageRequired
  107. Include = /etc/pacman.d/mirrorlist
  108.  
  109. [archlinuxfr]
  110. Server = http://repo.archlinux.fr/x86_64
  111.  
  112. # If you want to run 32 bit applications on your x86_64 system,
  113. # enable the multilib repositories as required here.
  114.  
  115. [basis-multilib]
  116. SigLevel = PackageRequired
  117. Include = /etc/pacman.d/mirrorlist
  118.  
  119. [multilib]
  120. SigLevel = PackageRequired
  121. Include = /etc/pacman.d/mirrorlist
  122.  
  123. # An example of a custom package repository.  See the pacman manpage for
  124. # tips on creating your own repositories.
  125. #[custom]
  126. #SigLevel = Optional TrustAll
  127. #Server = file:///home/custompkgs
  128.  
  129. Update your package list:
  130. Code:
  131. sudo pacman -Syy
  132. Code:
  133. sudo pacman -Syu
  134.  
  135. Install 'yaourt' :
  136. Code:
  137. sudo pacman -S yaourt
  138.  
  139. Install package from AUR:
  140.  
  141. Code:
  142. yaourt -S package_name
  143.  
  144. You can use 'packer' too for install from official repos and AUR.
  145.  
  146. Code:
  147. packer -S package_name
  148.  
  149. Tip: With 'yaourt' and 'packer' you can not remove package you have installed. To remove package you should use :
  150. Code: [Select]
  151. pacman -R package_name
  152.  
  153. Enjoy!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement