É possível pular a etapa de confirmação ao adicionar um repositório?

3

Quando adiciono um repositório executando

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Produz este diálogo:

Updated versions of X.org drivers, libraries, etc. for Ubuntu.

This PPA is for stable upstream releases of X.org components.  If you're looking for something even more bleeding-edge, please see the xorg-edgers PPA.

While Ubuntu does not "officially/formally" support these packages, if you discover problems when installing these debs please feel free to report bugs to launchpad.  However, please make sure to clearly state that you are running packages from this PPA so we know the fixes need to come here.

If you are upgrading from one release to another with this PPA activated, please install the ppa-purge package and use it to downgrade everything in here beforehand. sudo ppa-purge ppa:ubuntu-x-swat/x-updates will do it.

[Directions for packaging drivers can be seen at https://wiki.ubuntu.com/X/DriverBuilding]
 More info: https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
Press [ENTER] to continue or ctrl-c to cancel adding it

Eu quero pular a etapa de confirmação Press [ENTER] to continue or ctrl-c to cancel adding it

Como posso confirmar automaticamente a adição de um PPA?

    
por Avinash Raj 12.02.2014 / 14:49

1 resposta

6

Execute o comando

sudo add-apt-repository -y ppa:ubuntu-x-swat/x-updates

Adicionar -y no comando acima assume que sim para todos os prompts, por isso não pedirá a você Press [ENTER] to continue or ctrl-c to cancel adding it .

    
por Avinash Raj 12.02.2014 / 14:52