What does yay upgrade do?

I run yay -Syu and it says everithung is up to date, then for the first time since installing the OS (like 1 week) u run yay upgrade and there is 102 things. Should I press ENTER?

It lists every package with the word upgrade in it’s name or description, so does diddly squat.

5 Likes

If you want to update your system, just run yay by itself.

6 Likes

When running yay by itself, like I just did right now, it should look something like this…

[wombat@endeavouros ~]$ yay
[sudo] password for wombat: 
:: Synchronizing package databases...
 endeavouros                                  15.1 KiB  55.7 KiB/s 00:00 [-----------------------------------------] 100%
 core                                        121.6 KiB   192 KiB/s 00:01 [-----------------------------------------] 100%
 extra                                         7.9 MiB  14.4 MiB/s 00:01 [-----------------------------------------] 100%
 multilib                                    138.9 KiB   137 KiB/s 00:01 [-----------------------------------------] 100%
:: Searching AUR for updates...
:: Searching databases for updates...
:: 22 packages to upgrade/install.
22  endeavouros/eos-apps-info     24.6-1     -> 24.6.1-1
21  core/ca-certificates-mozilla  3.101-1    -> 3.101.1-1
20  core/nss                      3.101-1    -> 3.101.1-1
19  extra/aha                     0.5.1-2    -> 0.5.1-3
18  extra/cifs-utils              7.0-3      -> 7.0-4
17  extra/convertlit              1.8-11     -> 1.8-12
16  extra/double-conversion       3.3.0-1    -> 3.3.0-2
15  extra/ebook-tools             0.2.2-7    -> 0.2.2-8
14  extra/fastfetch               2.17.1-1   -> 2.17.1-2
13  extra/freetype2               2.13.2-1   -> 2.13.2-2
12  extra/libraw1394              2.1.2-3    -> 2.1.2-4
11  extra/libvirt                 1:10.4.0-1 -> 1:10.5.0-1
10  extra/libvpl                  2.11.0-1   -> 2.12.0-1
 9  extra/noto-fonts              1:24.6.1-1 -> 1:24.7.1-1
 8  extra/noto-fonts-extra        1:24.6.1-1 -> 1:24.7.1-1
 7  extra/python-idna             3.6-2      -> 3.7-1
 6  extra/python-pillow           10.3.0-2   -> 10.4.0-1
 5  extra/python-platformdirs     4.2.0-3    -> 4.2.2-1
 4  extra/sysfsutils              2.1.1-1    -> 2.1.1-2
 3  extra/twolame                 0.4.0-3    -> 0.4.0-4
 2  multilib/lib32-nss            3.101-1    -> 3.101.1-1
 1  multilib/wine                 9.11-1     -> 9.12-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
Sync Dependency (15): aha-0.5.1-3, convertlit-1.8-12, cifs-utils-7.0-4, libvirt-1:10.5.0-1, ebook-tools-0.2.2-8, libvpl-2.12.0-1, libraw1394-2.1.2-4, twolame-0.4.0-4, ca-certificates-mozilla-3.101.1-1, python-platformdirs-4.2.2-1, nss-3.101.1-1, python-idna-3.7-1, python-pillow-10.4.0-1, lib32-nss-3.101.1-1, double-conversion-3.3.0-2
Sync Explicit (7): eos-apps-info-24.6.1-1, sysfsutils-2.1.1-2, noto-fonts-extra-1:24.7.1-1, wine-9.12-1, noto-fonts-1:24.7.1-1, freetype2-2.13.2-2, fastfetch-2.17.1-2
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (22)                  Old Version  New Version  Net Change  Download Size

