From Fedora Project Wiki
(add "esoteric" shells)
(add yselkowitz's minimization repos)
Line 38: Line 38:
     createrepo "$d"
     createrepo "$d"
done</pre>
done</pre>
=== Minimized packages repositories ===
[[User:Yselkowitz|Yaakov Selkowitz]] hosts repositories with minimized versions of some base packages on [https://yselkowitz.fedorapeople.org fedorapeople.org space]:
* Fedora 24 (roughly Alpha): https://yselkowitz.fedorapeople.org/f24-minimization/
* Rawhide: https://yselkowitz.fedorapeople.org/rawhide-minimization/
You can mirror them locally, e.g. using either or both of these commands:
<pre>wget -r --no-parent -P fedora-24-minimization --no-host-directories --cut-dirs 1 https://yselkowitz.fedorapeople.org/f24-minimization/
wget -r --no-parent -P rawhide-minimization --no-host-directories --cut-dirs 1 https://yselkowitz.fedorapeople.org/rawhide-minimization/</pre>

Revision as of 10:13, 1 June 2016

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

Minimized packages repositories

Yaakov Selkowitz hosts repositories with minimized versions of some base packages on fedorapeople.org space:

You can mirror them locally, e.g. using either or both of these commands:

wget -r --no-parent -P fedora-24-minimization --no-host-directories --cut-dirs 1 https://yselkowitz.fedorapeople.org/f24-minimization/
wget -r --no-parent -P rawhide-minimization --no-host-directories --cut-dirs 1 https://yselkowitz.fedorapeople.org/rawhide-minimization/