Alright folks, going a bit crazy here.
I'm running Ubuntu 21.10 impish off of an external ssd. Things are working well, trying to install pgadmin4 by following the guide here:
https://www.pgadmin.org/download/pgadmin-4-apt/
namely, adding the extra the PPA , updating the apt repository, and then installing with apt:
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4
sudo apt install pgadmin4-desktop
sudo apt install pgadmin4-web
sudo /usr/pgadmin4/bin/setup-web.sh
^ note these are the official instructions from pgadmin.org, which says it has support for Ubuntu 21.10 (Impish, from v6.2)
(I don't know what the v6.2 means, but whatever)
It appears that everything installs, and then when I try running $ pgadmin4
, nothing happens
I tried manually specifying amd64 architiecture and even switching to the LTS focal endpoint using $ sudo vim /etc/apt/sources.list.d/pgadmin4.list
, changing
deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/impish pgadmin4 main
to
deb [arch=amd64] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 main
Still no joyy....what am I missing here? and Ideally, how would I do it all in an automated script? Setting up a new system, and wrestling with stuff like this is never enjoyable.
UPDATE: Turns out it was installed (I would have seen it if I had just pushed the Super key and searched for it). But to make a terminal command, you have to look for the path to the executable and make a custom alias. Accepted answer gives a good description of how you might generally do that