addrepo – Easiest way to add APT repositories
Sponsored Link
Install addrepo in Ubuntu
This is very simple process just use the following two commands
sudo wget http://mac4deb.googlepages.com/addrepo -O /usr/bin/addrepo
sudo chmod +x /usr/bin/addrepo
Using addrepo
addrepo [repository]
Now you just replace ‘[repository]' with a repository name
addrepo example
addrepo deb http://dl.google.com/linux/deb/ stable non-free
It already includes ‘sudo,' so adding sudo before you enter the command is not necessary.
Commands Recap
sudo wget http://mac4deb.googlepages.com/addrepo -O /usr/bin/addrepo
sudo chmod +x /usr/bin/addrepo
..And if you are using Ubuntu desktop it’s even easier to go to:
System -> Administration -> Software Sources -> Third Party Software -> Add
Isn’t it just as easy to add repositories by editing the /etc/apt/sources.lst file with either nano or gEdit? Those looking for a graphical technique will probably find Michael’s method quite easy as well.
Actually, if you want something graphical, there is an even faster and easier way than going into the menu and clicking Software Sources, which does take a little longer than necessary to load just for adding a repository.
After I posted the thing about addrepo on the forum, someone suggested adding zenity dialogs, so i wrote a graphical version called ‘gkrepo.’
http://ubuntuforums.org/showthread.php?p=4219018#post4219018