You are not logged in.

#1 2023-10-02 08:13:04

B7H7D7
Member
Registered: 2018-01-19
Posts: 30

[SOLVED] How to force "Replace" automatically

Hi,

When doing today an upgrade (pacman -Syu) I get the following :

...
:: Starting full system upgrade...
:: Replace attica with extra/attica5? [Y/n] Y
:: Replace baloo with extra/baloo5? [Y/n] Y
:: Replace bluez-qt with extra/bluez-qt5? [Y/n] Y
:: Replace frameworkintegration with extra/frameworkintegration5? [Y/n] Y
:: Replace kactivities with extra/kactivities5? [Y/n] Y
...

I stopped there (CTL-c), because this is tedious !

Then, I do not know :
1) if this is a good idea to permit pacman to replace all these packages,
2) if a pacman flag exists to answer Y or N automatically.

Please, what to do ?
P.

Last edited by B7H7D7 (2023-10-02 11:13:14)

Offline

#2 2023-10-02 09:53:23

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,002

Re: [SOLVED] How to force "Replace" automatically

KDE is close to releasing new versions of their components based on QT 6 .
During the transition period from 5 to 6 (could be longer then a year) we'll have a mix of 5 and 6 .

The convention on archlinux for such transitions is to give the 'older' version a suffix and let the version without a suffix become the latest version.

All kde 5 components in the repos are currently renamed to prepare for the transition . KDE is highly modular, so there could be dozens of components installed on your system. (mine had around 30 and that's low for KDE).


A1 : This massive rename is necessary and those questions will block every -Syu until you accept the replacement or remove the package that need to be replaced.


A2: look at the man page for pacman .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2023-10-02 09:55:56

Silver Saucepan
Member
Registered: 2023-08-01
Posts: 4

Re: [SOLVED] How to force "Replace" automatically

I answered "Yes" to all the replacements (there were 65 for me), and my system still works fine after a reboot.

You don't need to actually type "Y" after each prompt, the capital Y indicates it's the default so you can just press Enter each time

Last edited by Silver Saucepan (2023-10-02 09:57:43)

Offline

#4 2023-10-02 10:37:15

B7H7D7
Member
Registered: 2018-01-19
Posts: 30

Re: [SOLVED] How to force "Replace" automatically

Thanks to both of you.
P.

Offline

#5 2023-10-02 11:23:19

Awebb
Member
Registered: 2010-05-06
Posts: 6,314

Re: [SOLVED] How to force "Replace" automatically

And yet pacman has an OPTION that controls whether you need to confirm or not and it's right in the manpage.

Offline

#6 2023-10-02 13:18:38

Beesh
Member
Registered: 2022-01-09
Posts: 37

Re: [SOLVED] How to force "Replace" automatically

Lone_Wolf wrote:

KDE is close to releasing new versions of their components based on QT 6 .
During the transition period from 5 to 6 (could be longer then a year) we'll have a mix of 5 and 6 .

The convention on archlinux for such transitions is to give the 'older' version a suffix and let the version without a suffix become the latest version.

All kde 5 components in the repos are currently renamed to prepare for the transition . KDE is highly modular, so there could be dozens of components installed on your system. (mine had around 30 and that's low for KDE).


A1 : This massive rename is necessary and those questions will block every -Syu until you accept the replacement or remove the package that need to be replaced.


A2: look at the man page for pacman .

thank you for the eloquent explaination

Offline

#7 2023-10-26 10:32:14

atomy
Member
Registered: 2019-08-14
Posts: 5

Re: [SOLVED] How to force "Replace" automatically

--noconfirm option is what we are looking for my brothers (be aware of consequences)

e.g.

pacman -Syu --noconfirm

Offline

#8 2023-10-26 14:21:57

B7H7D7
Member
Registered: 2018-01-19
Posts: 30

Re: [SOLVED] How to force "Replace" automatically

Possibly a source of errors.
But thanks.
P.

Offline

Board footer

Powered by FluxBB