You are not logged in.

#1 2015-03-22 20:14:16

pallegro
Member
Registered: 2013-02-12
Posts: 7

Official packages "required by" search for AUR packages

I often want to see which aur packages depend on a given official package.
e.g. recently to see that qt5-webengine is being used by something (qupzilla-git),
but most often to see if I might later regret updating to a git version
because there are interesting packages that depend on released versions.
My current understanding is that to do this I would have to clone http://pkgbuild.com/git/aur-mirror.git/
and then grep -r pkgname.
Does anyone have a better way?

Offline

#2 2015-03-22 20:17:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Official packages "required by" search for AUR packages


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-22 20:25:01

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

Re: Official packages "required by" search for AUR packages

I'm confused.
How do you know anything will break if you swap foo for foo-git, unless there's a hard dependency on a particular version?
Why do you care about packages you're not using? If you install packages from the AUR, you can query them with pacman.

Offline

#4 2015-03-22 20:32:43

pallegro
Member
Registered: 2013-02-12
Posts: 7

Re: Official packages "required by" search for AUR packages

Ya, I should have mentioned that I looked at that and tried out python3-aur.
But I haven't figured out how to do anything I couldn't do already with an aur helper.
Any idea how aurjson can be used to find what aur packages depend on a system package?

Offline

#5 2015-03-22 20:40:16

pallegro
Member
Registered: 2013-02-12
Posts: 7

Re: Official packages "required by" search for AUR packages

If its not considered useful to anyone else, fair enough, I just find it comes up from time to time.
So how about the first example: some new library comes out (qt5-webengine) and a user is curious if anyone is using it.
You could look at the aur page for the qt5-webengine-git and see that nothing is using it, when in fact qupzilla-git is using qt5-webengine.

Offline

#6 2015-03-22 22:21:02

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

Re: Official packages "required by" search for AUR packages

AUR is pretty big.
http://pkgbuild.com/git/aur-mirror.git/ … ter.tar.xz is 120 MB but it decompresses into 1.2 GB on disk. I'd recommend using an efficient searching method unless you want to wait ... and wait ... and wait. And then you run out of memory ;P

AUR 4.0 is git-based, so maybe they'll include something like this. Ask on the ML, if you want.

AUR packages that depend on qt5-webengine:
j8-git
qupzilla-git
mist

The snapshot has 70k package directories, 15k more than the current AUR, so you get some false positives when grepping (i.e. packages that aren't available anymore).

Offline

#7 2015-03-22 23:07:44

pallegro
Member
Registered: 2013-02-12
Posts: 7

Re: Official packages "required by" search for AUR packages

1.2 GB, that's what I was afraid of.
Thank you for the info.
I'll look into what's happening with AUR 4.0.

Offline

#8 2015-03-22 23:24:48

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

Re: Official packages "required by" search for AUR packages

'du -sh aur-mirror-master' alone took almost two minutes on my system :-)
Maybe with a better CPU and an SSD this would be faster.

Offline

Board footer

Powered by FluxBB