Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-10-26 23:21:19 +0300
committerZachary Betz <zwbetz@gmail.com>2018-10-26 23:21:19 +0300
commit8b59ab611051b7f9209b59d02ff47c3585af90d7 (patch)
tree6135ace3effffe49ad114368aed3cbb07a0babab
parentb666488059b5e8bf09ef16b3c70e00512d870299 (diff)
Add post to exampleSite
-rw-r--r--exampleSite/content/post/use-snap-to-install-the-hugo-edge-version-on-fedora-and-ubuntu.md85
1 files changed, 85 insertions, 0 deletions
diff --git a/exampleSite/content/post/use-snap-to-install-the-hugo-edge-version-on-fedora-and-ubuntu.md b/exampleSite/content/post/use-snap-to-install-the-hugo-edge-version-on-fedora-and-ubuntu.md
new file mode 100644
index 0000000..2612038
--- /dev/null
+++ b/exampleSite/content/post/use-snap-to-install-the-hugo-edge-version-on-fedora-and-ubuntu.md
@@ -0,0 +1,85 @@
+---
+title: "Use Snap to install the Hugo edge version on Fedora and Ubuntu"
+date: 2018-10-26T12:59:51-05:00
+publishdate: 2018-10-26
+lastmod: 2018-10-26
+draft: false
+---
+
+If you are using the Fedora or Ubuntu Linux distributions -- I'm currently on Fedora 28 -- and would like to [help test the latest development version of Hugo](https://discourse.gohugo.io/t/help-test-upcoming-hugo-0-50/14880), or if you just want to be on the bleeding-edge of things, this post is for you.
+
+## Fedora-only steps
+
+To get started, [install Snap on Fedora](https://docs.snapcraft.io/installing-snap-on-fedora/6755):
+
+```
+sudo dnf install snapd
+```
+
+Add the [Snap directory](https://docs.snapcraft.io/commands-and-aliases/3950) to your `PATH` by adding this line to your `~/.bashrc` file. Then restart your terminal to pick up the change:
+
+```
+export PATH="$PATH:/var/lib/snapd/snap/bin"
+```
+
+## Ubuntu-only steps
+
+Ubuntu 16.04 and above come with [Snap already installed](https://docs.snapcraft.io/installing-snap-on-ubuntu/6740). If you're using an older Ubuntu version, install Snap by running:
+
+```
+sudo apt update && sudo apt install snapd
+```
+
+Check if the Snap directory is on your `PATH` by listing each entry:
+
+```
+echo $PATH | tr ':' '\n'
+```
+
+If you don't see `/snap/bin` listed, then add this line to your `~/.bashrc` file. Then restart your terminal to pick up the change:
+
+```
+export PATH="$PATH:/snap/bin"
+```
+
+## Install Hugo
+
+See which Snap channels are available for Hugo:
+
+```
+snap info hugo
+```
+
+Install Hugo from the edge channel:
+
+```
+sudo snap install hugo --channel=edge
+```
+
+Or, if you prefer Hugo Extended -- which has the [Hugo Pipes](https://gohugo.io/hugo-pipes/) feature -- install it from the extended edge channel:
+
+```
+sudo snap install hugo --channel=extended/edge
+```
+
+Lastly, confirm the location and version of Hugo that was intalled:
+
+```
+which hugo && hugo version
+```
+
+Happy testing :)
+
+## Update or remove Hugo
+
+To update Hugo:
+
+```
+sudo snap refresh hugo
+```
+
+To remove Hugo:
+
+```
+sudo snap remove hugo
+``` \ No newline at end of file