LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-01-2016, 06:57 PM   #1
vopros
LQ Newbie
 
Registered: Apr 2015
Distribution: RHEL, SLES, Oracle Linux
Posts: 4

Rep: Reputation: Disabled
Question how to reposync both x86_64 (native) and i386?


We're setting up an internal network of Oracle Linux repositories: One central yum mirror that gets the packages directly from Oracle, and then local repos at different sites that will sync with the central server. Each server will need both x86_64 and i386 packages.

The first local mirror, like the central server, is x86_64 architecture. The first reposync:

reposync -r ol6_latest -p /path/to/dest/directory

copied everything from the x86_64 repo to the new server but nothing from the i386 repo. The second try:

reposync -r ol6_latest -a i386 -p /path/to/i386/dest/directory

copied all the "noarch" RPMs from the x86_64 repo and didn't touch the i386 files. From the reposync man page, that isn't what we expected:

-a ARCH, --arch=ARCH
Act as if running the specified arch (default: current arch,
note: does not override $releasever).

Is there a way to convince reposync that we really do want both the x86_64 and i386 repos on the same server?

Thanks for whatever light you can shed.
 
Old 04-02-2016, 01:23 PM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi,

I do not really know Oracle Linux, but in yum (or actually dnf) you have arch and basearch.

On 64 bits machine both are x86_64.
But on 32 bits, the arch can is usually i686, while basearch is i386.

I hope t helps you.
 
Old 04-04-2016, 03:27 PM   #3
vopros
LQ Newbie
 
Registered: Apr 2015
Distribution: RHEL, SLES, Oracle Linux
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tshikose View Post
Hi,

I do not really know Oracle Linux, but in yum (or actually dnf) you have arch and basearch.

On 64 bits machine both are x86_64.
But on 32 bits, the arch can is usually i686, while basearch is i386.

I hope t helps you.
Thanks. I tried using --arch=i686, and it retrieved more packages, but still not the full 32-bit repository. The problem is likely that my ULN mirror server and the one where I'm trying to make the copy are both 64-bit machines. If the receiving machine were 32-bit, it would probably work. Some of the apps we run, although they are running on 64-bit machines, require some 32-bit libraries.

Any other suggestions?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i386 or x86_64 Linuxnewbie9 Linux - Newbie 3 06-19-2014 04:41 PM
i386 vs. X86_64 wfernley Linux - Software 9 10-16-2007 07:32 AM
i386 and x86_64 nmansour Fedora 2 09-18-2007 08:58 PM
x86_64 and i386 neouto SUSE / openSUSE 3 09-08-2005 05:15 AM
i386 or x86_64? rssguy Linux - Newbie 2 04-20-2005 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration