Ubuntu 22.04 静的サイトジェネレータ「Hugo」をインストールする
環境
OSバージョンを確認します
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
操作方法
1.hugoのバージョンを確認します
# snap info hugo name: hugo summary: Fast and Flexible Static Site Generator publisher: Hugo Authors store-url: https://snapcraft.io/hugo contact: https://discourse.gohugo.io/ license: Apache-2.0 description: | Hugo is a static HTML and CSS website generator written in Go. It is optimized for speed, easy use and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website. snap-id: t6YzDBM3com27avINGL5OD6ZKKG654ez channels: extended/stable: 0.105.0 2022-10-28 (14429) 102MB - extended/candidate: ↑ extended/beta: ↑ extended/edge: 0.105.0+git1.77fc74a5 2022-10-28 (14430) 102MB - latest/stable: 0.105.0 2022-10-28 (14428) 101MB - latest/candidate: ↑ latest/beta: ↑ latest/edge: 0.105.0+git1.77fc74a5 2022-10-28 (14427) 101MB
2.snapからhugoをインストールする
# snap install hugo --channel=extended hugo (extended/stable) 0.105.0 from Hugo Authors installed
3.バージョン確認
# hugo version hugo v0.105.0-0e3b42b4a9bdeb4d866210819fc6ddcf51582ffa+extended linux/amd64 BuildDate=2022-10-28T12:29:05Z VendorInfo=snap:0.105.0