From Fedora Project Wiki

Revision as of 09:58, 1 June 2016 by Nphilipp (talk | contribs) (add "esoteric" shells)

Getting Fedora Packages for Testing

In order to build modules, you need component packages from which to build them, and it's better to have them locally available. This page describes where to download a set of packages which we use to build modules in tests.

Fedora 24 Beta

As a base set of packages, we use the Beta of Fedora 24 at the moment (previously, we used the Alpha, but it shouldn't make much of a difference).

You can download whole trees recursively from:

Using wget, this would download them to the current directory in appropriate subdirectories:

wget -r --no-parent -P fedora-24-beta-x86_64 --no-host-directories --cut-dirs 9 http://dl.fedoraproject.org/pub/fedora/linux/releases/test/24_Beta/Server/x86_64/os/
wget -r --no-parent -P fedora-24-beta-src --no-host-directories --cut-dirs 9 http://dl.fedoraproject.org/pub/fedora/linux/releases/test/24_Beta/Server/source/tree/

"Esoteric" Shells

As an additional set of packages, we use a couple of shells. They aren't grouped together like that ordinarily, so we download the packages directly from koji:

for arch in x86_64 src; do
    d="fedora-24-shells-$arch"
    (mkdir -p "$d" && cd "$d" &&
      for shell in aesh bash dash fish ksh mksh mosh tcsh yash zsh; do
          _archspec="--arch $arch"
          if [ "$arch" != "src" ]; then
              _archspec="$_archspec --arch noarch"
          fi
          koji download-build --latestfrom=f24 $_archspec "$shell"
      done)
done

Afterwards, we need create the repository metadata:

for d in fedora-24-shells-*; do
    createrepo "$d"
done