To install CUBRID using apt-get on Ubuntu, we need to add CUBRID's repository so that Ubuntu knows where to download the packages from, and then tell the OS to update its indexes.
sudo add-apt-repository ppa:cubrid/cubrid sudo apt-get update
If add-apt-repository command is not recognized by your system, you must install the python-software-properties package. Once the Python packages are installed, perform the step 1 above again, then continue.
sudo apt-get install python-software-properties
Now install the latest version of CUBRID:
sudo apt-get install cubrid
To install an earlier version, indicate the version as:
sudo apt-get install cubrid-8.4.0
To complete the installation and set the CUBRID PATH variables, reboot your OS. Until you reboot, you can also run the command ". /etc/profile.d/cubrid.sh" every time you open up a terminal if cubrid command is not found.
Optional: If you want to install the demodb sample database, run the command:
sudo apt-get install cubrid-demodb