You are not logged in.

#1 2008-09-18 18:24:06

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

I still don't understand what I'm supposed to do

So I want to install VirtualBox (PUEL), it the how to tells me to get it from AUR so I run "pacman -S virtualbox_bin" and I get this:

virtualbox_bin package not found, searching for group...
error: 'virtualbox_bin': not found in sync db

I made a topic a week or two ago and after about 10 replies I still had no idea what to do. I downloaded it directly from the VirtualBox website and all I got was a .run file and I have no idea what to do with it.

Offline

#2 2008-09-18 18:26:40

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: I still don't understand what I'm supposed to do

virtualbox_bin isn't in community. you need to search on http://aur.archlinux.org for virtualbox_bin and download tarball.

extract it and run makepkg -i


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2008-09-18 18:29:49

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: I still don't understand what I'm supposed to do

[root@JORDAN-CD3CDA3B jordanwb]# pacman -U virtualbox_bin.tar.gz
loading package data...
error: 'virtualbox_bin.tar.gz': cannot open package file

I can download it with "wget http://aur.archlinux.org/packages/virtualbox_bin/virtualbox_bin.tar.gz" though.

I run the pacman -U whatever:

[root@JORDAN-CD3CDA3B jordanwb]# pacman -U virtualbox_bin.tar.gz
loading package data...
error: missing package metadata in virtualbox_bin.tar.gz
error: 'virtualbox_bin.tar.gz': invalid or corrupted package

Last edited by jordanwb (2008-09-18 18:31:17)

Offline

#4 2008-09-18 18:53:17

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: I still don't understand what I'm supposed to do

Things from AUR aren't actual packages, just what you need to make your own package. Like wonder said extract it (tar xzvf), change to the directory it creates, than run makepkg -i. Assuming there aren't any errors it will give you a package that you install with pacman -U.

Offline

#5 2008-09-18 18:59:15

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: I still don't understand what I'm supposed to do

There we go. But why do I have to do it like that?

Offline

#6 2008-09-18 19:00:03

AD28
Member
Registered: 2008-09-16
Posts: 161

Re: I still don't understand what I'm supposed to do

Did you read the wiki pages suggested in the last thread you made about this?  AUR tarballs are not a pacman packages.  You need to build them via makepkg before you install them via pacman.

Here is another reference: makepkg/abs tutorial

Offline

#7 2008-09-18 19:03:01

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: I still don't understand what I'm supposed to do

jordanwb next time read to the end before doing something.
i told you to extract it and then run makepkg -i.

wget http://aur.archlinux.org/packages/virtualbox_bin/virtualbox_bin.tar.gz
tar xzf virtualbox_bin.tar.gz
cd virtualbox_bin
makepkg -i

makepkg means compile and create package.
-i install package

if i didn't specify -i and only makepkg then you need to use pacman -U somepackage

Last edited by wonder (2008-09-18 19:04:22)


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2008-09-18 19:09:01

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: I still don't understand what I'm supposed to do

jordanbw,

First, before you do something like this, you should really read up on it as you don't seem to understand at all what the AUR is and what you're doing. Just following instructions without really knowing what's going on is a sure way to bork your system eventually (e.g. installing directly from websites will eventually clutter your system with files that will be a bitch to remove). Really, if you're not prepared to do some reading, you really shouldn't be using Arch.

Start here: http://wiki.archlinux.org/index.php/AUR
http://wiki.archlinux.org/index.php/Makepkg
http://wiki.archlinux.org/index.php/PKGBUILD

Anyway, the file that you downloaded from the AUR is NOT a binary package which is why pacman complains.

pacman -U <binary package tarball>

only works with a binary package tarball.

The tarball from the AUR contains files that you need to BUILD a binary package that you can install with the command above. This is what you need to do:

Create a build directory somewhere, e.g. under /tmp

mkdir /tmp/build

Move that AUR tarball to that directory and extract it there with

tar -zxvvf <AUR tarball name>

If you haven't installed base-devel and abs yet, do so (as described in the second link above... read it to learn how). Then move into the directory with the PKGBUILD file and build the package with makepkg:

makepkg

If everything worked, PRESTO! you now have a binary pkg that you can install with "pacman -U".

Last edited by Xyne (2008-09-18 19:11:16)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB