<< On Fedora 42 which is dnf/rpm based >>
I can update flatpaks with the “flatpak update” command but to update plasma-widgets/add-ons I’ve been using plasma-discover. But that requires me to go to the physical display since it’s a gui, so I’d like to have an option of updating plasma-addons from command line. Is there a command line command for updating plasma widgets?
You mean apt update && apt upgrade
?
It depends your distribution.
based on Ubuntu, Debian : as @dusoft wrote
based on arch : sudo pacman -Syu
I don’t think that there is a command line tool to update KDE Store themes and widgets. I may be wrong, for sure. I just haven’t found one.
Yes, that is correct.
After running your basic upgrade, you might have a go with topgrade
.
Normally, with bigger updates I do pacman -Syu
first and deal with any system issues, then I’ll run yay
to update AUR packages and flatpak update
… finally I run Topgrade once per month just to make sure nothing got left out.
It’s actually very important to include your details when you ask questions like this - instead of assuming that everyone can see your desktop and runs the same system…
I’ve updated the post 1 to state clearly I’m using Fedora 42 which doesn’t use apt. BTW, I clearly wrote I’m interested in updating the plasma addons, the rpm packages I do over command line with dnf5 and the flatpaks with ‘flatpak update’.
The point the question is I don’t always want to go down to the PC and run the Discover GUI to update/install plasma addons/widgets, I’d like to find some command line way.
As far as packages, I don’t use Discover to deal with the rpm packages I simply use the dnf5 command.
AFAIK there is no way to update these in bulk. But maybe somebody will point us to a solution.
I don’t run fedora so I cant say its the same but, wouldn’t you just have to install the addon’s via dnf or copper. In nix or arch some people pkg them and have them on the aur or nix pkg repo again not a lot of them are but yeah.
Well, yes, if those are part of some larger addon packages, then yes. But if you install them via GUI as displayed above, they are not installed as your distro packages as far as I understand (I also just checked by looking up in apt
whatever themes I have installed and they are not there).
E.g. the location is: ~/.local/share/plasma/look-and-feel/
Also see:
And ofc it does not matter which distro, it’s the KDE/Plasma thing.
Also if I search through the code, there is no real package update available:
Maybe something like package overwrite = update, but nothing in terms of updating kpackage
packages.
I’m not sure if dnf can update plasma widgets and addons. Usually I go into the “Enter Edit Mode” the KDE desktop menu, the use the “Add or Manage Widgets” tool. But that too is a GUI.
I don’t think it can? But as I said some widgets are in the AUR so maybe so maybe someone is maintaining some on copper.
There is more then the examples here but I don’t know about other desktops did find one on opensuse too. So your luck may vary.
Though for arch an nix you update with command line paru
or pacman -Syu
and nix after you add it to your config run nixos-rebuild switch
. So if someone is maintaining it it can be done.
You could always install them via source and write a script to keep them up to date but that would mean you have to build it every update.
nix
AUR
Opensuse
Never mind, it’s not a big deal. I’ll just use discover.
Also AUR, pacman, nix all have nothing to do with my distribution which is Fedora, I don’t understand why people keep answering my question referring to the wrong tools and distribution.
Probably they are skimming the title and content, as “plasma-addons” very much is similar to distro package names.
My point was for them to check coper which is the fedora aur equivalent. While giving examples to those who thought they could not be packaged
Still, this is not relevant to updating Plasma widgets and theme items as installed via System Settings, or even via Discover’s GUI. The items, also found in Discover’s Plasma Addons
section, come from the KDE Store, not any distro-specific packaging system.
I’ll leave it here since your not getting that most, host those addons/themes on a git repo. Then post them to the kde store which then some people add to a community distro repo with a build script or other from the git. For whatever reason. So no, there is no discover cli command but there are other ways (fedora copr? build from source?) that may allow you to install that same addon and update it via a cli.
I’ve never ever used a addon or theme directly from a git repo, so I’m not sure what you mean unless the “Enter Edit mode” → “Add or Manage Widgets” view does that under the covers. I’ve never gone to a git repo in a browser and downloaded a addon to install by hand.
So, basically I’m more interested in the built-in plasma widget handling in KDE.
UPDATE, I’ve looked around in Discover “Plasma Addons”, it seems I was under an false assumption that plasma’s are something you update locally like dnf would an rpm package. The Discover “Plasma Addons” section for each widget just has an install control. So apparently “updating” isn’t a thing, it goes out on the internet in real time, gets the widget and installs it. So to try that I went and installed “Shader wallpaper for Plasma 6”, found the new “Shader” menu item in “Desktop and Wallpaper” from installing that. I tried a few shaders, proved they work and returned to “Image” based wallpaper since the shader uses more CPU power than I’d like to use on a laptop
So I suppose if you run version X of the widget a while and version X+1 comes out it’s up to you to go into Discover, select Plasma Addons and get the widget again to apply the newer one. Update automation isn’t really a thing for addons from what I can see now so I was wrong to assume that.
I’m going to mark this solved