You are not logged in.

#1 2016-02-17 11:01:47

CarbonFixer
Member
Registered: 2013-10-19
Posts: 20

How to search for AUR packages that depend on a specific package?

I tried using package-query:

package-query -As --qdepends webkit2gtk

But it only outputs AUR packages that have webkit2gtk in their description, not in their dependencies. What is the correct way to formulate the query?
(specifically for that command I expected midori-granite-bzr to be in the output but it isn't)

Last edited by CarbonFixer (2016-02-17 11:04:10)

Offline

#2 2016-02-17 11:40:08

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: How to search for AUR packages that depend on a specific package?

Unfortunately this would require accessing all aur package infos and filtering all the entries. Not exactly server friendly.
https://wiki.archlinux.org/index.php/AurJson

Offline

#3 2016-02-17 14:44:47

CarbonFixer
Member
Registered: 2013-10-19
Posts: 20

Re: How to search for AUR packages that depend on a specific package?

Okay. Thanks for the info.

Offline

#4 2016-02-17 14:49:48

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

Re: How to search for AUR packages that depend on a specific package?

I can't think of any use case for which you'd want to check all aur packages.  I can see many reasons why you may want to do this check for your locally installed packages (e.g. AUR packages you have installed) - and this can simply be done with pacman.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2016-02-17 17:24:41

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: How to search for AUR packages that depend on a specific package?

I can come up with a bunch. I do this all the time for official repo packages on the package page.

Offline

#6 2016-02-17 20:19:42

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

Re: How to search for AUR packages that depend on a specific package?

Offline

#7 2016-02-18 08:12:00

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: How to search for AUR packages that depend on a specific package?

Or don't. It scrapes the AUR (server load) and I don't see it providing the information.

EDIT: Okay, this is getting ridiculous. Go to the AUR page, there is a "required by" section. If this is not enough and you need it automated, go to the bug tracker and open a request for aurweb to include this information in the json interface.

Last edited by Awebb (2016-02-18 08:16:01)

Offline

#8 2016-02-18 08:45:40

Ziusudra
Member
Registered: 2014-04-19
Posts: 120

Re: How to search for AUR packages that depend on a specific package?

The 'required by' section only works if the package is in AUR. The package the OP was asking about is only in a official repository and thus only shows other official packages.

Offline

#9 2016-02-18 10:19:27

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: How to search for AUR packages that depend on a specific package?

I think it's time to post on themailing list and ask a TU for help.

Offline

#10 2016-02-18 11:11:02

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: How to search for AUR packages that depend on a specific package?

CarbonFixer> What are you trying to achieve here? Why do you need such request?

Offline

#11 2016-02-18 12:36:19

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: How to search for AUR packages that depend on a specific package?

As an aside, from my inquiries I've seen little objections from stressing the AUR RPC ... e.g. cower does it as well.

Either way, I agree this is an XY problem.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#12 2016-02-18 20:26:32

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

Re: How to search for AUR packages that depend on a specific package?

Awebb wrote:

Or don't. It scrapes the AUR (server load) and I don't see it providing the information.

Xyne posted an alternative in the comments on that AUR page: http://xyne.archlinux.ca/projects/python3-aur/

Offline

#13 2023-11-01 01:21:45

Ashark
Member
Registered: 2017-06-01
Posts: 31

Re: How to search for AUR packages that depend on a specific package?

For example, this can be useful to search for unexistent packages. Some aur packages have "red" dependencies - they are not present in the AUR. And you may want to search all packages that require that package.
Another example - after you renamed a package in the aur, you want to check if some packages still depend on the old name (that become unexistent, page is 404, so you cannot see "Required by" field in the web page) to notify other packages maintainers.

This is possible with https://wiki.archlinux.org/title/Aurweb_RPC_interface.

For example, kde-servicemenus-encfs was renamed to kf5-servicemenus-encfs. The check can be done with the following urls:

https://aur.archlinux.org/rpc/v5/search/kde-servicemenus-encfs?by=depends
https://aur.archlinux.org/rpc/v5/search/kde-servicemenus-encfs?by=optdepends
https://aur.archlinux.org/rpc/v5/search/kde-servicemenus-encfs?by=makedepends
https://aur.archlinux.org/rpc/v5/search/kde-servicemenus-encfs?by=checkdepends

--

I know this is an old post, but still it is shown in search, so I added info that was not there.
I do not see a sense in the rule "do not necrobump".

Offline

#14 2023-11-01 03:18:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: How to search for AUR packages that depend on a specific package?

The problems with 'necrobump' are multifaceted. 
First off, the original poster has not been on the forums for four years.  They probably don't care anymore.
Second, although not applicable in this case, the Linux ecosystem changes fast and years later, the baseline will move so far that we are comparing apples to oranges.

Closing this old thread


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB