Download & install x86 programs with Pacman?

Ask questions about Arch Linux ARM. Please search before making a new topic.

Download & install x86 programs with Pacman?

Postby XJDHDR » Thu Dec 24, 2015 7:52 pm

Greetings

I have an Odroid with Arch Linux installed on it. There are one or two programs I want to install on it that are only available for the x86 architecture.

I found some instructions that can allow an ARM version of Linux to run x86 programs here: http://forum.odroid.com/viewtopic.php?f=52&t=5924.
My problem is that these instructions are for Debian based versions of Linux. Specifically, I can't figure out what changes I need to make to Pacman, if it is even possible, to accomplish what this person is doing with Apt-get.
Does anyone know how to have Pacman download and install the x86 versions of whichever Arch-Linux programs I wish? Help will be greatly appreciated.
XJDHDR
 
Posts: 2
Joined: Wed Mar 05, 2014 8:37 pm

Re: Download & install x86 programs with Pacman?

Postby moonman » Thu Dec 24, 2015 9:15 pm

If you really want to get into that it won't be simple. Whatever peice of software you want to install likely depends on other libraries that are x86 too. Your best bet is to run it in x86 chroot with qemu-user statically linked.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Download & install x86 programs with Pacman?

Postby XJDHDR » Sat Dec 26, 2015 10:50 am

Specifically, I want to run this program on my Odroid: https://aur.archlinux.org/packages/tixati/
In case you're wondering, this AUR doesn't compile the source code for this program. Instead, it downloads the binary provided by the developer (and no, the source code isn't available) and copies it to the appropriate location.

Thanks for the suggestion but I have a few issues with it. I would prefer a solution that does not require installing two entire copies of Arch Linux on my Odroid. Furthermore, would it be possible to run both of these copies at the same time? I would need Tixati to run in the background regardless of whether or not I'm logged in.

Is there any particular reason I need to use chroot? The forum post I linked to doesn't say anything about chrooting.
Also, while investigating the switches available for Pacman, I found the following:
$this->bbcode_second_pass_quote('', ' ') -y, --refresh download fresh package databases from the server
(-yy to force a refresh even if up to date)
--arch <arch> set an alternate architecture
--asdeps install packages as non-explicitly installed

Am I correct in guessing that I can add a repository with x86 binaries stored on them to the mirrorlist file then use "--arch i686" to install them?
XJDHDR
 
Posts: 2
Joined: Wed Mar 05, 2014 8:37 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests