Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding

Products

  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 Is a High Availability Server?

Every minute your servers are down, your business is bleeding. For e-commerce sites, healthcare platforms, and revenue-critical applications, an outage isn't just an inconvenience. It's a direct hit to your bottom line, your reputation, and

Cloud vs Dedicated Server: Which Is Right for You?

Your server choice could be quietly costing you, or quietly holding you back. Pick the wrong infrastructure for your workload and you're either overpaying for idle hardware every month or watching your site buckle under traffic spikes you c

VPS vs Dedicated Server
VPS vs Dedicated Server: Which One Do You Need?

Your site is humming along fine, until it isn't. Traffic spikes, page loads crawl, and your hosting plan buckles under pressure right when it matters most. Choosing between a VPS and a dedicated server isn't just a technical checkbox. It's

Multi-Cloud Plan: What It Is and How It Works

Your cloud provider goes down. Applications fail. Customers can't access your services. And because you've built everything around a single vendor, there's nothing you can do but wait. For organizations locked into one cloud platform, this

Vendor Lock-In in Cloud Computing: What It Is and How to Avoid It

Imagine discovering that migrating your company's data to a new cloud provider will cost hundreds of thousands of dollars in egress fees alone, before you've even touched the re-engineering work. Or worse, picture being in Synapse Financial

What Is Sovereign Cloud and Why Does It Matter?

Picture this: a foreign government issues a legal order forcing your cloud provider to hand over sensitive patient records, classified research data, or critical national infrastructure details. You can't stop it. This isn't hypothetical. G

Subscribe to our newsletter

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