The packages in EPEL (see http://fedoraproject.org/wiki/EPEL) depend on the optional subchannel. The directions are https://access.redhat.com/knowledge/solutions/11312, and so I enabled the sub-channel for Tempest.
I can confirm this by doing:
[root@tempest ~] yum repolist Loaded plugins: downloadonly, product-id, refresh-packagekit, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity rhel-x86_64-server-optional-6 | 1.8 kB 00:00 rhel-x86_64-server-optional-6/primary | 1.3 MB 00:00 rhel-x86_64-server-optional-6 5455/5455 repo id repo name status 10gen 10gen Repository 6 rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 8,830 rhel-x86_64-server-optional-6 RHEL Server Optional (v. 6 64-bit x86_64) 5,455 repolist: 14,291 [root@tempest ~]
Maybe this will let us install stuff like Ocaml?
[root@tempest ~] yum search ocaml Loaded plugins: downloadonly, product-id, refresh-packagekit, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity ===================================================== N/S Matched: ocaml ===================================================== ocaml-calendar-devel.i686 : Development files for ocaml-calendar ocaml-calendar-devel.x86_64 : Development files for ocaml-calendar ocaml-csv.x86_64 : OCaml library for reading and writing CSV files ocaml-csv-devel.i686 : Development files for ocaml-csv ocaml-csv-devel.x86_64 : Development files for ocaml-csv ocaml-curses.x86_64 : OCaml bindings for ncurses ocaml-curses-devel.i686 : Development files for ocaml-curses ocaml-curses-devel.x86_64 : Development files for ocaml-curses ocaml-extlib.x86_64 : OCaml ExtLib additions to the standard library ocaml-extlib-devel.i686 : Development files for ocaml-extlib ocaml-extlib-devel.x86_64 : Development files for ocaml-extlib ocaml-fileutils.x86_64 : OCaml library for common file and filename operations ocaml-fileutils-devel.i686 : Development files for ocaml-fileutils ocaml-fileutils-devel.x86_64 : Development files for ocaml-fileutils ocaml-findlib-devel.i686 : Development files for ocaml-findlib ocaml-findlib-devel.x86_64 : Development files for ocaml-findlib ocaml-gettext.x86_64 : OCaml library for i18n ocaml-gettext-devel.i686 : Development files for ocaml-gettext ocaml-gettext-devel.x86_64 : Development files for ocaml-gettext ocaml-hivex.x86_64 : OCaml bindings for hivex ocaml-hivex-devel.i686 : OCaml bindings for hivex ocaml-hivex-devel.x86_64 : OCaml bindings for hivex ocaml-libguestfs.x86_64 : OCaml bindings for libguestfs ocaml-libguestfs-devel.x86_64 : OCaml bindings for libguestfs ocaml-libvirt.x86_64 : OCaml binding for libvirt ocaml-libvirt-devel.i686 : Development files for ocaml-libvirt ocaml-libvirt-devel.x86_64 : Development files for ocaml-libvirt ocaml-xml-light.x86_64 : Minimal XML parser and printer for OCaml ocaml-xml-light-devel.i686 : Development files for ocaml-xml-light ocaml-xml-light-devel.x86_64 : Development files for ocaml-xml-light ocaml.x86_64 : Objective Caml compiler and programming environment ocaml-calendar.x86_64 : Objective Caml library for managing dates and times ocaml-camlp4.x86_64 : Pre-Processor-Pretty-Printer for Objective Caml ocaml-camlp4-devel.i686 : Pre-Processor-Pretty-Printer for Objective Caml ocaml-camlp4-devel.x86_64 : Pre-Processor-Pretty-Printer for Objective Caml ocaml-docs.x86_64 : Documentation for Objective Caml ocaml-emacs.x86_64 : Emacs mode for Objective Caml ocaml-findlib.x86_64 : Objective CAML package manager and build helper ocaml-labltk.x86_64 : Tk bindings for Objective Caml ocaml-labltk-devel.i686 : Development files for labltk ocaml-labltk-devel.x86_64 : Development files for labltk ocaml-ocamldoc.x86_64 : Documentation generator for Objective Caml. ocaml-runtime.x86_64 : Objective Caml runtime environment ocaml-source.x86_64 : Source code for Objective Caml libraries ocaml-x11.x86_64 : X11 support for Objective Caml Name and summary matches only, use "search all" for everything. [root@tempest ~]
Yay! Let’s do it:
[root@tempest ~] cat /usr/network/scripts/parts/ocaml.sh #!/bin/bash yum install -y ocaml ocaml-docs ocaml-emacs ocaml-findlib ocaml-runtime ocaml-source ocaml-x11 ocaml-fileutils ocaml-gettext [root@tempest ~] /usr/network/scripts/parts/ocaml.sh Dependencies Resolved ============================================================================================================================== Package Arch Version Repository Size ============================================================================================================================== Installing: ocaml x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 5.2 M ocaml-docs x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 2.0 M ocaml-emacs x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 84 k ocaml-fileutils x86_64 0.4.0-4.1.el6 rhel-x86_64-server-optional-6 31 k ocaml-findlib x86_64 1.2.5-5.el6 rhel-x86_64-server-optional-6 311 k ocaml-gettext x86_64 0.3.3-3.5.el6 rhel-x86_64-server-optional-6 61 k ocaml-runtime x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 1.3 M ocaml-source x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 82 k ocaml-x11 x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 12 k Installing for dependencies: gdbm-devel x86_64 1.8.0-36.el6 rhel-x86_64-server-optional-6 25 k ocaml-camlp4 x86_64 3.11.2-2.el6 rhel-x86_64-server-optional-6 11 M Transaction Summary ============================================================================================================================== Install 11 Package(s) Complete! [root@tempest ~]
Some other useful commands to know. Here’s how to find out all the repos, including disabled ones:
[root@tempest ~] yum repolist all Loaded plugins: downloadonly, product-id, refresh-packagekit, rhnplugin, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity repo id repo name status 10gen 10gen Repository enabled: 6 epel Extra Packages for Enterprise Linux 6 - x86_64 disabled epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_64 - Debug disabled epel-source Extra Packages for Enterprise Linux 6 - x86_64 - Source disabled epel-testing Extra Packages for Enterprise Linux 6 - Testing - x86_64 disabled epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug disabled epel-testing-source Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source disabled rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Source disabled rhel-source-beta Red Hat Enterprise Linux 6Server Beta - x86_64 - Source disabled rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) enabled: 8,830 rhel-x86_64-server-optional-6 RHEL Server Optional (v. 6 64-bit x86_64) enabled: 5,455 rpmforge RHEL 6Server - RPMforge.net - dag disabled rpmforge-extras RHEL 6Server - RPMforge.net - extras disabled rpmforge-testing RHEL 6Server - RPMforge.net - testing disabled repolist: 14,291 [root@tempest ~]
I think it’s possible to enable optional repos via yum-config-manager, but I haven’t tried this. See https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/entitlements-and-yum.html#supplementary-repos
Finally, I wanted to add EPEL. I found http://fedoraproject.org/wiki/EPEL which has a link to the “newest version of epel-release for EL6” (linking to some random mirror site).
Down the file (epel-release-6-8.noarch.rpm) and install:
[root@tempest apps] wget mirror.cc.columbia.edu/pub/linux/epel/6/i386/epel-release-6-8.noarch.rpm Saving to: “epel-release-6-8.noarch.rpm” [root@tempest apps] file epel-release-6-8.noarch.rpm epel-release-6-8.noarch.rpm: RPM v3.0 bin noarch epel-release-6-8 [root@tempest apps] rpm -ivh epel-release-6-8.noarch.rpm Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] [root@tempest apps] yum repolist all repo id repo name status 10gen 10gen Repository enabled: 6 epel Extra Packages for Enterprise Linux 6 - x86_64 disabled epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_64 - Debug disabled epel-source Extra Packages for Enterprise Linux 6 - x86_64 - Source disabled epel-testing Extra Packages for Enterprise Linux 6 - Testing - x86_64 disabled epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug disabled epel-testing-source Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source disabled rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Source disabled rhel-source-beta Red Hat Enterprise Linux 6Server Beta - x86_64 - Source disabled rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) enabled: 8,830 rhel-x86_64-server-optional-6 RHEL Server Optional (v. 6 64-bit x86_64) enabled: 5,455 rpmforge RHEL 6Server - RPMforge.net - dag disabled rpmforge-extras RHEL 6Server - RPMforge.net - extras disabled rpmforge-testing RHEL 6Server - RPMforge.net - testing disabled repolist: 14,291 [root@tempest apps] yum --enablerepo=epel search xpdf xpdf.x86_64 : A PDF file viewer for the X Window System [root@tempest apps] yum -y --enablerepo=epel install xpdf Installing: xpdf x86_64 1:3.02-16.el6 epel 802 k Installed: xpdf.x86_64 1:3.02-16.el6 Dependency Installed: t1lib.x86_64 0:5.1.2-6.el6_2.1 xorg-x11-fonts-ISO8859-1-75dpi.noarch 0:7.2-9.1.el6 Complete! [root@tempest apps]
Woo-hoo!