Terminal can't find all updates

One-liner I use to update packages and flatpaks with GNOME Terminal; it’s part of a command I bind to a keyboard shortcut and has extra stuff but it’s mainly 3 commands:

gnome-terminal --command "sudo sh -c 'dnf clean 'all' && dnf distro-sync -y && sync && flatpak update && sync && read -n '1' -s -r -p 'Done' && sleep '2''"

I do a dnf clean all to make sure there’s no repo data, and the distro-sync gets fresh repo data and updates (or rarely downgrades) packages based on whatever the enabled repos has at that moment; no ambiguity :stuck_out_tongue:

1 Like