You are not logged in.

#1 2017-11-05 18:08:42

mgran
Member
Registered: 2017-11-05
Posts: 2

[Solved] Figuring out which package installed a dependency

I recently removed a package which left a number of unneeded dependencies left on my system. I know that I can list unneeded packages using

pacman -Qqdt

but I do not know which ones depended on the package I removed. Is there some way of retrieving this information using pacman?

Last edited by mgran (2017-11-05 20:07:22)

Offline

#2 2017-11-05 18:27:30

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

Re: [Solved] Figuring out which package installed a dependency

Check your pacman.log and see which packages were installed at the same time as the package. If the package is in a binary repository, you can see which packages it depends on with 'pacman -Si <package>'. If it is in the AUR, you can check the dependencies on the web interface. Some AUR helpers can also show you this information. e.g. 'cower -i <aur package>'


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

#3 2017-11-05 19:00:15

mgran
Member
Registered: 2017-11-05
Posts: 2

Re: [Solved] Figuring out which package installed a dependency

Thank you! 'pacman -Si <package>' was what I was looking for, I was too focused on the query options. Reading pacman.log was also useful.

Offline

#4 2017-11-05 19:26:05

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

Re: [Solved] Figuring out which package installed a dependency

Great! Please remember to mark your thread as solved.

https://wiki.archlinux.org/index.php/Co … ow_to_post


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

#5 2017-11-06 20:29:19

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] Figuring out which package installed a dependency

WorMzy wrote:

Check your pacman.log and see which packages were installed at the same time as the package. If the package is in a binary repository, you can see which packages it depends on with 'pacman -Si <package>'. If it is in the AUR, you can check the dependencies on the web interface. Some AUR helpers can also show you this information. e.g. 'cower -i <aur package>'

If it is in the AUR, and you've previously built it, I would hope you also have the cached package file available. In which case you can also use

pacman -Qip /path/to/foo-1.0-1-any.pkg.tar.xz

Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB