(initial version of the page) |
(add "esoteric" shells) |
||
Line 15: | Line 15: | ||
<pre>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/ | <pre>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- | 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/</pre> | ||
=== "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: | |||
<pre>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</pre> | |||
Afterwards, we need create the repository metadata: | |||
<pre>for d in fedora-24-shells-*; do | |||
createrepo "$d" | |||
done</pre> |
Revision as of 09:58, 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:
- x86_64 binary packages: http://dl.fedoraproject.org/pub/fedora/linux/releases/test/24_Beta/Server/x86_64/os/
- source packages: http://dl.fedoraproject.org/pub/fedora/linux/releases/test/24_Beta/Server/source/tree/
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