yay.8 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. /n'\" t
  2. .TH "YAY" "8" "2018-02-29" "Yay v3\&.460+" "Yay Manual"
  3. .nh
  4. .ad l
  5. .SH "NAME"
  6. yay \- AUR Helper written in go
  7. .SH "SYNOPSIS"
  8. .sp
  9. \fIyay\fR <operation> [options] [targets]
  10. .sp
  11. \fIyay\fR <search pattern>
  12. .SH "DESCRIPTION"
  13. .sp
  14. Yay is a Pacman wrapper with AUR support\&. It passes options to Makepkg and
  15. Pacman after resolving packages to install/upgrade\&.
  16. .sp
  17. This manpage only covers options unique to Yay\&. For other options see
  18. \fBpacman(8)\fR\&.
  19. .SH "YAY OPERATIONS"
  20. .PP
  21. \fB\-Y, --yay\fR
  22. .RS 4
  23. Perform yay specific operations\&. This is the default if no other operation is
  24. selected\&.
  25. .RE
  26. .PP
  27. \fB\-P, --print\fR
  28. .RS 4
  29. Perform yay specific print operations\&.
  30. .RE
  31. .PP
  32. \fB\-G, --getpkgbuild\fR
  33. .RS 4
  34. Downloads PKGBUILD from ABS or AUR\&.
  35. .RE
  36. .PP
  37. If no operation is selected -Y will be assumed\&.
  38. .SH "EXTENDED PACMAN OPERATIONS"
  39. .PP
  40. \fB\-S, -Si, -Ss, -Su\fR
  41. .RS 4
  42. These operations are extended to support both AUR and repo packages\&.
  43. .RE
  44. .PP
  45. \fB\-R\fR
  46. .RS 4
  47. Yay will also remove cached data about devel packages\&.
  48. .RE
  49. .SH "YAY OPTIONS (APPLY TO -Y AND --YAY)"
  50. .PP
  51. \fB<NO OPTION>\fR
  52. .RS 4
  53. Displays a list of packages matching the search terms and prompts the user on
  54. which packages to install (yogurt mode)\&.
  55. .RE
  56. .PP
  57. \fB \-\-gendb\fR
  58. .RS 4
  59. Generate development package databse\&. Tracks the latest commit for each
  60. development package, when there is a new commit Yay will know to update\&. This
  61. is done per package whenever a package is synced. This option should only be
  62. used when migrating to Yay from another AUR helper.
  63. .RE
  64. .PP
  65. \fB\-c \-\-clean\fR
  66. .RS 4
  67. Remove unneeded dependencies\&.
  68. .RE
  69. .SH "PRINT OPTIONS (APPLY TO -P AND --PRINT)"
  70. \fB\-c \-\-complete\fR
  71. .RS 4
  72. Print a list of all AUR and repo packages\&. This is to allow shell completion
  73. and is not intended to be used directly by the user\&.
  74. .RE
  75. .PP
  76. \fB\-f \-\-fish\fR
  77. .RS 4
  78. During complete adjust the output for the fish shell\&.
  79. .RE
  80. .PP
  81. \fB\-d \-\-defaultconfig\fR
  82. .RS 4
  83. Print default yay configuration\&.
  84. .RE
  85. .PP
  86. \fB\-g \-\-config\fR
  87. .RS 4
  88. Print current yay configuration\&.
  89. .RE
  90. .PP
  91. \fB\-n \-\-numberupgrades\fR
  92. .RS 4
  93. Print number of packages that need to be updated\&. Note this does not preform
  94. a database refresh\&. Run \fByay -Sy\fR Before this for an up to date result\&.
  95. .RE
  96. .PP
  97. \fB\-s \-\-stats\fR
  98. .RS 4
  99. Displays information about installed packages and system health\&. If there are
  100. orphaned, out-of-date or packages that no longer exist on the AUR warnings will
  101. be displayed\&.
  102. .RE
  103. .PP
  104. \fB\-u \-\-upgrades\fR
  105. .RS 4
  106. Print Names of packages that need to be updated\&. Note this does not preform
  107. a database refresh\&. Run \fByay -Sy\fR Before this for an up to date result\&.
  108. .PP
  109. .SH "PERMANENT CONFIGURATION SETTINGS"
  110. .PP
  111. \fB\-\-save\fR
  112. .RS 4
  113. Causes the following options to be saved back to the config file\&. This
  114. provides an easy way to change config options without directly editing the
  115. file\&.
  116. .RE
  117. .PP
  118. \fB\-\-builddir <dir>\fR
  119. .RS 4
  120. Directory to use for Building AUR Packages\&. This directory is also used as
  121. the AUR cache when deciding if Yay should should skip builds\&.
  122. .RE
  123. .PP
  124. \fB\-\-editor <file>\fR
  125. .RS 4
  126. Editor to use when editing PKGBUILDs\&. If this is not set the \fBEDITOR\fR
  127. environment variable will be checked, followed by \fBVISUAL\fR\&. If none of
  128. these are set Yay will prompt the user for an editor\&.
  129. .RE
  130. .PP
  131. \fB\-\-makepkg <file>\fR
  132. .RS 4
  133. The command to use for \fBmakepkg\fR calls. This can be a command in
  134. \fBPATH\fR or an absolute path to the file\&.
  135. .RE
  136. .PP
  137. \fB\-\-pacman <file>\fR
  138. .RS 4
  139. The command to use for \fBpacman\fR calls. This can be a command in
  140. \fBPATH\fR or an absolute path to the file\&.
  141. .RE
  142. .PP
  143. \fB\-\-tar <file>\fR
  144. .RS 4
  145. The command to use for \fBbsdtar\fR calls. This can be a command in
  146. \fBPATH\fR or an absolute path to the file\&.
  147. .RE
  148. .PP
  149. \fB\-\-git <file>\fR
  150. .RS 4
  151. The command to use for \fBgit\fR calls. This can be a command in
  152. \fBPATH\fR or an absolute path to the file\&.
  153. .RE
  154. .PP
  155. \fB\-\-gpg <file>\fR
  156. .RS 4
  157. The command to use for \fBgpg\fR calls. This can be a command in
  158. \fBPATH\fR or an absolute path to the file\&.
  159. .RE
  160. .PP
  161. \fB\-\-config <file>\fR
  162. .RS 4
  163. The pacman config file to use\&.
  164. .RE
  165. .PP
  166. \fB\-\-requestsplitn <n>\fR
  167. .RS 4
  168. The maximum amount of packages to request per AUR query\&. The higher the
  169. number the faster AUR requests will be\&. Requesting too many packages in one
  170. AUR query will cause an error\%. This should only make a noticeable difference
  171. with very large requests (>500) packages\&.
  172. .RE
  173. .PP
  174. \fB\-\-topdown\fR
  175. .RS 4
  176. Display repository packages first and then AUR packages\&.
  177. .RE
  178. .PP
  179. \fB\-\-bottomup\fR
  180. .RS 4
  181. Show AUR packages first and then repository packages\&.
  182. .RE
  183. .PP
  184. \fB\-\-devel\fR
  185. .RS 4
  186. During sysupgrade also check AUR development packages for updates\&. Currently
  187. only GitHub packages are supported\&.
  188. .RE
  189. .PP
  190. \fB\-\-nodevel\fR
  191. .RS 4
  192. Do not check for development packages updates during sysupgrade\&.
  193. .RE
  194. .PP
  195. \fB\-\-afterclean\fR
  196. .RS 4
  197. Remove package sources after successful Install\&.
  198. .RE
  199. .PP
  200. \fB\-\-noafterclean\fR
  201. .RS 4
  202. Do not remove package sources after successful Install\&.
  203. .RE
  204. .PP
  205. \fB\-\-timeupdate\fR
  206. .RS 4
  207. During sysupgrade also compare the build time of installed packages against
  208. the last modification time of each package's AUR page\&.
  209. .RE
  210. .PP
  211. \fB\-\-notimeupdate\fR
  212. .RS 4
  213. Do not consider build times during sysupgrade\&.
  214. .RE
  215. .PP
  216. \fB\-\-redownload\fR
  217. .RS 4
  218. Always download pkgbuilds of targets even when a copy is available in cache\&.
  219. .RE
  220. .PP
  221. \fB\-\-redownloadall\fR
  222. .RS 4
  223. Always download pkgbuilds of all AUR packages even when a copy is available
  224. in cache\&.
  225. .RE
  226. .PP
  227. \fB\-\-noredownload\fR
  228. .RS 4
  229. When downloading pkgbuilds if the pkgbuild is found in cache and is equal or
  230. newer than the AUR's version use that instead of downloading a new one\&.
  231. .RE
  232. .PP
  233. \fB\-\-rebuild\fR
  234. .RS 4
  235. Always build target packages even when a copy is available in cache\&.
  236. .RE
  237. .PP
  238. \fB\-\-rebuildall\fR
  239. .RS 4
  240. Always build all AUR packages even when a copy is available
  241. in cache\&.
  242. .RE
  243. .PP
  244. \fB\-\-rebuildtree\fR
  245. .RS 4
  246. When installing an AUR package rebuild and reinstall all of its AUR
  247. dependencies recursivley, even the ones already installed. This flag allows
  248. you to easily rebuild packages against your current system's libraries if they
  249. have become incompatible.
  250. .RE
  251. .PP
  252. \fB\-\-norebuild\fR
  253. .RS 4
  254. When building packages if the package is found in cache and is an equal version
  255. to the one wanted skip the package build and use the existing package\&.
  256. .RE
  257. .PP
  258. \fB\-\-mflags <flags>\fR
  259. .RS 4
  260. Passes arguments to makepkg\&. These flags get passed to every instance where
  261. makepkg is called by Yay. Arguments are split on whitespace before being
  262. passed to makepkg. Multiple arguments may be passed by supplying a space
  263. separated list that is quoted by the shell.
  264. .RE
  265. .PP
  266. \fB\-\-gpgflags <flags>\fR
  267. .RS 4
  268. Passes arguments to gpg\&. These flags get passed to every instance where
  269. gpg is called by Yay. Arguments are split on whitespace before being
  270. passed to gpg. Multiple arguments may be passed by supplying a space
  271. separated list that is quoted by the shell.
  272. .RE
  273. .PP
  274. \fB\-\-sudoloop\fR
  275. .RS 4
  276. Loop sudo calls in the background to prevent sudo from timing out during long
  277. builds\&.
  278. .RE
  279. .PP
  280. \fB\-\-nosudoloop\fR
  281. .RS 4
  282. Do not loop sudo calls in the background\&.
  283. .RE
  284. .SH "EXAMPLES"
  285. .PP
  286. yay \fIfoo\fR
  287. .RS 4
  288. Search and install from the repos and the \fBAUR\fR\ using yogurt mode\&.
  289. .RE
  290. .PP
  291. yay -Syu
  292. .RS 4
  293. Update package list and upgrade all currently installed repo and \fBAUR\fR\&.
  294. .RE
  295. .PP
  296. yay -S \fIfoo\fR
  297. .RS 4
  298. Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&.
  299. .RE
  300. .PP
  301. yay -Ss \fIfoo\fR
  302. .RS 4
  303. Searches for package \fIfoo\fR on the repos or the \fBAUR\fR\&.
  304. .RE
  305. .PP
  306. yay -Si \fIfoo\fR
  307. .RS 4
  308. Gets information about package \fIfoo\fR from the repos or the \fBAUR\fR\&.
  309. .RE
  310. .PP
  311. yay -S \fIfoo\fR --mflags "--skipchecksums --skippgpcheck"
  312. .RS 4
  313. Installs \fIfoo\fR while skipping checksums and pgp checks\&.
  314. .RE
  315. .PP
  316. yay --devel --save
  317. .RS 4
  318. Sets devel to true in the config\&.
  319. .RE
  320. .PP
  321. yay --stats
  322. .RS 4
  323. Shows statistics for installed packages and system health\&.
  324. .RE
  325. .SH "FILES"
  326. .sp
  327. \fBCONFIG DIRECTORY\fR
  328. .RS 4
  329. The config directory is \fI$XDG_CONFIG_HOME/yay/\fR\&. if
  330. \fB$XDG_CONFIG_HOME\fR is unset, the config directory will fall back to
  331. \fI$HOME/.config/yay\fR\%.
  332. .PP
  333. \fIconfig.json\fR\& Is used to store all of Yay's config options\&. Editing
  334. this file should be done through Yay, using the options
  335. mentioned in \fBPERMANENT CONFIGURATION SETTINGS\fR\&.
  336. .RE
  337. .PP
  338. \fBCACHE DIRECTORY\fR
  339. .RS 4
  340. The cache directory is \fI$XDG_CACHE_HOME/yay/\fR\&. if
  341. \fB$XDG_CACHE_HOME\fR is unset, the cache directory will fall back to
  342. \fI$HOME/.cache/yay\fR\&.
  343. .PP
  344. \fIaur_<shellname>\fR holds a list of of all packages, including the AUR,
  345. for shell completion\&. The completion files are refreshed every 48 hours\&.
  346. .PP
  347. \fIvcs.json\fR tracks VCS packages and the latest commit of each source. If
  348. any of these commits change the package will be upgraded during a devel update.
  349. .RE
  350. .PP
  351. \fBBUILD DIRECTORY\fR
  352. .RS 4
  353. Unless otherwise set this should be the same as \fBCACHE DIRECTORY\fR. This
  354. directory is used to store downloaded AUR Packages as well as any source files
  355. and built packages from those packages\&.
  356. .RE
  357. .PP
  358. \fBPACMAN.CONF\fR
  359. .RS 4
  360. Yay uses Pacman's config file to set certain pacman options either through
  361. go-alpm or Yay itself. Options inherited include most libalpm options and
  362. pacman options\&.
  363. .PP
  364. Notably \fBDatabases\fR, \fBColor\fR and \fB*Path/*Dir\fR options are used\&.
  365. .RE
  366. .PP
  367. .SH "SEE ALSO"
  368. .sp
  369. \fBmakepkg\fR(8)
  370. \fBPKGBUILD\fR(5)
  371. \fBpacman\fR(8)
  372. \fBpacman\&.conf\fR(5)
  373. .PP
  374. See the arch wiki at https://wiki\&.archlinux\&.org/index\&.php/Arch_User_Repository for more info on the \fBAUR\fR\&.
  375. .SH "BUGS"
  376. .PP
  377. Please report bugs to our GitHub page https://github\&.com/Jguer/yay
  378. .SH "AUTHORS"
  379. .sp
  380. Jguer <joaogg3@gmail\&.com>
  381. .br
  382. Morgana <morganamilo@gmail\&.com>