🙆

apt-fastのインストール方法 nointeractive

に公開

始まりと終わり

環境:ubuntu 22.04 vagrant virtualbox

GUI?が表示されないようにインストールしたくて探し回ったので。
GithubのIssueで紹介されていましたがソースの場所を忘れました。

add-apt-repository -y ppa:apt-fast/stable
apt-get update
echo debconf apt-fast/maxdownloads string 5 | debconf-set-selections
echo debconf apt-fast/dlflag boolean true | debconf-set-selections
echo debconf apt-fast/aptmanager string apt-get | debconf-set-selections
apt-get install -y apt-fast

maxdownloads: aria2cが使用する接続数の最大
dlflag: ダウンロード前に確認ダイアログを表示するかどうか
aptmanager: 使いたいパッケージマネージャー

その他

echo しているのは各パラメータで、debconf-get-selectionsですべて取得でき、grepでパッケージ検索すればフィルターできるんだとか。
debconf-get-selectionsはapt-get install -y debconf-utilsでいれる。

preceedというツールを使った一部らしい。
他のインストール時にも指定したい場合は、debconf-get-selections --installerで出力した後、一部抜き出して今回のように指定してあげればよさそう。知らんけど。

参考:

https://github.com/ilikenwf/apt-fast/issues/85#:~:text=add-apt-repository,y apt-fast

https://zenn.dev/ryuu/articles/fast-aptcommand

https://qiita.com/shu-tec/items/fbaa83e109ce40c869c7#2-インストールdvdのルートに配置する

Discussion