You are not logged in.

#1 2014-04-29 09:01:13

lilorox
Member
Registered: 2011-10-16
Posts: 25

[SOLVED] Which packages are installed as dependencies when upgrading?

Hello,

When upgrading, I'd like to know which packages are upgraded and which ones are installed as new dependencies.

How can I do that?

The problem for me here is that I'd like to know which package is triggering an install of mariadb (which I don't need nor want).

Thanks in advance!

Last edited by lilorox (2014-04-30 07:14:03)

Offline

#2 2014-04-29 10:14:23

mpan
Member
Registered: 2012-08-01
Posts: 1,591
Website

Re: [SOLVED] Which packages are installed as dependencies when upgrading?

This will warn you about which package can't be installed because of mariadb not being installed

pacman --your_usual_options --ignore mariadb

Alternatively you can install and then attempt to remove mariadb with all things that depend on it:

pacman -Rc mariadb

This will show you what depends on mariadb and you can remove it.

After install you can also just query database with the command below and look what depends on it:

pacman -Qi mariadb

Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2014-04-29 11:06:10

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

Re: [SOLVED] Which packages are installed as dependencies when upgrading?

Depending how many packages are being updated, you could also just run `pacman -Si` on each one and check the "Depends On:" line.


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

Offline

#4 2014-04-29 11:29:57

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Which packages are installed as dependencies when upgrading?

Or run `pacman -Sii mariadb` and check the 'Required By' line (only a handful of packages).

Offline

#5 2014-04-29 12:18:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Which packages are installed as dependencies when upgrading?

mpan wrote:

After install you can also just query database with the command below and look what depends on it:

pacman -Qi mariadb

I think this is the easiest way :-)

One of the benefits of updating your system often is that every time just a handful of packages change, so it's easy to track down such issues.

for i in $(checkupdates); do expac "%n - %E" -S $i; done | grep mariadb

may help.

https://www.archlinux.org/packages/extr … 4/mariadb/ is required only by 4 packages from the official repos:

$ pactree -srl -d1 mariadb
mariadb
akonadi
amarok
cacti
vtk

akonadi, amarok, cacti and vtk. There are many more packages that optionally depend on mariadb or require it as a makedependency + maybe you're using some unofficial repos.

Last edited by karol (2014-04-29 12:22:05)

Offline

#6 2014-04-29 13:11:44

lilorox
Member
Registered: 2011-10-16
Posts: 25

Re: [SOLVED] Which packages are installed as dependencies when upgrading?

mpan wrote:

This will warn you about which package can't be installed because of mariadb not being installed

pacman --your_usual_options --ignore mariadb

Exactly what I needed wink
This way I get the entire dependency tree so I know I can blame nepomuk-core.

I knew the mariadb dependency came from KDE (baloo precisely) but I had no idea which package needed it.

$ sudo pacman -Su --ignore mariadb --ignore mariadb-clients
:: Starting full system upgrade...
:: Replace shared-color-profiles with extra/colord? [Y/n] 
resolving dependencies...
warning: ignoring package mariadb-5.5.36-1
warning: ignoring package mariadb-clients-5.5.36-1
warning: cannot resolve "mariadb-clients", a dependency of "percona-server"
warning: cannot resolve "mariadb", a dependency of "akonadi"
warning: cannot resolve "akonadi", a dependency of "kdepimlibs"
warning: cannot resolve "kdepimlibs", a dependency of "baloo"
warning: cannot resolve "baloo", a dependency of "nepomuk-core"
:: The following package cannot be upgraded due to unresolvable dependencies:
      nepomuk-core
:: Do you want to skip the above package for this upgrade? [y/N]

Offline

#7 2014-04-30 07:14:18

lilorox
Member
Registered: 2011-10-16
Posts: 25

Re: [SOLVED] Which packages are installed as dependencies when upgrading?

Marking as solved, thanks everyone!

Offline

Board footer

Powered by FluxBB