sophuwu.site > manhttpd
why do i have noting better to do?
sophuwu sophie@skisiel.com
Sun, 08 Sep 2024 14:29:03 +0200
commit

b3449ca390c000c540ca5e04cf5710228dea0aa3

parent

fea2ebc7dd83b2af99f79028b03902e810a42ebd

1 files changed, 15 insertions(+), 12 deletions(-)

jump to
M README.mdREADME.md

@@ -14,21 +14,24 @@ - Auto updates man pages when new packages are installed or removed using standard installation methods.

## Dependencies -`mandoc` is required for parsing. Ubuntu/Debian/apt installation: +Ubuntu/Debian dependency installation: `sudo apt-get install mandoc -y` -```sh -sudo apt-get install mandoc -y -``` +Golang installation instructions at [go.dev](https://go.dev/doc/install).\ -`go v1.21.5` or greater is required to build the source code. Official installation instructions at [go.dev](https://go.dev/doc/install).\ -Quick and lazy script to install go 1.23.1 (Tested on Ubuntu 07-SEP-2024): +lazy script to install go 1.23.1 updated 7-SEP-2024 -```sh -[ -d /usr/local/go ] && sudo rm -rf '/usr/local/go' ; # delete incompatible versions -which wget || sudo apt-get install wget -y && wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz ; # downlaod compatible version -[ -f go1.23.1.linux-amd64.tar.gz ] && sudo tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz ; # install into system -[ -f /usr/local/go/bin/go ] && sudo ln -s /usr/local/go/bin/go /bin/go ; # add to bin -go version ; # show version +```bash +#!/bin/bash +# delete incompatible versions +[ -d /usr/local/go ] && sudo rm -rf '/usr/local/go' ; +# downlaod compatible version +which wget || sudo apt-get install wget -y && wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz ; +# install into system +[ -f go1.23.1.linux-amd64.tar.gz ] && sudo tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz ; +# add to bin +[ -f /usr/local/go/bin/go ] && sudo ln -s /usr/local/go/bin/go /bin/go ; +# hope it works +go version ; ``` ## Compiling The Binary