Basically, I want to run add-apt-repository ppa:(whatever)
without the "press Enter to continue" prompt. How would I do this?
Essentially, I want to deploy adding a repository in a shell script without user input.
Basically, I want to run add-apt-repository ppa:(whatever)
without the "press Enter to continue" prompt. How would I do this?
Essentially, I want to deploy adding a repository in a shell script without user input.
The script goes like this
#! /bin/sh
sudo add-apt-repository ppa:(Your ppa here) -y
BTW you will still have to enter password.
sudo
and thus no password
– rubo77
Nov 26 '19 at 21:01
-y
at the end of the commandadd-apt-repository -y ...
. – Uri Herrera Jun 05 '13 at 00:25man add-apt-repository
and you will see the-y
switch that @UriHerrera said. – NickTux Jun 05 '13 at 01:33