Skip to content

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.

terminal

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

sudo apt install hostctl

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    hostctl=1.1.4*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      hostctl=1.1.4*

Download URLs

Version SHA256 Size (KB)
1.1.4 e95cadd24cb04fa4d903d907a9f38c0181ef30bb4304e33036e4ab9c30da982f 2721
1.1.3 c069f9ec3ecff5d9384ae35161e255156321c9537712285a075e46a9abcf4919 2595
1.1.2 616efe041e572270d50421fe72713699f088795efb1c5312c25f3177ae44087d 2924
1.1.1 88e20b212994033efe99b741ad146ab161f6ca4c6ffb97e862e635b95097c363 2923
Version SHA256 Size (KB)
1.1.4 8fe6b846736cad6efbecb5663598e9eb268aed280c60ebd4644a27de4296da00 2310
1.1.3 44e6e2e3aad10e67678253ef949e5f6b8d80ccb3bbde08515866fd62848cd206 2223
1.1.2 b66435e6e7a4db923684f7f3b95eaff989cf1e3c06b0920748b259c81b6dcf1e 2542
1.1.1 695f3eabf2b35f51fa894df2bdd1b390b3818bb2c022d0a004240b05cb71c010 2542

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for hostctl are versioned here.

Click here to see hostctl ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/terminal/hostctl/ops2deb.yml
- name: hostctl
  matrix:
    architectures:
      - amd64
      - arm64
    versions:
      - 1.1.1
      - 1.1.2
  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
    versions:
      - 1.1.3
      - 1.1.4
  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 versioned 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
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.4/hostctl_1.1.4_linux_64-bit.tar.gz
  sha256: f4ec3c9f9d54633511251834ce98d409464fb1c0d970f9c865a880e1160db30f
  timestamp: 2023-05-02 12:34:41+00:00
- url: https://github.com/guumaster/hostctl/releases/download/v1.1.4/hostctl_1.1.4_linux_arm64.tar.gz
  sha256: 9b3053ac8a0c7de535c07979d1e76b2c5cbeeb44434d2335d3e0c3e776121a9c
  timestamp: 2023-05-02 12:34:41+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/hostctl.svg)](https://docs.wakemeops.com/packages/hostctl)
<a href="https://docs.wakemeops.com/packages/hostctl">
  <img src="https://docs.wakemeops.com/badges/hostctl.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/hostctl.svg
:target: https://docs.wakemeops.com/packages/hostctl