Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding
  1. Home
  2. Developers
  3. How to Install PgAdmin4 on Ubuntu

How to Install PgAdmin4 on Ubuntu

  • By Gcore
  • June 7, 2023
  • 1 min read
How to Install PgAdmin4 on Ubuntu

Discover PgAdmin4, a robust open-source GUI tool, designed for managing PostgreSQL databases. Think of PgAdmin4 as your command center, making database management, maintenance, and administration simple and accessible. This user-friendly interface enables interaction with the database without using complex command lines, making it suitable for beginners and convenient for seasoned users alike. Follow our step-by-step guide to seamlessly install PgAdmin4 on Ubuntu 22.04.

1. Start by updating your system packages. Ensure your system is up-to-date using the following commands:

sudo apt-get updatesudo apt-get upgrade

2. Check if PostgreSQL is installed. If PostgreSQL is already set up on your server, proceed to the next step. If not, install PostgreSQL using this command:

sudo apt-get install postgresql

Next, add the repository for PgAdmin4 to your server.

3. Install the public key for the PgAdmin4 repository:

curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add

4. Create the repository configuration file:

sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal/ pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

5. Choose your preferred mode for PgAdmin4 installation:

  • For both desktop and web modes:
sudo apt install pgadmin4
  • For desktop mode only:
sudo apt install pgadmin4-desktop
  • For web mode only:
sudo apt install pgadmin4-web 

Wait for the installation to complete. Once successfully installed, you can access the Pgadmin4 application from your Ubuntu main menu. You’re now ready to manage your PostgreSQL databases with ease.


Looking to deploy Linux in the cloud? With Gcore Cloud, you can choose from Basic VM, Virtual Instances, or VPS/VDS suitable for Linux:

Choose an instance

Related articles

What's the difference between multi-cloud and hybrid cloud?

Multi-cloud and hybrid cloud represent two distinct approaches to distributed computing architecture that build upon the foundation of cloud computing to help organizations improve their IT infrastructure.Multi-cloud environments involve us

What is multi-cloud? Strategy, benefits, and best practices

Multi-cloud is a cloud usage model where an organization utilizes public cloud services from two or more cloud service providers, often combining public, private, and hybrid clouds, as well as different service models, such as Infrastructur

What is cloud migration? Benefits, strategy, and best practices

Cloud migration is the process of transferring digital assets, such as data, applications, and IT resources, from on-premises data centers to cloud platforms, including public, private, hybrid, or multi-cloud environments. Organizations can

What is a private cloud? Benefits, use cases, and implementation

A private cloud is a cloud computing environment dedicated exclusively to a single organization, providing a single-tenant infrastructure that improves security, control, and customization compared to public clouds.Private cloud environment

What is a cloud GPU? Definition, types, and benefits

A cloud GPU is a remotely rented graphics processing unit hosted in a cloud provider's data center, accessible over the internet via APIs or virtual machines. These virtualized resources allow users to access powerful computing capabilities

What is cloud networking: benefits, components, and implementation strategies

Cloud networking is the use and management of network resources, including hardware and software, hosted on public or private cloud infrastructures rather than on-premises equipment. Over 90% of enterprises are expected to adopt cloud netwo

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.