メインコンテンツへスキップする

インストール・初期設定・削除

AdGuard for Linux をインストールする方法

Open the command line on your computer. On Linux, use the keyboard shortcut Ctrl+Alt+T. On Mac, type Terminal in the search field.

To install AdGuard, choose the version that better suits you (release, beta, or nightly) and enter the respective command.

Release:

curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh | sh -s -- -v

Beta:

curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/beta/install.sh | sh -s -- -v

Nightly:

curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/nightly/install.sh | sh -s -- -v

必要に応じて、管理者パスワードを入力します。

y を押すことで /usr/local/bin に実行可能ファイルへのリンクを作成し、インストールが完了するまで待ちます。

note

AdGuard の公式バージョンであることを証明するには、gpg ツールを使用して署名を検証することができます。 GitHubで詳細を読む

初期設定

AdGuard for Linuxをご利用いただくにはAdGuardライセンスが必要です。 If you don’t have a license yet, you can log in or create an account to get a free 14-day trial. すでにライセンスをお持ちの場合は、ログインすることで有効化してください。 To do it, follow this step-by-step guide:

  1. After installation, enter:

    adguard-cli activate
  2. Then select the desired option:

    adguard-cli activate *border

  3. Once you have a license, follow the provided link to proceed with the activation:

    Activate license *border

  4. After activation, you can continue to work with the program:

    Successful activation *border

  5. You can also reset your license by entering:

    adguard-cli reset-license

    or view the license info by entering

    adguard-cli license
  6. Now you need to set up AdGuard CLI. 設定ウィザードを実行するには、以下を入力します:

    adguard-cli configure

    Setup *border

    The wizard will ask basic questions required for the initial setup.

  7. After that, you can start the AdGuard protection by entering

    adguard-cli start

    Start protecton *border

  8. 保護ステータスを表示するには、以下を入力します:

    adguard-cli status

    保護機能を止めるには、以下を入力します:

    adguard-cli stop

    保護機能を停止する *border

  9. 現在の構成を確認するには、以下のように入力します:

    adguard-cli config show

    現在のセットアップ *border

    構成ファイルへのパスも表示されます。これは直接編集可能で編集すべきです。 すべての追加オプションの説明が含まれています。

    代替として、以下のコマンドを使用できます:

    adguard-cli config get

    もしくは:

    adguard-cli config set

    ただし、これらは主にスクリプティングのために設計されています。

利用可能なコマンドに関する詳細情報は、設定と保護の管理セクションを確認してください。

AdGuard for Linux をアンインストールする方法

AdGuard をアンインストールするには、以下のコマンドを入力します:

【安定版】

curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh | sh -s -- -v -u

【ベータ版】

curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/beta/install.sh | sh -s -- -v -u

【Nightly版】

curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/nightly/install.sh | sh -s -- -v -u

必要に応じて、管理者パスワードを入力します。