Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Installing CUBRID on Fedora/CentOS

To install CUBRID on Fedora or Ce using yum command, we need to tell Yum where to look for CUBRID packages. First, visit one of the following links depending on your OS.

There choose CUBRID version. You will be given a list of links for your particular version. 

CUBRID 8.4.3

Since CUBRID 8.4.3 there are only 2 repositories and you must choose according to your OS and version:

  • For Fedora 15 and above:
    sudo rpm -ivh
  • For Fedora 13/14 and Centos 6.0 and above:
    sudo rpm -ivh

CUBRID 8.4.1 and below

For example, the following link is provided for Fedora 17 where fc17 means this OS version. Other versions will have fc16, fc15, etc.

sudo rpm -i

Or CentOS example where el6.2 means CentOS version 6.2:

sudo rpm -i

Installing CUBRID

Executing the above command will tell Yum where to look for CUBRID packages.

Now, you can install CUBRID by running:

yum install cubrid

To complete the installation and set the CUBRID PATH variables, reboot your OS or logout and login again. Until rebooting you must run ". /etc/profile.d/" to set the PATH variables every time you open a new terminal window.

Optional: If you want to install the demodb sample database, run the command:

 sudo yum install cubrid-demodb

Installation Notes

  • CUBRID is installed in /usr/share/cubrid.
  • The configuration files are placed in /etc/cubrid.
  • Variable files (such as logs or databases) are stored in /var/cubrid.
  • Binaries can be found in /usr/bin and /usr/sbin, while libraries in /usr/lib.
  • The path variables $CUBRID and $CUBRID_DATABASES are set in the file /etc/profile.d/
  • If you run a CUBRID service command, you can view its output in /var/cubrid/tmp/service.cubrid.
  • CUBRID is set to automatically start on boot and the service file is located at /etc/init.d/cubrid.
  • On Fedora 15+, there is also a systemd file located at /usr/lib/systemd/system/cubrid.service
  • Highly Important! cubrid or standalone csql commands can be only ran as cubrid user (which has no password). To connect as this user, use "sudo su -s $SHELL cubrid".
comments powered by Disqus
Page info
viewed 9156 times
translations en
posted 5 years ago by
updated 5 years ago by
View revisions
Share this article