apt-cacher-ngを導入

 ネットワーク環境を再構築するにあたってubuntu 22.04にapt-cacher-ngを再度導入することに

インストールは

sudo apt install apt-cacher-ng

でOK

/etc/apt-cacher-ng/acng.conf の編集

CacheDir:/var/cache/apt-cacher-ng

をキャッシュするためのディレクトリに変更して、再起動

これでOK

インストールしたサーバの

http://サーバーIP:3142 

で状態を監視できる。ページ下の方の 「Statistics report and configuration page for this Apt-Cacher NG installation. Also see Notes 」で詳細を確認できる


クライアント側での作業

/etc/apt/apt.conf.d/02proxy を作成または編集
Acquire::http::Proxy "http://localhost:3142";
Acquire::ftp::Proxy "ftp://localhost:3142";

を書き込むでOK


 

コメント

このブログの人気の投稿

Windows10デフォルトゲートウェアに0.0.0.0が追加される

iOS VLC でSMB共有できなかった点について

無線LANルータの選択肢が、NEC Aterm 静的ルーティングできない問題