There are two ways of adding repositories. The graphic (GUI) way and the terminal (CLI) way. I'll discuss both here one after the other.
GUI (Graphic user interface aka graphic method):
Go to System > Administration > Software Sources
Click on the Other Software tab and then click Add.
Then simply type or copy paste the repository you want to add and thats it.
CLI (Command line interface aka terminal method):
Open the Terminal (Accessories > Terminal) and then type the following:
sudo gedit /etc/apt/sources.list
A new window will open up and there simple copy paste the repository you want to add. Remember that you need to enter the repository name in a separate line or a new line. Hence press Enter from your keyboard before pasting/adding the repository.
Remember to save the file before you exit.
There's another CLI method as well, its a more direct approach.
Go to the Terminal and type out the direct command to add the repository:
sudo add-apt-repository ppa:name of repository
eg. sudo add-apt-repository ppa:pcf/miro-releases (installs the official repository for the software Miro)
Tip: Always make sure you update your repositories after adding them. To update your repositories, go to System > Administration > Update Manager and click on Check.
Alternatively, you can go to the Terminal and type sudo apt-get update
Thereafter you can install the software from the Ubuntu Software Center itself or from the Terminal as the case may be (read instructions for that particular software in its documentation or FAQ section).
Update: From Ubuntu 10.10, you can add/edit repositories from the Ubuntu Software Center as well. Go to Ubuntu Software Center, select Edit and Software Sources.
Thats was all about adding repositories in Ubuntu.
[...] (If you need more and simpler information alongwith screenshots about how to add a repository, you should go through the details given here : http://exploreubuntu.wordpress.com/2010/04/18/adding-repositories/) [...]
ReplyDelete