add-apt-repository

Brien Dieterle briend at gmail.com
Sat Mar 26 17:38:45 MST 2016


Put the sudo in front of the add add repo command, or see this
http://stackoverflow.com/questions/10889072/using-sudo-with-for-loop
On Mar 25, 2016 8:00 PM, "Michael" <bmike1 at gmail.com> wrote:

> not quite:
>
> sudo for rep in ppa:dhor/myway ppa:hugin/hugin-builds
> ppa:mc3man/trusty-media ppa:nilarimogard/webupd8
> ppa:otto-kesselgulasch/gimp ppa:yannubuntu/boot-repair; do
> add-apt-repository $rep ; done
> bash: syntax error near unexpected token `do'
>
>
> On Fri, Mar 25, 2016 at 9:57 PM, Rusty Carruth <rustycar54 at descomp.com>
> wrote:
>
>>
>>
>> On 03/25/2016 01:30 PM, Carruth, Rusty wrote:
>>
>> for rep in <whatever1> <whatever2> < whatever3> ; do add-apt-repository
>> $rep ; done
>>
>>
>>
>> There.  A command that will take a list of repos.  And if you did that a
>> lot, make it an alias or a function:
>>
>>
>>
>> function addrepos() { for rep in $* ; do add-apt-repository $rep ; done ;
>> }
>>
>>
>>
>> Put in bashrc or whatever and there you go, a single command.
>>
>>
>>
>>
>>
>> *From:* plug-discuss-bounces at lists.phxlinux.org [
>> mailto:plug-discuss-bounces at lists.phxlinux.org
>> <plug-discuss-bounces at lists.phxlinux.org>] *On Behalf Of *Michael
>>
>>
>>
>> bummer. thanks for the news!
>>
>>
>>
>> On Fri, Mar 25, 2016 at 1:01 PM, Brian Cluff <brian at snaptek.com> wrote:
>>
>> add-apt-repository only takes a single repository at a time.
>>
>> Brian
>>
>>
>>
>> On 03/25/2016 06:10 AM, Michael wrote:
>>
>> does  'add-apt-repository <whatever>' work like 'apt-get install
>> <whatever>' where you can just list the repositories after one
>> ' add-apt-repository?
>>
>> 'add-apt-repository <whatever1> <whatever2> <whatever3> <whatever4>'
>>
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>
>
>
> --
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160326/40ad2f85/attachment.html>


More information about the PLUG-discuss mailing list