You are not logged in.
Pages: 1
I am trying to install a package I downloaded from the AUR. I made the package with makepkg and when I went to install using pacman -U, I get the following:
[root@arch package-query]# pacman -U package-query-1.2.tar.gz
loading packages...
error: missing package metadata in package-query-1.2.tar.gz
error: 'package-query-1.2.tar.gz': invalid or corrupted package
I thought I followed the directions in the Wiki but apparently I have missed something. Please assist. Thanks!
Last edited by Lee99 (2013-11-23 22:37:53)
Offline
Please re-read the wiki and pay attention this time :-)
Offline
Is your system up to date ?
if not , update it using
sudo pacman -SyuThen can you try building the package again and give us the output.
makepkg -sOffline
All he needs to do is follow the steps outlined in the wiki.
If you read the man page for makepkg, you will know that your can also build and install the package in one step, which can help.
Last edited by karol (2013-11-23 18:24:04)
Offline
Please re-read the wiki and pay attention this time :-)
Specifically this section: https://wiki.archlinux.org/index.php/AU … he_package
What is different about the command you are using and the command in the wiki?
Offline
Arch Linux packages has name-version-architecture.tar.xz naming, not that one that you are trying to install.
You seem that you tried to install a source package, not that one built with makepkg.
If you haven't any .tar.xz package then most probably your package compilation went wrong, read the previous messages.
Offline
I am trying to install yaourt and directs me to install package-query. To do so, I downloaded the tarball from the wiki website given: https://aur.archlinux.org/packages/package-query/ I then extracted the tarball to a temp directory. I then went to that directory and from there typed in makepkg -S which produced these files:
src; package-query-1.2.tar.gz; package-query-1.2-2.scr.tar.gz and PKGBUILD
The PKGBUILD file contains the following:
# Contributor: tuxce <tuxce.net@gmail.com>
pkgname=package-query
pkgver=1.2
pkgrel=2
pkgdesc="Query ALPM and AUR"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h')
url="http://gitweb.archlinux.fr/package-query.git/"
license=('GPL')
depends=('pacman>=4.1' 'pacman<4.2' curl 'yajl>=2.0')
source=(http://mir.archlinux.fr/~tuxce/releases/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('270f1743e8b78a99cb4cc99057aec091')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --localstatedir=/var --prefix=/usr --sysconfdir=/etc --with-aur-url=https://aur.archlinux.org
make
}
package ()
{
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
Obviously it did not produce any .tar.xz package so what did I do wrong? Thanks!
Offline
The wiki clearly states I need to install the package-query as a dependency first and then the yaourt package. I am hitting a lot of fouls on this one trying to get to first base. Any assistance is appreciated.
Offline
Please read the docs... carefully.
Offline
Also, be careful what you type.
Offline
Okay...got it to install. I remade the package from the tarball by using: makepkg -s
That created the *.pkg.tar.xz file I need to install using pacman -U
Now I will move on to installing yaourt. Thank you for all your responses!
Offline
Hi Lee99, Welcome to Arch.
I'd recommend that you get to know makepkg and pacman before you install any AUR helper. They can be helpful if you know what you're doing, but they can also wreak chaos, mayhem, insanity, and destruction if you don't!
Oh yeah, please mark this thread as [SOLVED] by editing your first post and prepending it to the title.
^^^
I defer to karol because he's less dramatic than I am... this time.
Last edited by skottish (2013-11-23 22:32:13)
Offline
When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like thisIt makes the code more readable and - in case of longer listings - more convenient to scroll through.
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
Thank you Skottish, karol and all you took time to respond. Very much appreciated!
Offline
Pages: 1