
apt-getのインストール順序は長く、ほとんどのパッケージにはパラメータが必要です-y
。
2行で次のことができます。
apt-get upgrade unattended-upgrades sshguard curl wget git ansible zip unzip tree mc lamp-server^ -y
apt-get upgrade python-certbot-apache
ところで、このように一行にする方法はないでしょうか?
apt upgrade unattended-upgrades sshguard curl wget git -y ansible zip unzip tree mc -y lamp-server^ python-certbot-apache
-y
シーケンス内の2つのパラメータに注意してください。
今はテストできません。
答え1
apt install -y unattended-upgrades sshguard curl wget git ansible zip unzip tree mc lamp-server^ && apt install python-certbot-apache