1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Centos Stream 9 にパッケージ管理システム Snappy

Posted at

Centos Stream 9 にパッケージ管理システム Snappy

Centos Stream9 にやっと パッケージ管理システム Snappy が dnf で Install できるようになったようです。

最初に Snapd をインストール

# dnf --enablerepo=epel -y install snapd

Snapd 本体を Install するための準備

Snap 環境構築については右のサイトを参考にしました。 snapd runtime environment

# ln -s /var/lib/snapd/snap /snap
# echo 'export PATH=$PATH:/var/lib/snapd/snap/bin'  >  /etc/profile.d/snap.sh
# systemctl enable --now snapd.service snapd.socket
    Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /usr/lib/systemd/system/snapd.service.
    Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /usr/lib/systemd/system/snapd.socket.

証明書を取得するためのツール Certbot クライアントをインストール

# snap install certbot --classic
   以下のようなメッセージが出ても、問題ないようです。
    Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not restarted your session...

再起動後、実行ファイルをリンク

# ln -s /snap/bin/certbot  /usr/bin/certbot

証明書を取得。Web サーバーが稼働していることが前提

# certbot certonly --webroot  -w  /var/www/html -d ドメイン名

メールアドレス,利用条件への同意等に答えれば完了です

更新は自動で実行されます。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?