# (Yay) Update in the Terminal (cli)

**URL:** https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360
**Category:** Userland
**Created:** [June 1, 2023, 11:37pm UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360 "2023-06-01T23:37:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [June 1, 2023, 11:37pm UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/1 "2023-06-01T23:37:36Z")

</div>

Hi @napcok, I am interested in seeing the script that performs Mabox updates using Yay, as part of my interest in scripting with the idea of adapting it to other distros.

I have another PC running Manjaro and would like to use the script on that PC as well.

I like Yay better than Pacman and Pamac although I wouldn’t stop using them as they are part of the distro.

Searching through the scripts in **/usr/sbin** / I found _“check updates.sh”_. I’m not sure if that’s the right script, could you confirm or guide me?

Translated with [DeepL Translate: The world's most accurate translator](http://www.DeepL.com/Translator) (free version)

---

<div class="post-metadata">

### Author: ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)
#### Post date: [June 1, 2023, 11:44pm UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/2 "2023-06-01T23:44:36Z")

</div>

I don’t know exactly what you are referring to…  
How do you run this update? From the right sidepanel? From the Conky context menu?

It’s unlikely to be a script, just a simple command or two run via the terminal.

Edit:  
checkupdates.sh is a script executed by Conky - it checks updates every 30min, and if updates are available shows notification and let you decide about the way to update: Pamac or cli (yay).

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [June 2, 2023, 12:00am UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/3 "2023-06-02T00:00:47Z")

</div>

Yes, reading the file I understand what you are saying.  
Yes, the yay updater that comes in the right panel. i thought it might be a script but i can’t figure it out.

---

<div class="post-metadata">

### Author: ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)
#### Post date: [June 2, 2023, 12:08am UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/4 "2023-06-02T00:08:52Z")

</div>

Just two commands launched via terminal

```auto
yay -Syyu;read -p " Finished! Press ENTER to quit"

```

It can be difficult to run commands in different terminals this way. Refer to the manual or help for the terminal you want to use.

I think it’s probably best to just fire up the terminal normally and type yay (-Syyu isn’t really needed)

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [June 2, 2023, 12:19am UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/5 "2023-06-02T00:19:14Z")

</div>

Thank you, I will keep this in mind.  
I’m interested in scripting, that’s the main reason I wanted to see it and of course to use it, but from what you say, just run the command so solved the issue.  
I will look at other scripts to go see how they perform.

---

<div class="post-metadata">

### Author: ![muzqs](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/muzqs/32/3702_2.png) [@muzqs](https://forum.maboxlinux.org/u/muzqs)
#### Post date: [June 4, 2023, 7:50am UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/6 "2023-06-04T07:50:19Z")

</div>

Hi Claudio,

> [@Claudio](#):
>
> I like Yay better than Pacman and Pamac although I wouldn’t stop using them as they are part of the distro.

Maybe I’m reading it wrong.  
But Yay is probably not installed as the default on Manjaro. I don’t know.  
But Yay is a program just like Pacman.

- Pacman uses official arch repo.
- Yay also installs AUR community packages.

To install yay on Manjaro.  
`pacman -S yay `

After that you can choose to use Yay or Pacman.

🐦

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [June 4, 2023, 11:05pm UTC](https://forum.maboxlinux.org/t/yay-update-in-the-terminal-cli/1360/7 "2023-06-04T23:05:17Z")

</div>

Hi @muzqs thanks for your answer, I’m in Mabox and I use yay for updates (cli) and eventually to install software. 👍
