You are not logged in.
Pages: 1
Upgrade Arch Linux by a simple click!
2 methods: .desktop or script.
.desktop :
Create a .desktop file (e.g. in /home/username/Desktop) within:
[Desktop Entry]
Exec=sudo pacman -Syu;sudo pacman -Scc<<<y
Icon=system-run
Name=Upgrade
Terminal=true
Type=Application
TerminalOptions=\s--noclose
The last line is an option, to not close the terminal when command exits.
Created on KDE by right click, Create New, Link to Application...
Script:
Create a .sh or a file without extension
chmod +x the_file
or right click the file, Properties, Permissions, Allow executing file as program
Within:
#! /usr/bin/sh
sudo pacman -Syu
sudo pacman -Scc<<<y
Right click the file, Actions, Run in Konsole.
Left click the file but no terminal!
sudo pacman -Syu --noconfirm
is possible (but I prefer to look carefully before upgrade).
sudo pacman -Scc<<<y
is to remove the downloaded packages without confirmation.
Last edited by jebez (2025-07-19 08:00:59)
Arch Linux KDE, my config https://bbs.archlinux.org/viewtopic.php … 5#p2221235
Offline
For "-Syu" you wouldn't need to invoke "yes", since there's "--noconfirm" for pacman.
However, on "-Scc" the behavior would be different, since it defaults to "N" on package removal.
Edit: This is a nice shortcut for people who use a DE and sudo.
Since I'm a Gnome lamer myself, I do most of this stuff via the "Arch Linux Update Indicator". :-)
Last edited by schard (2025-04-09 18:08:04)
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Thanks, I edited.
Interesting Arch Linux Updates Indicator, seems there isn't such thing on KDE...
Last edited by jebez (2025-04-09 18:25:06)
Arch Linux KDE, my config https://bbs.archlinux.org/viewtopic.php … 5#p2221235
Offline
Pages: 1