You are not logged in.
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
This will warn you about which package can't be installed because of mariadb not being installed
pacman --your_usual_options --ignore mariadbAlternatively you can install and then attempt to remove mariadb with all things that depend on it:
pacman -Rc mariadbThis 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 mariadbPaperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
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
Or run `pacman -Sii mariadb` and check the 'Required By' line (only a handful of packages).
Offline
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 mariadbmay 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
vtkakonadi, 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
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 ![]()
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
Marking as solved, thanks everyone!
Offline