OS Builder/Add repositories and packages: Difference between revisions
Jump to navigation
Jump to search
(Created page with '=Additional packages from Fedora= Use the custom_packages module: * Add 'custom_packages' to the modules list * Add a new section [custom_packages] add_packages= …') |
|||
Line 13: | Line 13: | ||
=Additional packages from RPMFusion= |
=Additional packages from RPMFusion= |
||
RPM Fusion is a group of repositories that contain many packages that are not in the official Fedora repositories. This recipe shows you how to add packages from these repositories to your build. |
RPM Fusion is a group of repositories that contain many packages that are not in the official Fedora repositories. This recipe shows you how to add packages from these repositories to your build. |
||
NOTE: Some packages, specially on the 'non-free' repositories, have legal restrictions under some jurisdictions. Make sure you know and understand how those apply to you and your users. |
NOTE: Some packages, specially on the 'non-free' repositories, have legal restrictions under some jurisdictions. Make sure you know and understand how those apply to you and your users. |
||
== Using yumdownloader and a local repository == |
|||
Currently recommended technique. Use v1.3.1 |
|||
* On your f11 build host |
|||
** Install yum-utils and createrepo |
|||
** Install/configure the rpmfusion yum repositories - use the rpms for [http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm free] and [http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm non-free] |
|||
** Create a directory <code>localrepo</code>, right next to your INI file location |
|||
** Use <code>yumdownloader</code> to fetch the needed rpms, and place them in <code>localrepo</code>. You will probably want to use the <code>--resolve</code> switch |
|||
** In the <code>[repos]</code> section, add |
|||
custom_repo_1=1,localrepo,file://(oob_config_dir)s/localrepo/ |
|||
== Using repos == |
|||
This technique is more elegant but does not work due to a limitation in v1.3.0 |
|||
* Start with a working .ini config file |
* Start with a working .ini config file |
Revision as of 16:19, 16 March 2011
Additional packages from Fedora
Use the custom_packages module:
- Add 'custom_packages' to the modules list
- Add a new section
[custom_packages] add_packages= oneadditionalpackage, another-extra-package, a-package-with-specific-version-1.33a
Additional packages from RPMFusion
RPM Fusion is a group of repositories that contain many packages that are not in the official Fedora repositories. This recipe shows you how to add packages from these repositories to your build.
NOTE: Some packages, specially on the 'non-free' repositories, have legal restrictions under some jurisdictions. Make sure you know and understand how those apply to you and your users.
Using yumdownloader and a local repository
Currently recommended technique. Use v1.3.1
- On your f11 build host
- Install yum-utils and createrepo
- Install/configure the rpmfusion yum repositories - use the rpms for free and non-free
- Create a directory
localrepo
, right next to your INI file location - Use
yumdownloader
to fetch the needed rpms, and place them inlocalrepo
. You will probably want to use the--resolve
switch - In the
[repos]
section, add
custom_repo_1=1,localrepo,file://(oob_config_dir)s/localrepo/
Using repos
This technique is more elegant but does not work due to a limitation in v1.3.0
- Start with a working .ini config file
- In the "[repos]" section, add some custom repositories
[repos] ... custom_repo_1=