yay.8 11 KB

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