You are not logged in.

#1 2025-04-09 16:20:32

jebez
Member
From: France
Registered: 2025-01-15
Posts: 113

Shortcut to upgrade Arch Linux

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)

Offline

#2 2025-04-09 18:05:53

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,308
Website

Re: Shortcut to upgrade Arch Linux

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

#3 2025-04-09 18:16:11

jebez
Member
From: France
Registered: 2025-01-15
Posts: 113

Re: Shortcut to upgrade Arch Linux

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)

Offline

Board footer

Powered by FluxBB