зеркало из
				https://github.com/iharh/notes.git
				synced 2025-11-04 15:46:08 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			57 строки
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			57 строки
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
https://www.pgadmin.org/download/
 | 
						|
 | 
						|
dnf
 | 
						|
    https://www.pgadmin.org/download/pgadmin-4-rpm/
 | 
						|
    sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
 | 
						|
    sudo dnf install pgadmin4-desktop
 | 
						|
 | 
						|
 | 
						|
apt/
 | 
						|
    # Install the public key for the repository (if not done previously):
 | 
						|
    sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
 | 
						|
 | 
						|
    # Create the repository configuration file:
 | 
						|
    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'
 | 
						|
 | 
						|
    # Install for desktop mode only:
 | 
						|
    sudo apt install pgadmin4-desktop
 | 
						|
 | 
						|
    # Install for web mode only:
 | 
						|
    sudo apt install pgadmin4-web
 | 
						|
 | 
						|
    # Install for both desktop and web modes:
 | 
						|
    sudo apt install pgadmin4
 | 
						|
 | 
						|
    https://www.pgadmin.org/download/pgadmin-4-apt/
 | 
						|
    pgadmin4
 | 
						|
        6.9 - both desktop and web
 | 
						|
    pgadmin4-desktop
 | 
						|
    pgadmin4-server
 | 
						|
        ??? why do we need it
 | 
						|
    https://gist.github.com/dweldon/cfe080d7cc189df3217dcc1c15ae96db
 | 
						|
        https://askubuntu.com/questions/1286545/what-commands-exactly-should-replace-the-deprecated-apt-key
 | 
						|
        https://www.pgadmin.org/download/pgadmin-4-apt/
 | 
						|
 | 
						|
    gpg_file="pgadmin4.gpg"
 | 
						|
 | 
						|
    wget https://www.pgadmin.org/static/packages_pgadmin_org.pub
 | 
						|
    gpg --no-default-keyring --keyring ./temp-keyring.gpg --import packages_pgadmin_org.pub
 | 
						|
    gpg --no-default-keyring --keyring ./temp-keyring.gpg --export --output "${gpg_file}"
 | 
						|
    rm temp-keyring.*
 | 
						|
    rm packages_pgadmin_org.pub
 | 
						|
    sudo chown root:root "${gpg_file}"
 | 
						|
    sudo mv "${gpg_file}" /etc/apt/keyrings/
 | 
						|
    echo "deb [signed-by=/etc/apt/keyrings/${gpg_file}] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" | sudo tee /etc/apt/sources.list.d/pgadmin4.list
 | 
						|
    sudo apt-get update
 | 
						|
 | 
						|
    # Choose one of pgadmin4, pgadmin4-desktop, pgadmin4-web
 | 
						|
    sudo apt-get install -y pgadmin4-desktop
 | 
						|
 | 
						|
apt-key
 | 
						|
    https://zalinux.ru/?p=5066
 | 
						|
    https://itsfoss.com/apt-key-deprecated/
 | 
						|
 | 
						|
2021
 | 
						|
PythonToday - PostgreSQL and pgAdmin4 inst on Ubuntu of 8:18
 | 
						|
    https://www.youtube.com/watch?v=kWUW3sMK0Mk
 |