You are not logged in.

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

jebez
Member
From: Alpes mountains, France
Registered: 2025-01-15
Posts: 180

Shortcut to upgrade Arch Linux KDE

Upgrade Arch Linux KDE by a shell script, by a simple click!

The RAM version https://wiki.archlinux.org/title/Tmpfs#Usage :

/etc/pacman.conf

[options]
...
CacheDir = /tmp/pkg

Create an empty or .sh file e.g. in /home/username/Desktop within:

#!/bin/bash
cd
konsole -e bash -c 'mkdir /tmp/pkg
sudo pacman -Syu
sudo rm -r /tmp/pkg
bash'

Info: the 5th line is to remove the downloaded package(s).

Or the original version:

Create an empty or .sh file e.g. in /home/username/Desktop within:

#!/bin/bash
cd
konsole -e bash -c 'sudo pacman -Syu
sudo rm /var/cache/pacman/pkg/*
bash'

Info: the 4th line is to remove the downloaded package(s).

Right click the file, Properties, Permissions, check Execute
or

chmod +x /a_path/the_file

Option:

sudo pacman -Syu --noconfirm 

but I prefer to look carefully before upgrade.

Last edited by jebez (Today 00:57:22)

Offline

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

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

Re: Shortcut to upgrade Arch Linux KDE

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: Alpes mountains, France
Registered: 2025-01-15
Posts: 180

Re: Shortcut to upgrade Arch Linux KDE

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