Provisioning Free Oracle Compute Instance
Step-by-step guide to provisioning a free Oracle Compute instance, connecting via SSH, and configuring the EPEL repository.
Using the instance
Download the public and private key when creating the instance.
sh
chmod 400 <private-key.key>
ssh -i <private-key.key> <username>@<public-ip>
# <username> is the default username for the instance.
# For Oracle Linux and CentOS images, the default username is "opc".
# For Ubuntu images, the default username is "ubuntu".If you are using Oracle Linux, you have to enable the EPEL repository to install packages like htop, wget, curl, etc.
sh
dnf search epel
# Last metadata expiration check: 0:02:43 ago on Sat 28 Sep 2024 01:04:40 PM GMT.
# =============================== Name & Summary Matched: epel ================================
# oracle-epel-release-el9.aarch64 : Extra Packages for Enterprise Linux (EPEL) yum repository
# : configuration
# oracle-epel-release-el9.src : Extra Packages for Enterprise Linux (EPEL) yum repository
# : configurationFrom the above command, we get a list of repos that are available:
sh
rpm -q oracle-epel-release-el9.aarch64
# oracle-epel-release-el9-1.0-1.el9.aarch64sh
dnf repolist --all | grep -i epel
# ol9_developer_EPEL Oracle Linux 9 EPEL Packages for Developm disabledLet's enable the EPEL repo:
sh
sudo dnf config-manager --enable ol9_developer_EPELLet's verify if it has been enabled:
sh
dnf repolist --all | grep -i epelInstall your package:
sh
sudo dnf install htop