How to Install Octave on CentOS 5 Using Yum

I don’t use Octave often, but when it’s needed, nothing else will do.

Octave doesn’t appear to be part of RHEL anymore, so it’s not included in CentOS 5. It is available, however, on the EPEL (Extra Packages for Enterprise Linux) project.To pull Octave from EPEL using yum, you first need to add the EPEL repository to the list of available yum repositories.Then it’s yum install as usual.

To Add EPEL to Yum

The following command will install the needed files so that yum will look in EPEL. (Look at the EPEL documentation for the latest information. This was current at the time of writing.)

$ sudo rpm -Uvh

Next, use yum as expected:

$ sudo yum install octave

That’s it!

This entry was posted in SysAdmin and tagged , , , , , , . Bookmark the permalink.

12 Responses to How to Install Octave on CentOS 5 Using Yum

  1. Erez says:

    Thanks !

  2. the commodore says:

    finally, thanks dude!

  3. reload says:

    Hello James

    how to solve the resulting conflict with libhdf?
    Setting up Update Process
    Resolving Dependencies
    –> Running transaction check
    –> Processing Dependency: for package: octave
    —> Package hdf5.x86_64 0:1.8.0-1.el5.rf set to be updated
    –> Finished Dependency Resolution
    6:octave-3.0.5-1.el5.x86_64 from installed has depsolving problems
    –> Missing Dependency: is needed by package 6:octave-3.0.5-1.el5.x86_64 (installed)
    Error: Missing Dependency: is needed by package 6:octave-3.0.5-1.el5.x86_64 (installed)

    regards reload

  4. reload,

    It’s possible that the dependencies have changed over the last year. I don’t have an answer for you off the top of my head. I’d have to go through the same process you’ll need to go through of using the magic of Google.

    Though, it’s also possible that asking on the CentOS forums will yield fruit.

  5. Thank you for the note!

    I originally wrote this a year ago, and the hazard of putting version-specific links is that software progresses.

  6. Spezialist says:

    Worked like a charm! Although, at this point, the epel version is 5.4

  7. Glad to know that it still works. This time I did change the text to reflect the 5.4 EPEL. Thank you for the feedback!

  8. Kshitij Mehta says:

    Great job.

  9. Thanks for the information, Sergey. I’ve updated the link.

  10. kris says:

    Wow. What a pain this installation has been. Unfortunately the above does not solve my issue, but below does.

    [walker@gravity lib]$ uname -a
    Linux gravity 2.6.32-279.11.1.el6.x86_64 #1 SMP Sat Sep 22 07:10:26 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

    I installed epel 5.4 via Sergey, then “octave” package.

    Then yum bombs out because it cannot find a mirror to try that has the required dependencies:

    E.g.: Trying other mirror. [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”

    and ultimately:

    Error Downloading Packages:
    GraphicsMagick-c++-1.3.17-1.el6.x86_64: failure: GraphicsMagick-c++-1.3.17-1.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
    qhull-2003.1-14.el6.x86_64: failure: qhull-2003.1-14.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
    6:octave-3.4.3-1.el6.x86_64: failure: octave-3.4.3-1.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
    GraphicsMagick-1.3.17-1.el6.x86_64: failure: GraphicsMagick-1.3.17-1.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
    qrupdate-1.1.2-1.el6.x86_64: failure: qrupdate-1.1.2-1.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
    hdf5-1.8.5.patch1-7.el6.x86_64: failure: hdf5-1.8.5.patch1-7.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.

    What seemed to work was this:

    0. lots of stuff [don’t know if it was important or not]
    1. purge system of epel
    2. sudo rpm -Uvh
    3. sudo rpm -Uvh
    4. sudo yum install octave

    Can’t skip #2.

    24 hours of pain and suffering, but at least ending in a Yahoo!! (and a greater level of respect for relatively painless Ubuntu)


Leave a Reply