From Fedora Project Wiki
(add yselkowitz's minimization repos)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Getting Fedora Packages for Testing ==
{{admon/important|This page is deprecated| All Fedora Modularity Documentation has moved to the new [https://docs.pagure.org/modularity/ Fedora Modularity Documentation website] with source hosted along side the code in the [https://pagure.io/modularity Fedora Modularity website git repository]}}
 
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 <code>wget</code>, this would download them to the current directory in appropriate subdirectories:
 
<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-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>
 
=== 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>

Latest revision as of 07:57, 20 February 2017

Important.png
This page is deprecated
All Fedora Modularity Documentation has moved to the new Fedora Modularity Documentation website with source hosted along side the code in the Fedora Modularity website git repository