# The mighty terminal

**URL:** <https://forum.endeavouros.com/t/the-mighty-terminal/11272>\
**Category:** Lounge\
**Created:** [January 14, 2021, 11:01am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272 "2021-01-14T11:01:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmandaONeill](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/amandaoneill/32/39251_2.png) [@AmandaONeill](https://forum.endeavouros.com/u/AmandaONeill)\
**Post date:** [January 14, 2021, 11:01am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/1 "2021-01-14T11:01:53Z")

</div>

i just like to say a thing or two regarding the usage of aur with GUI or not.  
since i first used manjaro when i was still distrohopping i tried to keep it to arch and using pamac, cause you know, GUI.  
but since this months i tried using the terminal more and for quite a while into this month (like a week?) i removed pamac and have turned to terminal only for update and aur stuff.  
while i am in now way capable nor patient enough to make everything terminal based (i need me some GUI for certain things, and convenience) but i do find at the very least i dont need no GUI helper anymore.

---

<div class="post-metadata">

**Author:** ![ringo](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ringo/32/66182_2.png) [@ringo](https://forum.endeavouros.com/u/ringo)\
**Post date:** [January 14, 2021, 11:06am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/2 "2021-01-14T11:06:22Z")

</div>

sometimes i use a gui helper, like pkgbrowser (qt5) from aur to search package… aur & repo

further i have a synaptic looks of small gui fromaur tkpacman… pretty stable using pacman, updating is just by a script and keybinding. also checkupdates is also there 🙂

vpacman i do use sometimes also here and then but everyone as its preferences at the end 🙂

---

<div class="post-metadata">

**Author:** ![AmandaONeill](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/amandaoneill/32/39251_2.png) [@AmandaONeill](https://forum.endeavouros.com/u/AmandaONeill)\
**Post date:** [January 14, 2021, 11:07am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/3 "2021-01-14T11:07:50Z")

</div>

forgot to mention, the newest change of their gui also turned me off so much i couldn’t stand it anymore 😆

---

<div class="post-metadata">

**Author:** ![manuel](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/manuel/32/396_2.png) [@manuel](https://forum.endeavouros.com/u/manuel)\
**Post date:** [January 14, 2021, 11:14am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/4 "2021-01-14T11:14:14Z")

</div>

@AmandaONeill  
I think the more you use the terminal, the more you’ll like it. Of course terminal is not the best answer for everything (that’s why we have GUIs!), but when accustomed to the terminal, it is very useful for many things.

And while using the terminal, it also helps even more to be (gradually) more familiar with `bash` capabilities (like aliases, functions, and eventually, scripts). And on that road, only the sky is the limit…

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 14, 2021, 11:16am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/5 "2021-01-14T11:16:05Z")

</div>

> [@manuel](#):
>
> Of course terminal is not the best answer for everything

How DARE you! 🤣

😉

---

<div class="post-metadata">

**Author:** ![I0F](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/i0f/32/47182_2.png) [@I0F](https://forum.endeavouros.com/u/I0F)\
**Post date:** [January 14, 2021, 11:17am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/6 "2021-01-14T11:17:48Z")

</div>

I would like to add, that DuckDuckGo has bang support, which, at least for me, has become incredibly useful for arch related stuff.

!aw seatch-term  
!pkg package-name  
!aur AURpkg-name  
!archlinux forum-search-term

---

<div class="post-metadata">

**Author:** ![AmandaONeill](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/amandaoneill/32/39251_2.png) [@AmandaONeill](https://forum.endeavouros.com/u/AmandaONeill)\
**Post date:** [January 14, 2021, 11:19am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/7 "2021-01-14T11:19:05Z")

</div>

i would consider myself pretty illiterate when it comes to advanced function, or rather…idk, i think the words is intimidated? im not sure what word would be accurate for it.  
anyway you are correct, i find for aur and updates after pamac butchered their UI is the easier and more comfortable option.

however if one find that a GUI helper has a similar or same UI before they did…whatever they did im always open to listen, testing things out and all that jazz.

---

<div class="post-metadata">

**Author:** ![manuel](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/manuel/32/396_2.png) [@manuel](https://forum.endeavouros.com/u/manuel)\
**Post date:** [January 14, 2021, 11:38am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/8 "2021-01-14T11:38:10Z")

</div>

> [@AmandaONeill](#):
>
> intimidated

Bash knowledge fortunately is not _required_. But even when you use `pacman` or `yay` on the terminal, you are already using `bash` (unless you have another shell like zsh…).

To start looking at the bash capabilities, the easy start is to try some bash _aliases_.  
An **alias** is another name for one or many commands. For example:

```auto
alias Update='yay -Syu'

```

is an alias definition that you can write in the end of your **~/.bashrc** file.  
The `Update` alias is available after each login. And it starts the `yay` command with options for updating all your software.

Then a slightly bigger example:

```auto
alias Update2='Update ; sudo paccache -rk3'

```

Now `Update2` does two things: calls alias `Update`, and then calls `paccache -rk3` (as root). This paccache stuff manages your package cache and deletes all but 3 latest of each package. And helps keep your disk from running out of space.

So that’s a small and easy start for useful bash features. There are lots more if you are willing to start doing that. 😅

---

<div class="post-metadata">

**Author:** ![ringo](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ringo/32/66182_2.png) [@ringo](https://forum.endeavouros.com/u/ringo)\
**Post date:** [January 14, 2021, 11:40am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/9 "2021-01-14T11:40:59Z")

</div>

Checkupdates has also a function you can download the updates and decide later to install probably works the same as sudo pacman -Sywu lol

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [January 14, 2021, 11:45am UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/10 "2021-01-14T11:45:19Z")

</div>

Well this one gets bookmarked 😋  
Just did this…very convenient!

```auto
~ $ alias yay='yay ; sudo paccache -rk3'
~ $ yay
[sudo] password for elloquin: 
:: Synchronizing package databases...
 core 132.3 KiB 8.08 MiB/s 00:00 [#################################] 100%
 extra 1647.0 KiB 48.7 MiB/s 00:00 [#################################] 100%
 community 5.3 MiB 11.4 MiB/s 00:00 [#################################] 100%
 multilib 152.0 KiB 6.19 MiB/s 00:00 [#################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (2) gptfdisk-1.0.6-1 libdrm-2.4.104-1

Total Download Size: 0.46 MiB
Total Installed Size: 1.73 MiB
Net Upgrade Size: 0.05 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 gptfdisk-1.0.6-1-x86_64 205.5 KiB 8.73 MiB/s 00:00 [#################################] 100%
 libdrm-2.4.104-1-x86_64 268.7 KiB 26.2 MiB/s 00:00 [#################################] 100%
(2/2) checking keys in keyring [#################################] 100%
(2/2) checking package integrity [#################################] 100%
(2/2) loading package files [#################################] 100%
(2/2) checking for file conflicts [#################################] 100%
(2/2) checking available disk space [#################################] 100%
:: Processing package changes...
(1/2) upgrading gptfdisk [#################################] 100%
(2/2) upgrading libdrm [#################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
:: Searching databases for updates...
:: Searching AUR for updates...
 there is nothing to do
==> no candidate packages found for pruning
~ $ 

```

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 14, 2021, 12:29pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/11 "2021-01-14T12:29:31Z")

</div>

Cool, i had no idea 🙂  
Thank you 🥳

---

<div class="post-metadata">

**Author:** ![ReemZ](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/reemz/32/20301_2.png) [@ReemZ](https://forum.endeavouros.com/u/ReemZ)\
**Post date:** [January 14, 2021, 12:52pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/12 "2021-01-14T12:52:26Z")

</div>

Is that persistent though, or do you need to add it to `.bashrc` for persistence?  
Also, a tip (not for you specifically, Elloquin, but in general): read `.bashrc`, look at what’s already there and how it’s written. That helped me create a handful of aliases for myself.

By the way, it looks like `yay` (without options, as I see in your paste) checks the official repos first (`pacman -Syu`), then the AUR, is that correct? (I’ve seen that behaviour before in `ccr`, the helper for the Chakra Community Repository, so it wouldn’t surprise me, I’d just like it confirmed 🙂 )

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [January 14, 2021, 12:57pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/13 "2021-01-14T12:57:19Z")

</div>

> [@ReemZ](#):
>
> By the way, it looks like `yay` (without options, as I see in your paste) checks the official repos first (`pacman -Syu`), then the AUR, is that correct?

That is how I have always understood it to work. I wouldn’t recommend doing things like `sudo pacman -Sy` before using yay though. I use `checkupdates` if I want to see what is going to be updated. This way if I want to hold off for a bit I can.

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [January 14, 2021, 1:19pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/14 "2021-01-14T13:19:20Z")

</div>

> [@ReemZ](#):
>
> Is that persistent though, or do you need to add it to `.bashrc` for persistence?

You need to add it and then reboot.

---

<div class="post-metadata">

**Author:** ![ReemZ](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/reemz/32/20301_2.png) [@ReemZ](https://forum.endeavouros.com/u/ReemZ)\
**Post date:** [January 14, 2021, 1:35pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/15 "2021-01-14T13:35:38Z")

</div>

's what I thought, cheers 🙂

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [January 14, 2021, 2:50pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/16 "2021-01-14T14:50:13Z")

</div>

_ **EDIT** _  
See what happens when I play with new things…If you are still going to use `yay` for package searches,installs, etc this is not for you. It will bind yay to only update functions. If you use a different helper for the former then it is fine. Another way to accomplish the same result would be:  
`alias update='yay ; sudo paccache -rk3'` Then you should maintain all `yay` fuctionality.

```auto
~ $ alias update='yay ; sudo paccache -rk3'
~ $ update
[sudo] password for elloquin: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 there is nothing to do
==> no candidate packages found for pruning
~ $ yay inxi
5 aur/inxi-perl-git r3749.05e55f8b-1 (+1 0.02) 
    Pinxi, development branch of inxi, a full featured CLI system information tool
4 aur/fcitx5-flypy-git r3.6d9e657-1 (+1 0.86) 
    XiaoHeYinXing table for fcitx, also known as flypy or xhup.
3 aur/inxi-git 3.2.01.r0.gdf45e6d4-1 (+3 0.01) 
    Full featured CLI system information tool
2 aur/geeknote-improved-git 2.0.17.r833.21cbc2b-1 (+13 0.00) 
    Work with Evernote & Yinxiang from the command line. This fork has everything geeknote does and more for example the ability to upload documents. It also has much more active development.
1 aur/inxi 3.2.01.1-1 (+128 4.50) (Out-of-date: 2021-01-10) 
    Full featured CLI system information tool
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 

```

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [January 14, 2021, 2:53pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/17 "2021-01-14T14:53:23Z")

</div>

You can just create pacman hook(s) like i did 😉

Put em in `/etc/pacman.d/hooks/`

**99-clear-paccache.hook**

```auto
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Operation = Remove
Target = *

[Action]
Description = Clear pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -rk2

```

**99-clear-paccache-unused.hook**

```auto
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Operation = Remove
Target = *

[Action]
Description = Clear pacman unused cache...
When = PostTransaction
Exec = /usr/bin/paccache -ruk0

```

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [January 14, 2021, 5:06pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/18 "2021-01-14T17:06:19Z")

</div>

> [@manuel](#):
>
> ```auto
> alias Update='yay -Syu'
> 
> ```

Why would you do that?

`Update` contains 8 keystrokes (9 if you use Caps Lock).  
`yay` contains 4 keystrokes (and two of them are the same key). `yay -Syu` is pointless.

---

<div class="post-metadata">

**Author:** ![freebird54](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/freebird54/32/83106_2.png) [@freebird54](https://forum.endeavouros.com/u/freebird54)\
**Post date:** [January 14, 2021, 5:30pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/19 "2021-01-14T17:30:45Z")

</div>

> [@anon53396576](#):
>
> You need to add it and then reboot.

Actually, add it, then try:

```auto
source ~/.bashrc

```

will activate it from there. reboot is optional at most. Close and restart terminal also has that effect…

---

<div class="post-metadata">

**Author:** ![freebird54](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/freebird54/32/83106_2.png) [@freebird54](https://forum.endeavouros.com/u/freebird54)\
**Post date:** [January 14, 2021, 5:34pm UTC](https://forum.endeavouros.com/t/the-mighty-terminal/11272/20 "2021-01-14T17:34:57Z")

</div>

I find I prefer to separate the functions - so I have an update alias that does a

```auto
sudo pacman -Syu

```

and when I feel like it I do

```auto
yay -Sua

```

for AUR packages. It makes for better control over things NOT to upgrade from the AUR (no time, no need, would mess something up, would actually downgrade version I have, etc) Setting yay loose with sudo already active doesn’t match my use case 😁

[Next page](https://forum.endeavouros.com/t/the-mighty-terminal/11272.md?page=2)
