Topgrade ohne Bestätigung

Hallo
Ich habe grade Topgrade entdeckt. Gefält mir. Ich frage mich ob es eine Option wie:

  • pamac upgrade --no-confirm
  • yay -Syu --noconfirm

gibt. Ich habe in den Parametern gesucht, eine Alternative zu noconfirm wie bei yay gibt es anscheinend nicht, ich habe jedenfalls nichts gefunden.

Gibt es eine Möglichkeit zu dem was ich möchte? Möglicherweise einen Eintrag in der config Datei?

Ich bin mir nicht sicher, ob die Verwendung von --noconfirm unter Archlinux eine gute Idee ist, da der Benutzer manchmal entscheiden muss, ob er Ja oder Nein zu einer vorgeschlagenen Änderung wie dem Ersetzen eines Pakets oder ähnlichem sagt. Der --noconfirm setzt die Standardantwort voraus, ob sie nun ja oder nein lautet.
Entschuldigung, wenn die Übersetzung nicht präzise ist. Ich habe deepl.com benutzt.

Ja, das ist mir schon bewusst. Ich wollte nur wissen ob es möglich ist.
Yes, I am already aware of that. I just wanted to know if it was possible.

Kein Problem, ich übersetzte es auch, allerdings mit Imersive Translation
No problem, I translated it too, but with Imersive Translation

1 Like

It looks that it is maybe possible. It has a config file:

https://github.com/topgrade-rs/topgrade?tab=readme-ov-file#configuration-path

There is also a config example you can look at:

Ich habe mir die config Datei angesehen // I looked at the config file:
topgrade --edit-config

Vielleicht das hier auskommentieren // Maybe comment this out?

# Don't ask for confirmations (no default value)
# assume_yes = true

I don’t have topgrade installed so I can’t look at the details. I looked a bit at the config example I posted before. I thought maybe this section is relevant if you want to pass some options to a command. But I can’t try so maybe.

[linux]
# Arch Package Manager to use.
# Allowed values:
#   autodetect, aura, garuda_update, pacman, pamac, paru, pikaur, trizen, yay
# arch_package_manager = "pacman"

# Arguments to pass yay (or paru) when updating packages
# yay_arguments = "--nodevel"

Ich denke das ist für yay gültig. Wenn ich mit yay updaten will, und die Fragen, die dabei kommen, mit “yes” beantworten will, lautet der Befehl // II think this is valid for Yay. If I want to update with yay, and answer the questions that come up with “yes”, the command is:
yay -Syu --noconfirm oder einfach nur // or just yay --noconfirm

Nun gut, ich werde testen das was ich gefunden habe. Dann sehen wir weiter. Was kann schon passieren? // Well, I’ll test what I found. Then we’ll see. What can happen?
Danke dir // thank you.


EDIT
Ja, es funktioniert. Alter Zustand // Yes it works. Old condition:

# Don't ask for confirmations (no default value)
# assume_yes = true

Neuer Zustand // new condition:

# Don't ask for confirmations (no default value)
assume_yes = true
1 Like

Maybe I misunderstood what you asked for in your op.

Topgrade uses the package managers present on your system in the background. It detects which package managers are installed (such as apt, pacman, etc.) and then runs the appropriate commands to update packages with these tools.

It is not a replacement of your existing package managers but automates the process of running their update commands for you.

So if you want the package manager of your system pacman/yay be used with --noconfirm then that is what you need to specify in topgrade’s conf. This is at least how I understand it.

Danke für die Info. Durch Ihren Tip, die config Datei zu bearbeiten haben wir gemeinsam die Lösung gefunden.
Ich bin zufrieden, dadurch werden keine Bestätigungen beim ausführen von Topgrade verlangt, das Upgrade kann ohne Aufsicht durchlaufen. Bei großen Upgrades ist das sinnvoll, meine Meinung.


Thanks for the info. Through your tip to edit the config file, we have found the solution together.
I am satisfied, this means that no confirmations are required when running Topgrade, the upgrade can be done without supervision. This makes sense for major upgrades, my opinion.

1 Like