apt

FrontPage

パッケージの追加方法

dpkg -l 現在インストールされている apt パッケージのリスト

apt/sources.list.d apt の追加レポジトリを格納するためのディレクトリ

以下のような感じでパブリックキーを apt に登録してから sources.list.d に追加レポジトリを追加すると

$ sudo apt install postgresql-client
postgresql-client         postgresql-client-10      postgresql-client-common
$ curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
$ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" >
/etc/apt/sources.list.d/postgresql.list'
$ cat /etc/apt/sources.list.d/postgresql.list
deb http://apt.postgresql.org/pub/repos/apt bionic-pgdg main
$ apt install postgresql-client
postgresql-client            postgresql-client-13-dbgsym  postgresql-client-9.2
postgresql-client-10         postgresql-client-14         postgresql-client-9.3
postgresql-client-10-dbgsym  postgresql-client-14-dbgsym  postgresql-client-9.4
postgresql-client-11         postgresql-client-8.2        postgresql-client-9.5
postgresql-client-11-dbgsym  postgresql-client-8.3        postgresql-client-9.6
postgresql-client-12         postgresql-client-8.4        postgresql-client-common
postgresql-client-12-dbgsym  postgresql-client-9.0
postgresql-client-13         postgresql-client-9.1

こんな感じでpostgresql-client-13 などがインストールできるようになる

最終更新: 2020-01-01