You are not logged in.

#1 2019-03-18 13:06:24

samip537
Member
From: Finland
Registered: 2019-03-18
Posts: 5
Website

Unable to uninstall mariadb

Hello there,

When I try to remove mariadb with:

sudo pacman -Rns mariadb

Output:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: akonadi: removing mariadb breaks dependency 'mariadb'

Ideas how can I purge it from my system?

Offline

#2 2019-03-18 13:12:53

ayekat
Member
Registered: 2011-01-17
Posts: 1,632

Re: Unable to uninstall mariadb

This means that akonadi depends on mariadb, and if you remove mariadb, you'd break akonadi's dependency, hence pacman won't continue.

What are you trying to do, though?


pkgshackscfgblag

Offline

#3 2019-03-18 13:17:22

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Unable to uninstall mariadb

You should read the pacman wiki regarding uninstalling package with dependencies. akonadi depends on mariadb so you are getting this message.
You can try pacman -Rsc or pacman -Rdd but heed the warning at the wiki.

Offline

#4 2019-03-18 13:34:51

samip537
Member
From: Finland
Registered: 2019-03-18
Posts: 5
Website

Re: Unable to uninstall mariadb

ayekat wrote:

This means that akonadi depends on mariadb, and if you remove mariadb, you'd break akonadi's dependency, hence pacman won't continue.

What are you trying to do, though?


I'm trying to purge the MySQL server from my system as if installed though AUR at least, the config does not work. hmm

Last edited by samip537 (2019-03-18 13:36:44)

Offline

#5 2019-03-18 13:39:25

ayekat
Member
Registered: 2011-01-17
Posts: 1,632

Re: Unable to uninstall mariadb

samip537 wrote:

I have no idea where that came from..

Look at its reverse dependencies (i.e. what's listed in the `Required By:` line for that package). If you don't remember installing it explicitly, it was probably pulled in as a dependency by another package you installed.

You could also pass options as indicated by d_fajardo to remove reverse dependencies along with your package, but you should be very careful with that. Better check the reverse dependencies first (in general, this already tells you a lot about why a package was installed, at least in most cases).

--edit Ah wait, yeah, what Trilby wrote below. Be careful not to just randomly type package names when maintaining your system; that's one of the recipes for disaster.

Last edited by ayekat (2019-03-18 13:43:20)


pkgshackscfgblag

Offline

#6 2019-03-18 13:39:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Unable to uninstall mariadb

samip537 wrote:

I'm trying to purge the MySQL server from my system as if installed though AUR at least, the config does not work. hmm

WTF?!

So you are trying to remove mysql which you installed from the AUR, but instead you tell pacman to remove mariadb?  If you want to remove the AUR package you installed, tell pacman to remove that package.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2019-03-19 10:57:54

samip537
Member
From: Finland
Registered: 2019-03-18
Posts: 5
Website

Re: Unable to uninstall mariadb

Trilby wrote:
samip537 wrote:

I'm trying to purge the MySQL server from my system as if installed though AUR at least, the config does not work. hmm

WTF?!

So you are trying to remove mysql which you installed from the AUR, but instead you tell pacman to remove mariadb?  If you want to remove the AUR package you installed, tell pacman to remove that package.

MariaDB and MySQL are usually pretty much the same thing although, mariadb has dependencies with my Desktop environment which means I shouldn't uninstall it.

Last edited by samip537 (2019-03-19 10:58:32)

Offline

#8 2019-03-19 11:51:13

a821
Member
Registered: 2012-10-31
Posts: 389

Re: Unable to uninstall mariadb

umm, wait! mariadb and mysql are different packages, and mysql from AUR conflicts with mariadb from extra, so you cannot have them installed at the same time, right!?

samip537 wrote:

...mariadb has dependencies with my Desktop environment which means I shouldn't uninstall it.

then what is the purpose of this thread? I am lost...

Edit: word

Last edited by a821 (2019-03-19 11:52:02)

Offline

#9 2019-03-19 12:35:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Unable to uninstall mariadb

samip537 wrote:

MariaDB and MySQL are usually pretty much the same thing

No, they are completely different things.  Period.  One is a package in [extra] the other could be any one of several packages in the AUR.  You told pacman to remove the package mariadb when your stated purpose was to remove some other package.

Pacman, like pretty much every other command you could use on a computer, will do precisely what you tell it to.  It will not read your mind and assess what things you think are "pretty much the same" in order to infer your actual intent.

But in any case, nothing in this thread makes much sense at all now.  Please post your full pacman.log (in code tags, or as a link to a file sharing site.)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2019-03-19 13:25:07

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Unable to uninstall mariadb

Moving to Newbie Corner for now. Looking at TGN.

Offline

Board footer

Powered by FluxBB