* new helper script “add-apt-repository” that can be used to enable a repository from the commandline. Useful for e.g.’add-apt-repository ppa:gnome-desktop’
I gave it a try with `sudo add-apt-repository ppa:jpeddicord`. Not only did it add an entry to sources.list.d, it also fetched the GPG key automatically.
Out of curiosity, I opened software-properties-gtk (system > admin > software sources) and tried to add a PPA on the third-party software tab.
soft-prop-gtk-add-ppa
Using the same syntax for the add-apt-repository command, it worked. Didn’t appear to grab the GPG key at first, but after restarting the interface the key was indeed there.This is awesome, and definitely lowers the barrier for adding PPAs to a system.
Credit goes here
Great post!
ReplyDeleteHere is how we can do this through console.
1) Open /etc/apt/sources.list
2) Add repository urls (from providers)
3) apt-get update (hope you are running from root or do sudo)
4) #apt-get install [application name]
If it is a non-ubuntu source, then generate key using gpg or apt-key..
Hope that helps :)
Hi Vipin,
ReplyDeleteSimply put 'sudo add-apt-repository ppa:jpeddicord' in console. Not only it add an entry to sources.list.d, it also fetch the GPG key automatically.This method is very helpful in adding Personal Package Archives to a ubuntu source list. :)
Great agreed!
ReplyDeleteGPG is really time killing and this is going to be great. But I don't think this is available in jaunty or hardy releases yet..
May be this is a Karmic only stuff..I didn't try that :(