In this tutorial, we will show you how to install JFrog Artifactory on Ubuntu 20.04 LTS. For those of you who didn’t know, JFrog Artifactory is one of the popular, advanced repository management tools. It is a cross-platform tool that allows DevOps to manage multiple package repositories. It provides high availability and multi-site replication to automate your pipeline and enable faster releases.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘
sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the JFrog open-source repository management on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.
- A server running one of the following operating systems: Ubuntu 20.04, 18.04, 16.04, and any other Debian-based distribution like Linux Mint.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
non-root sudo useror access to the
root user. We recommend acting as a
non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.
Install JFrog Artifactory on Ubuntu 20.04 LTS Focal Fossa
Step 1. First, make sure that all your system packages are up-to-date by running the following
apt commands in the terminal.
sudo apt update sudo apt upgrade
Step 2. Installing JFrog Artifactory on Ubuntu 20.04.
By default, the JFrog Artifactory package is not available on Ubuntu 20.04 base repository. Now we add the JFrog repository to your system using the following command:
echo "deb https://jfrog.bintray.com/artifactory-debs bionic main" | tee /etc/apt/sources.list.d/jfrog.list
Next, import the GPG key with the following command:
wget -qO - https://api.bintray.com/orgs/jfrog/keys/gpg/public.key | apt-key add -
Once the repository is added, update the repository and install JFrog using the following command below:
sudo apt update sudo apt install jfrog-artifactory-oss
Then, start the JFrog service and enable it to start at system reboot with the following command:
sudo systemctl start artifactory sudo systemctl enable artifactory sudo systemctl status artifactory
Step 4. Configure Firewall.
Now we open port 8081 to allow JFrog We will do it with the following commands below:
sudo ufw allow 8081/tcp sudo ufw reload
Step 5. Accessing JFrog Web Interface.
Once successfully installed, now open your web browser and type the URL
http://your-ip-address:8081/artifactory. You will be redirected to the following page:
Congratulations! You have successfully installed JFrog. Thanks for using this tutorial for installing the JFrog Artifactory open-source repository management on Ubuntu 20.04 LTS Focal Fossa system. For additional help or useful information, we recommend you check the official JFrog website.