linux - Append to /etc/apt/sources.list -


I am creating some scripts to install some installation and append it to the end of / etc / apt / sources Will happen. List

code given below ~ / ~ / / apt /

  in "encode" dbb http://ppa.launchpad.net/person/pa/Ubuntu Main ">  

@meder

I did these low orders without luck Has tried:

  Sudo Echo "deb http://ppa.launchpad.net/person/ppa/ubuntu karmic main" gt; & gt; /etc/apt/sources.list # === --- Sudo Shaw "Echo" deb http://ppa.launchpad.net/person/ppa/ubuntu karmic main '& gt; & Gt; / Etc / apt / sources list " 

This will work:

< Pre> sudo sh -c "echo 'deb http: //ppa.launchpad.net/person/ppa/ubuntu karmic main' & gt; & Gt; /etc/apt/sources.list "

However, /etc/apt/sources.list instead of editing, a new * .list file Easy to add to /etc/apt/sources.list.d .

For example,

 echo 'deb http: // Ppa.launchpad.net/person/ppa/ubuntu karmic main '& gt; /tmp/myppa.list Pseudo CP / TMP /myppa.list /etc/apt/sources.list.d/rm/tmp/myppa.list < / Pre> 

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -