1. sudo apt install gfortran* < [passwd_file]

    2.

    echo '[passwd]' | sudo apt install gfortran
  2. 重定向

    sudo -S apt-get update<<EOF #-S是必须的
    passwd
    EOF

Telore
1 声望0 粉丝