0

I wrote this script to install pkgs one by one but some time have to press enter to continue.

#!/bin/bash
while read package
do
apt install ${package} -y 

clear
done < requirement.txt

enter image description here

i want to skip this step!

Cyrus
  • 84,225
  • 14
  • 89
  • 153
  • 3
    Just ask apt to [install non-interactively](https://askubuntu.com/questions/556385/how-can-i-install-apt-packages-non-interactively) instead. – that other guy Jul 24 '20 at 16:17
  • 2
    Does this answer your question? [apt-get update non interactive](https://stackoverflow.com/questions/33370297/apt-get-update-non-interactive) – omajid Jul 24 '20 at 16:26

0 Answers0