Table of Contents
In this article, I will take you through the steps to Install JFrog Artifactory on Ubuntu 20.04 LTS. JFrog Artifactory is a globally recognized best DevOps solution for hosting, managing and distributing all kinds of binaries and artifacts. It provides seamless integration with any kind of CI/CD DevOps pipeline. It provides end to end automation through application delivery process that increase the productivity across your Systems. It supports almost all the famous CI/CD Platform along with other DevOps Tools. You can quickly install JFrog artifactory on Linux and Windows system using various methods but here we will use the simplest method to install it on Ubuntu 20.04 LTS System.
How to Install JFrog Artifactory on Ubuntu 20.04 LTS (Focal Fossa)
Also Read: How to Update Google Chrome to Latest Version on Ubuntu/Debian
Step 1: Prerequisites
a) You should have a running Ubuntu 20.04 LTS
Server.
b) You should have sudo
or root
access to run privileged commands.
c) You should have apt
and wget
utility installed in your Server.
d) Minimum System Requirements: 4 CPU
, 4 GB Memory
.
e) Two external Ports 8081
and 8082
should be free and allowed through the firewall.
Step 2: Update Your Server
In the first step, you need to check for all the available updates and install it by using sudo apt update && sudo apt upgrade
command as shown below.
cyberithub@ubuntu:~$ sudo apt update && sudo apt upgrade
[sudo] password for cyberithub:
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/flatpak/stable/ubuntu focal InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://ppa.launchpad.net/gencfsm/ppa/ubuntu focal InRelease
Hit:8 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:9 https://download.sublimetext.com apt/stable/ InRelease
Hit:10 http://ppa.launchpad.net/juju/stable/ubuntu focal InRelease
Hit:11 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal InRelease
Hit:12 http://ppa.launchpad.net/mojo-maintainers/ppa/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-5.15.0-71-generic linux-hwe-5.15-headers-5.15.0-71 linux-image-5.15.0-71-generic linux-modules-5.15.0-71-generic
linux-modules-extra-5.15.0-71-generic
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
node-hosted-git-info python2.7-minimal python2.7 node-tar libopusfile0
libsdl2-2.0-0 libsdl2-2.0-0 libpython2.7-minimal libpython2.7-stdlib
............................................................
Step 3: Download Installer
You have to visit JFrog Artifactory official website and download the latest installer as artifactory-pro.deb
by using below wget
command. This will download the installer in current working directory.
cyberithub@ubuntu:~$ wget -O artifactory-pro.deb "https://releases.jfrog.io/artifactory/artifactory-pro-debs/pool/jfrog-artifactory-pro/jfrog-artifactory-pro-[RELEASE].deb"
Warning: wildcards not supported in HTTP.
--2023-07-14 01:08:53-- https://releases.jfrog.io/artifactory/artifactory-pro-debs/pool/jfrog-artifactory-pro/jfrog-artifactory-pro-[RELEASE].deb
Resolving releases.jfrog.io (releases.jfrog.io)... 54.147.213.8, 3.219.114.80, 52.5.138.44, ...
Connecting to releases.jfrog.io (releases.jfrog.io)|54.147.213.8|:443... connected.
HTTP request sent, awaiting response... 302
Location: https://jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com/aol-releases/filestore/98/9872dd449c7599e14c6899c70df34e250be8fa37?X-Artifactory-username=anonymous&X-Artifactory-repoType=local&X-Artifactory-repositoryKey=artifactory-pro-debs&X-Artifactory-packageType=debian&X-Artifactory-artifactPath=pool%2Fjfrog-artifactory-pro%2Fjfrog-artifactory-pro-7.63.5.deb&X-Artifactory-projectKey=default&x-jf-traceId=3608c0ec4f5d879c&response-content-disposition=attachment%3Bfilename%3D%22jfrog-artifactory-pro-7.63.5.deb%22&response-content-type=application%2Fx-debian-package&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHsaCXVzLWVhc3Qt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LuP4AlUdYTDRgDh9rZno5P%2FZWXdNbHsbrKBLFp%2BuQ6be8qL9zXU2VTTSdYXGJuJOsMLlDRCjuy1Oe0Wo6zWxpmVpeMjWjfBwrlKG8ULo1ho%2BZs9EAKfPxRz57%2F%2FASGJa2%2BkmpQVDdCNmcY9zGLL%2B6xvyhXLdyusHsUAR1vgxN397cG7CV4ldBEpB98skqIL%2Bb1vFwIHbPemQ%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230713T193855Z&X-Amz-SignedHeaders=host&X-Amz-Expires=59&X-Amz-Credential=ASIA6RUGCBMHPCX7LV6Y%2F20230713%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=08aef675c7ae4a17c3b96bfceff5236dd38b06cda0425a724500b89a7160904c [following]
--2023-07-14 01:08:55-- https://jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com/aol-releases/filestore/98/9872dd449c7599e14c6899c70df34e250be8fa37?X-Artifactory-username=anonymous&X-Artifactory-repoType=local&X-Artifactory-repositoryKey=artifactory-pro-debs&X-Artifactory-packageType=debian&X-Artifactory-artifactPath=pool%2Fjfrog-artifactory-pro%2Fjfrog-artifactory-pro-7.63.5.deb&X-Artifactory-projectKey=default&x-jf-traceId=3608c0ec4f5d879c&response-content-disposition=attachment%3Bfilename%3D%22jfrog-artifactory-pro-7.63.5.deb%22&response-content-type=application%2Fx-debian-package&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHsaCXVzLWVhc3QtMSJHMEUCIA2LrKjfQ74jQsb8uRLDSo9hlPfwZue0Rf3VY%2Fs9dqZyAiEA17JGtQNSCfKCvsxkvQRhiMQRoxsCnu0Twf40Zru4fwoqjwUI9P%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw5OTk5MzQ3OTA0MTQiDLb0QS3pUuyh%2Fuo5%2FSrjBGWS9DxKvMk8VxGtNElYlvH8eEcpMJXXuSCnrv496uMaKladoJye30SYox7WWNeR0gS%2BUpokK2EU0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Date=20230713T193855Z&X-Amz-SignedHeaders=host&X-Amz-Expires=59&X-Amz-Credential=ASIA6RUGCBMHPCX7LV6Y%2F20230713%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=08aef675c7ae4a17c3b96bfceff5236dd38b06cda0425a724500b89a7160904c
Resolving jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com (jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com)... 54.231.163.25, 52.216.250.92, 52.217.204.81, ...
Connecting to jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com (jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com)|54.231.163.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1143997656 (1.1G) [application/x-debian-package]
Saving to: ‘artifactory-pro.deb’
artifactory-pro.deb 100%[============================================================================>] 1.07G 1.90MB/s in 10m 8s
2023-07-14 01:19:04 (1.80 MB/s) - ‘artifactory-pro.deb’ saved [1143997656/1143997656]
Step 4: Install JFrog Artifactory
In the next step, you can install JFrog Artifactory by using sudo apt install ./artifactory-pro.deb -y
command as shown below. This will pick the installer from current working directory and install the package along with all its required dependencies.
NOTE:
cyberithub@ubuntu:~$ sudo apt install ./artifactory-pro.deb -y [sudo] password for cyberithub: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'jfrog-artifactory-pro' instead of './artifactory-pro.deb' The following packages were automatically installed and are no longer required: linux-headers-5.15.0-71-generic linux-hwe-5.15-headers-5.15.0-71 linux-image-5.15.0-71-generic linux-modules-5.15.0-71-generic linux-modules-extra-5.15.0-71-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: net-tools The following NEW packages will be installed: jfrog-artifactory-pro net-tools 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 196 kB/1,144 MB of archives. After this operation, 2,044 MB of additional disk space will be used. Get:1 http://in.archive.ubuntu.com/ubuntu focal/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1ubuntu1 [196 kB] Get:2 /home/cyberithub/artifactory-pro.deb jfrog-artifactory-pro amd64 7.63.5 [1,144 MB] Fetched 196 kB in 34s (5,721 B/s) Selecting previously unselected package net-tools. (Reading database ... 255120 files and directories currently installed.) Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_amd64.deb ... Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu1) ... Selecting previously unselected package jfrog-artifactory-pro. Preparing to unpack .../cyberithub/artifactory-pro.deb ... dpkg-query: no packages found matching artifactory Checking if group artifactory exists... Group artifactory doesn't exist. Creating ... Checking if user artifactory exists... User artifactory doesn't exist. Creating ... Checking if artifactory data directory exists Removing tomcat work directory Unpacking jfrog-artifactory-pro (7.63.5) ... ..............................................................
Step 5: Verify Installation
After successful installation, you can verify the installed files path by using dpkg -L jfrog-artifactory-pro
command as shown below.
cyberithub@ubuntu:~$ dpkg -L jfrog-artifactory-pro
/opt
/opt/jfrog
/var
/var/opt
/var/opt/jfrog
/opt/jfrog/artifactory
/opt/jfrog/artifactory/app
/opt/jfrog/artifactory/app/doc
/opt/jfrog/artifactory/app/run
/opt/jfrog/artifactory/app/bin
/opt/jfrog/artifactory/app/misc
/opt/jfrog/artifactory/app/artifactory
/opt/jfrog/artifactory/app/artifactory/tomcat
/opt/jfrog/artifactory/app/artifactory/tomcat/bin
/opt/jfrog/artifactory/app/bin/diagnostics
/opt/jfrog/artifactory/app/event
/opt/jfrog/artifactory/app/event/bin
..........................................................
Step 6: Start Service
After successful installation, you need to start the service by using sudo systemctl start artifactory.service
command as shown below.
cyberithub@ubuntu:~$ sudo systemctl start artifactory.service
You can check the status of services by using sudo systemctl status artifactory.service
command as shown below.
cyberithub@ubuntu:~$ sudo systemctl status artifactory.service
Step 7: Access JFrog Artifactory
To access Artifactory dashboard, you need to open your favorite browser and use below URL to access the default home page. It will take few minutes to start and once the platform is up, you can login using default credentials.
URL: http://<hostname>:8082