yay.8 11 KB

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