85

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.

Yunyu L.
  • 953
  • 1
  • 6
  • 10

1 Answers1

126

The script goes like this

#! /bin/sh
sudo add-apt-repository ppa:(Your ppa here) -y

BTW you will still have to enter password.