hostctl
Manage /etc/hosts from cli
This tool gives you more control over the use of your hosts file. You can have multiple profiles and switch them on/off as you need.
http://guumaster.github.io/hostctl
amd64 arm64
Installation
1. Add WakeMeOps repository
curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash
2. Install hostctl
Snippets
Download URLs
Blueprints
Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for hostctl are versionned here.
Click here to see hostctl ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/hostctl/ops2deb.yml
- name: hostctl
matrix:
versions:
- 1.1.1
- 1.1.2
architectures:
- amd64
- arm64
homepage: http://guumaster.github.io/hostctl
summary: manage /etc/hosts from cli
description: |-
This tool gives you more control over the use of your hosts file. You can have
multiple profiles and switch them on/off as you need.
fetch:
url: https://github.com/guumaster/hostctl/releases/download/v{{version}}/hostctl_{{version}}_linux_{{target}}.tar.gz
targets:
amd64: 64-bit
script:
- mv hostctl {{src}}/usr/bin/hostctl
- name: hostctl
matrix:
architectures:
- amd64
- arm64
version: 1.1.3
homepage: http://guumaster.github.io/hostctl
summary: manage /etc/hosts from cli
description: |-
This tool gives you more control over the use of your hosts file. You can have
multiple profiles and switch them on/off as you need.
fetch:
url: https://github.com/guumaster/hostctl/releases/download/v{{version}}/hostctl_{{version}}_linux_{{target}}.tar.gz
targets:
amd64: 64-bit
install:
- hostctl:/usr/bin/
The blueprint fetch
keyword contains a URL template pointing to hostctl releases. Downloaded files are locked in a lockfile versionned here.
Click here to see hostctl release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/hostctl/ops2deb.lock.yml
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.1/hostctl_1.1.1_linux_64-bit.tar.gz
sha256: 85951c9aaba3761befcf280786bd7dc98d13a8413f394721db3f76079e59bd24
timestamp: 2022-02-28 21:54:47+00:00
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.1/hostctl_1.1.1_linux_arm64.tar.gz
sha256: 41e4e263a4c438697064975fa8ee3f6cf93aa46b7a6cfcf9d3efb6a465a0fc00
timestamp: 2022-02-28 21:54:47+00:00
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.2/hostctl_1.1.2_linux_64-bit.tar.gz
sha256: a69c0abe184a1b721ac463bd55315cd119973321b7019f08063d72e48a40966e
timestamp: 2022-03-16 13:34:43+00:00
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.2/hostctl_1.1.2_linux_arm64.tar.gz
sha256: 864f0d1d6bf00f39f6dda0ef5f66500f93e95e689f905fa1d2911a9af44e3e4c
timestamp: 2022-03-16 13:34:43+00:00
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.3/hostctl_1.1.3_linux_64-bit.tar.gz
sha256: 1dbcbd415b330e599601b6e7a27be6078bde9cc8ea1c09da4d4781f0b8349718
timestamp: 2022-08-24 17:24:20+00:00
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.3/hostctl_1.1.3_linux_arm64.tar.gz
sha256: eeabc7f88d3e35c3d69ee41c4695fc413cf419e40ed6e8bb4d753a63b7b6b768
timestamp: 2022-08-24 17:24:20+00:00