[SOLVED] - rpmbuild Sources can they use 'xz' format

Issues related to applications and software problems
Post Reply
User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

[SOLVED] - rpmbuild Sources can they use 'xz' format

Post by warron.french » 2019/06/20 22:04:22

Can I create a tarball using the xz algorithm of compression and reference it in the tag Source0?

For example, can I create a tarball with the name of firefox-60.7.2.tar.xz, using the tar options of cvJf and then provide that same name in the tag as:

Source0: firefox-60.7.2.tar.xz

Is there an rpmbuild convention against using various compression algorithms?
Last edited by warron.french on 2019/06/24 20:12:01, edited 1 time in total.
Thanks,
War

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: rpmbuild Sources can they use 'xz' format

Post by TrevorH » 2019/06/20 22:11:14

Yes.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

Re: rpmbuild Sources can they use 'xz' format

Post by warron.french » 2019/06/21 00:42:47

Awesome, thank you.

I am writing a script to build a Custom RPM for installing any Firefox version into a different place than normal, but still using the
firefox-version.tar.bz2 file off of mozilla.org.
Thanks,
War

User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

Re: [SOLVED] - rpmbuild Sources can they use 'xz' format

Post by warron.french » 2019/06/24 20:12:48

For anyone else ever reading this...
Yes, it absolutely worked, you can use tar.xz files as a Source and reference it in your SPEC file.
Thanks,
War

Post Reply