ADS

Showing posts with label Repositories. Show all posts
Showing posts with label Repositories. Show all posts

Sunday, 3 July 2011

How To Add repositories in Ubuntu via Command Line

Tags: Linux, Ubuntu, Add repositories, Command Line.

Method 2: Via Command Line and file source.list.

1. Ubuntu uses apt for package management. Apt stores a list of repositories or software channels in the file, so It's always a good idea to backup a configuration file like sources.list before you edit it. To do so, issue the following command:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2. Use your editor and open this file:
sudo gedit /etc/apt/sources.list

3. You can add custom software repositories by adding the apt repository line of your software source to the list of repositories. It should look something like this:
deb http://mirror3.ubuntulinux.nl/ hardy-seveas freenx
Just add this line at the end of file source.list and save this file.

4. Run update command:
sudo apt-get update

Method 3: Via Command Line Only (Add Lauchpad PPA)

1. This method can apply only from Ubuntu 9.10, Karmic Koala or higher. And first of all, You must install python-software-properties first
sudo apt-get install python-software-properties

2. Now if you want to add an repository just run the following line:
sudo add-apt-repository ppa:<repository-name>

Note: The repository-name can be found in the software that you want to install pages.

How To Add repositories in Linux Ubuntu- Tutorial with Images

Tags: How to, add repositories, Ubuntu, Linux, Install.

Just follow these way, you will get to know how to add repositories in Linux Ubuntu.

Method 1: Using Synaptic
1. To Open Synaptic Package manager go to System--->Administration--->Synaptic package manager. You will have to provide administrator password to open this.
2. The interface of Synaptic looks like this image below. (May be a little different for other version of Ubuntu, but it doesn't matter.)
3. Select Settings -> Repositories as in the image above.
4. Software Source window will be shown like this image:
5. Now if you click on Third party tab you can enter third Party repositories and cdrom repositories here.
 6. If you want to add new source click on add you should see the following screen here you need to enter your source and click on add source.

7. After finishing all your settings you need to click on close once you click on close.you should see the following screen with the information saying you need to click on reload button to take effects of your new settings.
 8. Click Close and click Reload button ....
9. Now just sit down and wait for Ubuntu updating packages.

It is finished now. May be for other version of Ubuntu, the interface may change slightly different, but these steps still be the same.