You are not logged in.

#1 2016-12-07 23:49:58

Burning Smile
Member
Registered: 2016-09-05
Posts: 20

[Solved] Flag to auto remove a conflicting package on install?

When installing termite as part of a scripted install and setup I am working on for VM's I run into a conflict problem. (This happens on every fresh install I have tested) I need to be able to script it so that it auto say yes to remove the conflicting package. I have done this safely manually on multiple occasions with no problems. Is there a way I can force yes to all questions asked by pacman for this install?

Log output from sudo pacman -S termite --noconfirm
resolving dependencies...
looking for conflicting packages...
:: vte3-ng and vte3 are in conflict. Remove vte3? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: vte3-ng and vte3 are in conflict

Removing the package before hand will break a dependency but removing it during the termite install process is fine.

Last edited by Burning Smile (2016-12-08 16:05:39)

Offline

#2 2016-12-07 23:57:54

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Flag to auto remove a conflicting package on install?

The --noconfirm option automatically accepts the recommended option, which in this case is no (notice the capital N).

yes | sudo pacman -S termite

Last edited by Slithery (2016-12-07 23:59:31)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2016-12-08 00:05:41

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [Solved] Flag to auto remove a conflicting package on install?

Why are you installing vte3 in the first place if you're going to replace it later on?

There is no flag to tell pacman to automatically remove a conflicting package. Piping yes to pacman is like using a sledgehammer to crack a nut; It would work, but is by no means recommended, I certainly wouldn't use it in a script.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2016-12-08 02:59:13

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [Solved] Flag to auto remove a conflicting package on install?

pacinstall termite --remove vte3

Offline

Board footer

Powered by FluxBB