yay.8 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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 perform
  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 perform
  120. a database refresh\&. Run \fByay -Sy\fR Before this for an up to date result\&.
  121. .RE
  122. .PP
  123. \fB\-w --news\fR
  124. .RS 4
  125. Print new news from the Archlinux homepage\&. News is considered new if it is
  126. newer than the build date of all native packages\&. Pass this twice to show all
  127. avaliable news\&.
  128. .RE
  129. .PP
  130. \fB\-q --quiet\fR
  131. .RS 4
  132. Only show titles when printing news\&.
  133. .RE
  134. .PP
  135. .SH "PERMANENT CONFIGURATION SETTINGS"
  136. .PP
  137. \fB\-\-save\fR
  138. .RS 4
  139. Causes the following options to be saved back to the config file\&. This
  140. provides an easy way to change config options without directly editing the
  141. file\&.
  142. .RE
  143. .PP
  144. \fB\-\-builddir <dir>\fR
  145. .RS 4
  146. Directory to use for Building AUR Packages\&. This directory is also used as
  147. the AUR cache when deciding if Yay should should skip builds\&.
  148. .RE
  149. .PP
  150. \fB\-\-editor <file>\fR
  151. .RS 4
  152. Editor to use when editing PKGBUILDs\&. If this is not set the \fBEDITOR\fR
  153. environment variable will be checked, followed by \fBVISUAL\fR\&. If none of
  154. these are set Yay will prompt the user for an editor\&.
  155. .RE
  156. .PP
  157. \fB\-\-editorflags <flags>\fR
  158. .RS 4
  159. Passes arguments to the editor\&. These flags get passed to every instance where
  160. the editor is called by Yay. Arguments are split on whitespace before being
  161. passed to gpg. Multiple arguments may be passed by supplying a space
  162. separated list that is quoted by the shell.
  163. .RE
  164. .PP
  165. \fB\-\-makepkg <file>\fR
  166. .RS 4
  167. The command to use for \fBmakepkg\fR calls. This can be a command in
  168. \fBPATH\fR or an absolute path to the file\&.
  169. .RE
  170. .PP
  171. \fB\-\-pacman <file>\fR
  172. .RS 4
  173. The command to use for \fBpacman\fR calls. This can be a command in
  174. \fBPATH\fR or an absolute path to the file\&.
  175. .RE
  176. .PP
  177. \fB\-\-tar <file>\fR
  178. .RS 4
  179. The command to use for \fBbsdtar\fR calls. This can be a command in
  180. \fBPATH\fR or an absolute path to the file\&.
  181. .RE
  182. .PP
  183. \fB\-\-git <file>\fR
  184. .RS 4
  185. The command to use for \fBgit\fR calls. This can be a command in
  186. \fBPATH\fR or an absolute path to the file\&.
  187. .RE
  188. .PP
  189. \fB\-\-gpg <file>\fR
  190. .RS 4
  191. The command to use for \fBgpg\fR calls. This can be a command in
  192. \fBPATH\fR or an absolute path to the file\&.
  193. .RE
  194. .PP
  195. \fB\-\-config <file>\fR
  196. .RS 4
  197. The pacman config file to use\&.
  198. .RE
  199. .PP
  200. \fB\-\-requestsplitn <n>\fR
  201. .RS 4
  202. The maximum amount of packages to request per AUR query\&. The higher the
  203. number the faster AUR requests will be\&. Requesting too many packages in one
  204. AUR query will cause an error\&. This should only make a noticeable difference
  205. with very large requests (>500) packages\&.
  206. .RE
  207. .PP
  208. \fB\-\-sortby <votes|popularity|id|baseid|name|base|submitted|modified>\fR
  209. .RS 4
  210. Sort AUR results by a specific field during search\&.
  211. .RE
  212. .PP
  213. \fB\-\-answerclean <All|None|Installed|NotInstalled|...>\fR
  214. .RS 4
  215. Set a predetermined answer for the clean build menu question\&. This answer
  216. will be used instead of reading from standard input but will be treated exactly
  217. the same when parsed\&.
  218. .RE
  219. .PP
  220. \fB\-\-answeredit <All|None|Installed|NotInstalled|...>\fR
  221. .RS 4
  222. Set a predetermined answer for the edit pkgbuild menu question\&. This answer
  223. will be used instead of reading from standard input but will be treated exactly
  224. the same when parsed\&.
  225. .RE
  226. .PP
  227. \fB\-\-answerupgrade\fR <Repo|^Repo|None|...>
  228. .RS 4
  229. Set a predetermined answer for the upgrade menu question\&. Selects which package
  230. ranges or repos to omit for updades\&. This answer will be used instead of
  231. reading from standard input but will be treated exactly the same\&.
  232. .RE
  233. .PP
  234. \fB\-\-noanswerclean\fR
  235. .RS 4
  236. Unset the answer for the clean build menu\&.
  237. .RE
  238. .PP
  239. \fB\-\-noansweredit\fR
  240. .RS 4
  241. Unset the answer for the edit pkgbuild menu\&.
  242. .RE
  243. .PP
  244. \fB\-\-noanswerupgrade\fR
  245. .RS 4
  246. Unset the answer for the upgrade menu\&.
  247. .RE
  248. .PP
  249. \fB\-\-topdown\fR
  250. .RS 4
  251. Display repository packages first and then AUR packages\&.
  252. .RE
  253. .PP
  254. \fB\-\-bottomup\fR
  255. .RS 4
  256. Show AUR packages first and then repository packages\&.
  257. .RE
  258. .PP
  259. \fB\-\-devel\fR
  260. .RS 4
  261. During sysupgrade also check AUR development packages for updates\&. Currently
  262. only GitHub packages are supported\&.
  263. .RE
  264. .PP
  265. \fB\-\-nodevel\fR
  266. .RS 4
  267. Do not check for development packages updates during sysupgrade\&.
  268. .RE
  269. .PP
  270. \fB\-\-gitclone\fR
  271. .RS 4
  272. Use git to download and update PKGBUILDs\&. PKGBUILDs previously downloaded
  273. using tarball will continue to use tarballs until the package is clean built\&.
  274. Similarly, PKGBUILDs managed with git will continue to use git until the package
  275. is clean built.\&.
  276. .RE
  277. .PP
  278. \fB\-\-nogitclone\fR
  279. .RS 4
  280. Download and update PKGBUILDs using tarballs\&. The above conditions about
  281. previously installed packages still apply\&.
  282. .RE
  283. .PP
  284. \fB\-\-afterclean\fR
  285. .RS 4
  286. Remove package sources after successful Install\&.
  287. .RE
  288. .PP
  289. \fB\-\-noafterclean\fR
  290. .RS 4
  291. Do not remove package sources after successful Install\&.
  292. .RE
  293. .PP
  294. \fB\-\-timeupdate\fR
  295. .RS 4
  296. During sysupgrade also compare the build time of installed packages against
  297. the last modification time of each package's AUR page\&.
  298. .RE
  299. .PP
  300. \fB\-\-notimeupdate\fR
  301. .RS 4
  302. Do not consider build times during sysupgrade\&.
  303. .RE
  304. .PP
  305. \fB\-\-redownload\fR
  306. .RS 4
  307. Always download pkgbuilds of targets even when a copy is available in cache\&.
  308. .RE
  309. .PP
  310. \fB\-\-redownloadall\fR
  311. .RS 4
  312. Always download pkgbuilds of all AUR packages even when a copy is available
  313. in cache\&.
  314. .RE
  315. .PP
  316. \fB\-\-noredownload\fR
  317. .RS 4
  318. When downloading pkgbuilds if the pkgbuild is found in cache and is equal or
  319. newer than the AUR's version use that instead of downloading a new one\&.
  320. .RE
  321. .PP
  322. \fB\-\-rebuild\fR
  323. .RS 4
  324. Always build target packages even when a copy is available in cache\&.
  325. .RE
  326. .PP
  327. \fB\-\-rebuildall\fR
  328. .RS 4
  329. Always build all AUR packages even when a copy is available
  330. in cache\&.
  331. .RE
  332. .PP
  333. \fB\-\-rebuildtree\fR
  334. .RS 4
  335. When installing an AUR package rebuild and reinstall all of its AUR
  336. dependencies recursivley, even the ones already installed. This flag allows
  337. you to easily rebuild packages against your current system's libraries if they
  338. have become incompatible.
  339. .RE
  340. .PP
  341. \fB\-\-norebuild\fR
  342. .RS 4
  343. When building packages if the package is found in cache and is an equal version
  344. to the one wanted skip the package build and use the existing package\&.
  345. .RE
  346. .PP
  347. \fB\-\-mflags <flags>\fR
  348. .RS 4
  349. Passes arguments to makepkg\&. These flags get passed to every instance where
  350. makepkg is called by Yay. Arguments are split on whitespace before being
  351. passed to makepkg. Multiple arguments may be passed by supplying a space
  352. separated list that is quoted by the shell.
  353. .RE
  354. .PP
  355. \fB\-\-gpgflags <flags>\fR
  356. .RS 4
  357. Passes arguments to gpg\&. These flags get passed to every instance where
  358. gpg is called by Yay. Arguments are split on whitespace before being
  359. passed to gpg. Multiple arguments may be passed by supplying a space
  360. separated list that is quoted by the shell.
  361. .RE
  362. .PP
  363. \fB\-\-sudoloop\fR
  364. .RS 4
  365. Loop sudo calls in the background to prevent sudo from timing out during long
  366. builds\&.
  367. .RE
  368. .PP
  369. \fB\-\-nosudoloop\fR
  370. .RS 4
  371. Do not loop sudo calls in the background\&.
  372. .RE
  373. .SH "EXAMPLES"
  374. .PP
  375. yay \fIfoo\fR
  376. .RS 4
  377. Search and install from the repos and the \fBAUR\fR\ using yogurt mode\&.
  378. .RE
  379. .PP
  380. yay -Syu
  381. .RS 4
  382. Update package list and upgrade all currently installed repo and \fBAUR\fR\&.
  383. .RE
  384. .PP
  385. yay -S \fIfoo\fR
  386. .RS 4
  387. Installs package \fIfoo\fR from the repos or the \fBAUR\fR\&.
  388. .RE
  389. .PP
  390. yay -Ss \fIfoo\fR
  391. .RS 4
  392. Searches for package \fIfoo\fR on the repos or the \fBAUR\fR\&.
  393. .RE
  394. .PP
  395. yay -Si \fIfoo\fR
  396. .RS 4
  397. Gets information about package \fIfoo\fR from the repos or the \fBAUR\fR\&.
  398. .RE
  399. .PP
  400. yay -S \fIfoo\fR --mflags "--skipchecksums --skippgpcheck"
  401. .RS 4
  402. Installs \fIfoo\fR while skipping checksums and pgp checks\&.
  403. .RE
  404. .PP
  405. yay --devel --save
  406. .RS 4
  407. Sets devel to true in the config\&.
  408. .RE
  409. .PP
  410. yay -P --stats
  411. .RS 4
  412. Shows statistics for installed packages and system health\&.
  413. .RE
  414. .SH "FILES"
  415. .sp
  416. \fBCONFIG DIRECTORY\fR
  417. .RS 4
  418. The config directory is \fI$XDG_CONFIG_HOME/yay/\fR\&. if
  419. \fB$XDG_CONFIG_HOME\fR is unset, the config directory will fall back to
  420. \fI$HOME/.config/yay\fR\&.
  421. .PP
  422. \fIconfig.json\fR\& Is used to store all of Yay's config options\&. Editing
  423. this file should be done through Yay, using the options
  424. mentioned in \fBPERMANENT CONFIGURATION SETTINGS\fR\&.
  425. .RE
  426. .PP
  427. \fBCACHE DIRECTORY\fR
  428. .RS 4
  429. The cache directory is \fI$XDG_CACHE_HOME/yay/\fR\&. if
  430. \fB$XDG_CACHE_HOME\fR is unset, the cache directory will fall back to
  431. \fI$HOME/.cache/yay\fR\&.
  432. .PP
  433. \fIaur_<shellname>\fR holds a list of of all packages, including the AUR,
  434. for shell completion\&. The completion files are refreshed every 48 hours\&.
  435. .PP
  436. \fIvcs.json\fR tracks VCS packages and the latest commit of each source. If
  437. any of these commits change the package will be upgraded during a devel update.
  438. .RE
  439. .PP
  440. \fBBUILD DIRECTORY\fR
  441. .RS 4
  442. Unless otherwise set this should be the same as \fBCACHE DIRECTORY\fR. This
  443. directory is used to store downloaded AUR Packages as well as any source files
  444. and built packages from those packages\&.
  445. .RE
  446. .PP
  447. \fBPACMAN.CONF\fR
  448. .RS 4
  449. Yay uses Pacman's config file to set certain pacman options either through
  450. go-alpm or Yay itself. Options inherited include most libalpm options and
  451. pacman options\&.
  452. .PP
  453. Notably \fBDatabases\fR, \fBColor\fR and \fB*Path/*Dir\fR options are used\&.
  454. .RE
  455. .PP
  456. .SH "SEE ALSO"
  457. .sp
  458. \fBmakepkg\fR(8)
  459. \fBPKGBUILD\fR(5)
  460. \fBpacman\fR(8)
  461. \fBpacman\&.conf\fR(5)
  462. .PP
  463. See the arch wiki at https://wiki\&.archlinux\&.org/index\&.php/Arch_User_Repository for more info on the \fBAUR\fR\&.
  464. .SH "BUGS"
  465. .PP
  466. Please report bugs to our GitHub page https://github\&.com/Jguer/yay
  467. .SH "AUTHORS"
  468. .sp
  469. Jguer <joaogg3@gmail\&.com>
  470. .br
  471. Morgana <morganamilo@gmail\&.com>