Help us understand the problem. What is going on with this article?

HugoをAWS EC2で入れてみた

More than 1 year has passed since last update.

Hugoどんなものか試したくインストールしてみました。

まずは下記をインストール

# yum install epel-release

次にGo言語をインストール

# yum install -y golang

環境変数$GOPATHを設定

# mkdir usr/local/go
# vi ~/.bash_profile

...省略

GOPATH=/usr/local/go
PATH=$GOPATH/bin:$PATH:$HOME/bin

export PATH
export GOPATH

リポジトリからHugoをインストール

sudo vi /etc/yum.repos.d/hugo.repo

hugo.repo
[daftaupe-hugo]
name=Copr repo for hugo owned by daftaupe
baseurl=https://copr-be.cloud.fedoraproject.org/results/daftaupe/hugo/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/daftaupe/hugo/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1

※下記元URL
https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/

sudo yum install --enablerepo=daftaupe-hugo hugo

以上、色々Gitからのやり方もありましたがこちらでいけそうです

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした