LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-05-2018, 04:39 AM   #1
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Rep: Reputation: Disabled
xz compression is release specific ?


If you havn't seen my other thread a quick recap:
I'm trying to download files for centos 7 using a centos 6 system with yumdownloader. This allows downloads to include all the deps.

I have most issues covered I need in order to write a program to make the process for cross release downloads possible and I think fairly easy. This is useful for air gapped equipment for whatever reasons. Hopefully it will be possible for multiple releases of any distro eventually.

---- The final issue -----
I've now hit what appears to be the last hurdle in downloading files.
Downloading core files seem fine but obtaining SOME programs outside of the main distro is causing a problem.
I was able to download and transfer gparted and it went smoothly.
(But it did show I need to build an "dep already available" filter in the final program!)

xz however is release specific. - This is the problem.
It is beyond me why such a program exists "in the wild" but there we are.

Any repo fileset that uses xz is a problem that generates the "xz is not installed " error
For example a common program now requiring this would be VLC for movie playback.

I cannot use yums --releasever because the download still sees the installed native xz as incompatible.

Attempting to install xz for C7 onto the C6 machine (C6 is now final and some file moving could be used anyaway) produces the error that xz is not installed. Copying the release or trying to install it from the xz RPM fails similarly.

The only solution I can see is to download the xz files and remove whatever is making it release specific - which defeats the object of making this publicly available as it would need to be done for every combination I think.

just an opinion
The correct solution would be not to use xz in repos the first place.
Having a release sensitive compression is dodgy at best - using one for an online file transfer of system software is highly suspect.

gzip and tar etc have served us well enough for years - I just dont get this "lets release it as we develop" idea.

If anyone can see a way round this I'd welcome the input.
All I can think do do at the moment is to download the xz sources but that would have to be done for every single release.

Or have I missed something simple again?
 
Old 03-05-2018, 05:20 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,695

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716
To my knowledge, xz is not "distribution dependent". However it does have multiple package dependencies (including pyliblzma).
I am not aware of any 32-bit port, but I have not had a need to look.


Question: I can understand running a system air-gapped for security. Why are you running air-gapped during system load? That would seem to me to be making your life needlessly complex. My question is, what is driving you to load an air-gapped system this way?
 
Old 03-05-2018, 05:49 AM   #3
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
The issue has nothing to do with 32bit software.

Multiple issues -regulations, security, off line locations.
Can we stay on topic please.

The issue is how to get xz to function across releases. Better still - to stop repos using it.
xz is release dependant and hence presumably although it hadn't occured to me - thank you - perhaps distribution dependant
in some cases (not sure about that though).
 
Old 03-05-2018, 06:20 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
would be nice to see the exact commands as you executed and the exact error messages/responses.
 
Old 03-05-2018, 08:50 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
You have not given an example of a download that fails.

Your problem is that yum is trying to resolve dependencies based on the RPM database in the current machine. Some package that you are downloading has a dependency on a particular version of xz, and that is not the version that CentOS 6 has. It doesn't appear that yum has a way around that. You may have to download the affected packages manually from the repository rather than using yum.
 
Old 03-07-2018, 04:46 AM   #6
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
better than an example - how to reproduce
I'm guessing you can reproduce the issue by typing the following (what I'm trying to do):
yumdownloader --resolve --destdir=/tmp/test --releasever=X --downloadonly vlc

You will also see the issue as well if you use :
yum whatprovides */vlc
yum whatprovides */gcc
etc - pretty much any yum command I'd guess
This demonstrates that it is nothing to do with dependancies on the download machine.

Some info:
You must have the repo's installed on your system for the later version 'X' in yum-repos.d
Not your lower current version
rememember to clean yum caches etc just in case - on my system (C6) this is:
yum clean all
rm -rf /var/cache/yum

run the yum commands as above.
the error message you will get is: 'xz compression is not available'

What all this does is demonstrate that

1. xz is release specific
2. xz breaks yums '--releasever' option for obtaining forward releases

I don't know for certain that something else isn't causing xz itself to fail
but that seems unlikely given the simple 'whatprovides' option is also broken.

I hope that makes the issue clear.
 
Old 03-07-2018, 08:58 AM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
See https://unix.stackexchange.com/quest...-not-available .

(Amazing what a Google search for that error will find.)
 
Old 03-07-2018, 09:26 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
just a comment: (obviously) xz is not release dependent
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give read-only permission for specific user for specific folder in RedHat digitalbiopharm Linux - Newbie 15 12-28-2013 03:12 PM
Way to make autofs mount to specific USB flash drive to specific folder? utahnix Linux - Software 2 11-24-2010 05:27 PM
IsThere a fridge, that we can program at specific date/time to unfreeze specific food frenchn00b General 3 07-21-2009 11:26 PM
Slax with SquashFS-4 new compression algorithm and layered compression ratios? lincaptainhenryjbrown Linux - Software 2 06-19-2009 05:29 PM
How to force specific domain or user specific emails to proces in sendmail 8.13.5 FC5 peanutsa Linux - Newbie 1 03-22-2009 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:20 AM.

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