extra/aha                     0.5.1-2      0.5.1-3        0.00 MiB       0.01 MiB
core/ca-certificates-mozilla  3.101-1      3.101.1-1      0.00 MiB       0.37 MiB
extra/cifs-utils              7.0-3        7.0-4          0.00 MiB       0.09 MiB
extra/convertlit              1.8-11       1.8-12        -0.03 MiB       0.04 MiB
extra/double-conversion       3.3.0-1      3.3.0-2        0.00 MiB       0.06 MiB
extra/ebook-tools             0.2.2-7      0.2.2-8        0.00 MiB       0.03 MiB
endeavouros/eos-apps-info     24.6-1       24.6.1-1      -0.02 MiB       0.28 MiB
extra/fastfetch               2.17.1-1     2.17.1-2      -0.03 MiB       0.52 MiB
extra/freetype2               2.13.2-1     2.13.2-2       0.01 MiB       0.52 MiB
multilib/lib32-nss            3.101-1      3.101.1-1      0.00 MiB       1.06 MiB
extra/libraw1394              2.1.2-3      2.1.2-4        0.01 MiB       0.05 MiB
extra/libvirt                 1:10.4.0-1   1:10.5.0-1     0.13 MiB       8.39 MiB
extra/libvpl                  2.11.0-1     2.12.0-1       0.01 MiB       0.22 MiB
extra/noto-fonts              1:24.6.1-1   1:24.7.1-1     1.58 MiB      27.96 MiB
extra/noto-fonts-extra        1:24.6.1-1   1:24.7.1-1     8.09 MiB      66.09 MiB
core/nss                      3.101-1      3.101.1-1      0.00 MiB       1.56 MiB
extra/python-idna             3.6-2        3.7-1          0.15 MiB       0.10 MiB
extra/python-pillow           10.3.0-2     10.4.0-1       0.10 MiB       0.81 MiB
extra/python-platformdirs     4.2.0-3      4.2.2-1        0.00 MiB       0.03 MiB
extra/sysfsutils              2.1.1-1      2.1.1-2        0.00 MiB       0.03 MiB
extra/twolame                 0.4.0-3      0.4.0-4        0.00 MiB       0.08 MiB
multilib/wine                 9.11-1       9.12-1         2.11 MiB      62.24 MiB

Total Download Size:    170.53 MiB
Total Installed Size:  1097.86 MiB
Net Upgrade Size:        12.11 MiB

:: Proceed with installation? [Y/n] 

Press enter and follow any prompts.

1 Like

so do I upgrade or just keep using just yay?

Simply run yay. nothing more to do

4 Likes

Just yay, upgrade is a Debian thing.

5 Likes

Just use yay by itself to update your system and packages.

4 Likes

Run sudo pacman -Syu to update packages installed from the official repos.

Run yay --aur to update packagees installed for AUR.

Or as has been mentioned above, just:

yay

to update packages installed from official repos and those installed from AUR.

For more info, consult:

man pacman
man yay
https://wiki.archlinux.org/title/Special:Search

4 Likes

@krematorijum

A quick cheat-sheet for yay

Install the packages with:
yay -S package_name

Remove packages with:
yay -R package_name

To remove/delete a package with its dependencies:
yay -Rns package_name

Upgrading/Updating AUR packages only:
yay -Sua

Upgrading/Updating ALL packages:
yay

7 Likes

I would add yay -Yc to remove orphan packages from time to time if you remove packages often.

Other than that use yay because you are so happy to get cutting edge new free software :tada: :partying_face:

3 Likes

I use yay because you only need to type in 3 letters. ( I’m lazy ) :joy:

5 Likes

I was just about to do that, you read my mind

1 Like

I use the up key lol

4 Likes

Added

alias u='eos-update'
alias ua='eos-update --aur'

to my ~/.bashrc.
Now I update with command u or ua depending on do I want AUR updates too or just the native updates.

In your case I might recommend

alias u='eos-update --aur'

:wink:

6 Likes

Same here. Did you stole my aliases :open_mouth:

3 Likes

Very likely those aliases are quite obvious if short commands are the goal…

1 Like

If I were to setup aliases like this I’d add a few surprise ones for people not meant to be there, otherwise I can spare the 2 seconds

1 Like

Indeed. I’m too lazy to type eos-update --aur :wink:

Which is why I use up, 95% of the time it is yay, otherwise it is very close

1 Like