You are not logged in.

#1 2013-11-23 18:13:55

Lee99
Member
Registered: 2013-11-23
Posts: 5

Problem with installing AUR pkg [SOLVED]

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

#2 2013-11-23 18:20:35

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

Re: Problem with installing AUR pkg [SOLVED]

Please re-read the wiki and pay attention this time :-)

Offline

#3 2013-11-23 18:21:17

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: Problem with installing AUR pkg [SOLVED]

Is your system up to date ?
if not , update it using

sudo pacman -Syu

Then can you try building the package again and give us the output.

makepkg -s

Offline

#4 2013-11-23 18:22:35

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

Re: Problem with installing AUR pkg [SOLVED]

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

#5 2013-11-23 18:23:39

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Problem with installing AUR pkg [SOLVED]

karol wrote:

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

#6 2013-11-23 18:29:11

Muflone
Package Maintainer (PM)
From: Italy
Registered: 2013-10-08
Posts: 151
Website

Re: Problem with installing AUR pkg [SOLVED]

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

#7 2013-11-23 21:51:11

Lee99
Member
Registered: 2013-11-23
Posts: 5

Re: Problem with installing AUR pkg [SOLVED]

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

#8 2013-11-23 21:56:55

Lee99
Member
Registered: 2013-11-23
Posts: 5

Re: Problem with installing AUR pkg [SOLVED]

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

#9 2013-11-23 21:57:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Problem with installing AUR pkg [SOLVED]

Please read the docs... carefully.

Offline

#10 2013-11-23 22:03:16

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

Re: Problem with installing AUR pkg [SOLVED]

Also, be careful what you type.

Offline

#11 2013-11-23 22:16:32

Lee99
Member
Registered: 2013-11-23
Posts: 5

Re: Problem with installing AUR pkg [SOLVED]

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

#12 2013-11-23 22:23:02

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Problem with installing AUR pkg [SOLVED]

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

#13 2013-11-23 22:24:28

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

Re: Problem with installing AUR pkg [SOLVED]

When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It 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

#14 2013-11-23 22:38:56

Lee99
Member
Registered: 2013-11-23
Posts: 5

Re: Problem with installing AUR pkg [SOLVED]

Thank you Skottish, karol and all you took time to respond. Very much appreciated!

Offline

Board footer

Powered by FluxBB