You are not logged in.

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

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

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 rm /var/cache/pacman/pkg/*
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 rm /var/cache/pacman/pkg/*

Right click the file, Actions, Run in Konsole.
Left click the file but no terminal!

Options:

paru -Syu --noconfirm

(but I prefer to look carefully before upgrade).

/etc/paru.conf

[options]
SkipReview

to skip Proceed to review https://github.com/Morganamilo/paru/iss … 1418917275 .

paru;sudo rm /var/cache/pacman/pkg/*;sudo rm -r /home/username/.cache/paru/clone/*

instead if you use the AUR.

Last edited by jebez (2025-10-03 15:38:36)

Offline

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

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,420
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: 165

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