You are not logged in.
I am trying to install yaourt from the AUR. Yaourt required that package-query be installed, and this package further required another, etc.
In short, package-query required yajl, which I downloaded from the AUR. This package does not actually have a PKGBUILD, but rather un-tars into a file that you need to merge with /usr. After doing so I tried to make the package-query package but was still met with a dependency discrepancy. Luckily, yajl was available in the official repositories (same version). After using pacman to install it everything went fine and package-query built and installed fine.
When I went to build yaourt, using makepkg, it failed and informed that I was missing a dependency, package-query.
So, in short, is there a registry or something that keeps track of these installed packages? I imagine that when running makepkg there is a query against installed packages to see if you meet the dependency requirements. What can I do to build yaourt in this situation?
Last edited by sherrellbc (2014-06-08 18:37:19)
Offline
In short, package-query required yajl, which I downloaded from the AUR. This package does not actually have a PKGBUILD, but rather un-tars into a file that you need to merge with /usr. After doing so I tried to make the package-query package but was still met with a dependency discrepancy.
You are doing it wrong. Please read the aur page on the wiki. (and click the Tarball instead of source link next time)
Also yajl is in extra, not aur.
Sidenote: I strongly suggest to not use yaourt, specially until you know how to use aur and makepkg correctly.
Last edited by Mr.Elendig (2014-06-08 18:57:18)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
So, in short, is there a registry or something that keeps track of these installed packages? I imagine that when running makepkg there is a query against installed packages to see if you meet the dependency requirements.
Although it pains me that one would call it a registry ![]()
To see your installed packages, just do a pacman -Qs
You have hit upon one of the big issues with makepkg. You have to dig through the dependencies. Yes, an AUR helper can solve many of these issues for you. My least favorite is yaourt. Could I persuade you to consider cower or (my favorite) packer ?
Last edited by ewaller (2014-06-08 19:02:15)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
You have hit upon one of the big issues with makepkg. You have to dig through the dependencies. Yes, an AUR helper can solve many of these issues for you. My least favorite is yaourt. Could I persuade you to consider cower or (my favorite) packer ?
I think you should first play around and get a good grasp of how the AUR works. AUR Helpers are nice (I use cower/pacaur currently), but they hide things from you. So if you are not already familiar with things, this can lead to big issues when things go south since you will then have no idea how to dig yourself out of the problem.
Offline
You are doing it wrong. Please read the aur page on the wiki. (and click the Tarball instead of source link next time)
Then perhaps I made a mistake and downloaded the source by accident.
You have hit upon one of the big issues with makepkg. You have to dig through the dependencies. Yes, an AUR helper can solve many of these issues for you. My least favorite is yaourt. Could I persuade you to consider cower or (my favorite) packer ?
Absolutely! Yaourt was just the first one I stumbled on with the fewest number of dependencies.
Last edited by sherrellbc (2014-06-08 19:09:58)
Offline
I think you should first play around and get a good grasp of how the AUR works. AUR Helpers are nice (I use cower/pacaur currently), but they hide things from you. So if you are not already familiar with things, this can lead to big issues when things go south since you will then have no idea how to dig yourself out of the problem.
The only reason I considered using an AUR Helper was because each time I downloaded a package and tried to make them I would be missing dependencies. Then those dependencies would require dependencies and it seemed to exponentially increase from there.
But none of this is really answering the question though. When I make a package from the AUR, the dependency requirement when trying to install another package is never met. That is, if package A requires B and I then installed B (from the AUR), when I try to make A again it still informs me that B was never installed.
Last edited by sherrellbc (2014-06-08 19:22:05)
Offline
cower doesn't have any dependencies that are not in the official repositories. It doesn't build packages automatically, but it will download the source tarballs and unpack them for you. It can also handle dependencies with the official repos and the AUR.
So for example, if you were to do cower -dd yaourt it would tell you that gettext, diffutils, and pacman are in the official repos. Then it would download the source tarball for package-query and resolve all of its dependencies. And it would download the yauort source tarball and unpack that for you. So it gives you an idea of what depends on what and in which order you should build and install.
But you really just shouldn't use yaourt. Many of the upgrade issues that arise on these forums stem from people using yaourt (particularly those who blindly run yaourt -Syua). The pacaur I mentioned above is a bash script that wraps cower. So it too should be able to be built and installed without having to resolve other AUR dependencies.
Edit:
But none of this is really answering the question though. When I make a package from the AUR, the dependency requirement when trying to install another package is never met. That is, if package A requires B and I then installed B (from the AUR), when I try to make A again it still informs me that B was never installed.
If this is the case, then you really don't know how to properly use the AUR, and thus should be reading up on that rather than trying to work around it with an AUR helper.
Last edited by WonderWoofy (2014-06-08 19:18:47)
Offline
see the makepkg man page
makepkg -sWill download and install all dependencies that are in the offical repositories which would work for package-query.
Then install the package created by makepkg with
pacman -UThen makepkg yaourt should succeed as all its dependencies are then installed
edit: expanded for clarification
Last edited by loqs (2014-06-08 19:29:12)
Offline
If this is the case, then you really don't know how to properly use the AUR, and thus should be reading up on that rather than trying to work around it with an AUR helper.
From the AUR wiki page it steps you through how to install a package:
1: Acquire the tarball which contains the PKGBUILD and possibly other required files, like systemd-units and patches (but often not the actual code).
2: Extract the tarball (preferably in a folder set aside just for builds from the AUR) with tar -xvf foo.tar.gz.
3: Run makepkg in the directory where the files are saved (makepkg -s will automatically resolve dependencies with pacman). This will download the code, compile it and pack it.
4: Look for a README file in src/, as it might contain information needed later on.
5: Install the resulting package with pacman: pacman -U pacman -U /path/to/pkg.tar.xzThe crucial fifth step! Thanks all. I jumped way ahead of myself here and skipped over this last part.
Offline
You can also have makepkg call pacman -U upon completion of the package creation. See the makepkg man page (or --help).
Offline