yay icon indicating copy to clipboard operation
yay copied to clipboard

Add old version -> new version when there is an upgrade

Open rakotomandimby opened this issue 2 years ago • 4 comments

Problem

I usually keep my packages up to date with yay -S the-package, and I dont see the version upgrade gap.

Let's take the nvidia example:

[mrakotomandimby@universe ~]$  yay -S nvidia-beta nvidia-utils-beta
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:2]  nvidia-utils-beta-510.60.02-1  nvidia-beta-510.60.02-1

The problem here is I dont see the currently installed version (when I have)

Note: I can have current version with pacman -Q

Suggestion: Display the version upgrade

This is an example of what I propose:

[mrakotomandimby@universe ~]$  yay -S nvidia-beta nvidia-utils-beta
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:2]  
  nvidia-utils-beta: 510.60.02-1  (from 510.54-1)
  nvidia-beta: 510.60.02-1  (from 510.54-1)

Or

[mrakotomandimby@universe ~]$  yay -S nvidia-beta nvidia-utils-beta
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:2]  
  nvidia-utils-beta:  (510.54-1 -> ) 510.60.02-1 
  nvidia-beta:  (510.54-1 -> ) 510.60.02-1  

rakotomandimby avatar Mar 25 '22 04:03 rakotomandimby

I'd like to take this and make a PR, if it's okey with you @Jguer

enkeyz avatar Apr 13 '22 08:04 enkeyz

@enkeyz if you're willing to give it a go we can get it merged :+1:

Jguer avatar Apr 20 '22 07:04 Jguer

@Jguer But yay already kinda doing this, no? I just noticed, it shows something like this when upgrading an AUR package with -Syu flag.

Also, with yay -Qs "package name", you can check the version number of the given package.

So, what's your thought?

enkeyz avatar Apr 22 '22 08:04 enkeyz

Yes when doing a system upgrade you already get the difference displayed (although even then only with VerbosePkgLists set in /etc/pacman.conf, IIRC). But not when explicitly upgrading a package, which is what this issue is about.

grandchild avatar Apr 23 '22 12:04 grandchild

Closing for inactivity

Jguer avatar Feb 21 '23 02:02 Jguer