You are not logged in.

#1 2022-06-28 17:34:12

dalu
Member
Registered: 2014-04-16
Posts: 105

yay mark package as upgraded

trying to upgrade packages with yay, idk what your support or not, I'll ask anyway.

aur/flutter                       3.0.1-1           -> 3.0.3-1

I did flutter doctor and flutter upgrade and the result is now 3.0.3 is installed

However running yay 3.0.1-1 is still installed.
So I need a way to mark a package with a specific version as already installed.
How?

Offline

#2 2022-06-28 17:49:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: yay mark package as upgraded

dalu wrote:

I did flutter doctor and flutter upgrade and the result is now 3.0.3 is installed

I'm not sure what any of that means.  Please post the complete commands and output.  But I gather you did some manual update of flutter, and now flutter itself is reporting the 3.03 version, is that right?  Did you run this manual update as root?  You shouldn't!

dalu wrote:

However running yay 3.0.1-1 is still installed.

That means only a 3.0.1-1 package was installed.  There is no way for your package manager to track what you do manually.  This is one of several reasons why you should not install software in these ways: use your package manager properly.

dalu wrote:

So I need a way to mark a package with a specific version as already installed.

You need to upgrade / install the package.  Use makepkg and pacman to do this and stop using Yay until you understand how package management works on your system.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-06-28 17:53:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: yay mark package as upgraded

This is not a System Administration topic.
As this seems focused on yay, moving to AUR Issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2022-07-04 08:57:18

dalu
Member
Registered: 2014-04-16
Posts: 105

Re: yay mark package as upgraded

It means flutter was upgraded outside of AUR and now I need a way to mark a different version as installed.

But I think it's better to just remove flutter, it's currently marked out of date, and a manual "flutter upgrade" is quicker than waiting for the package to be in sync with the current update.

So I have another question:

Instead of marking a higher version package as installed, is it possible to mark a package as uninstalled without actually uninstalling any files?
pacman -R --dbonly is the answer to that

Last edited by dalu (2022-07-04 09:00:23)

Offline

#5 2022-07-04 09:41:09

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,840

Re: yay mark package as upgraded

Your post #4 is a recipe for disaster / making a mess of your system.

Use pacman to manage flutter on your system (best solution)  or manage it manually yourself outside of pacman .
Don't mix those 2 methods.

Incase aur maintainers are slower then you'd like with updating the flutter package, you can try updating the flutter pkgbuild to latest version yourself.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB