Adding Repositories to Ubuntu ?

                                 The truth as we know it is that, we use Ubuntu 'Update Manager', whenever we need to update software that we've already installed in our Ubuntu OS.

Because, that's Easy (Equivalent to Windows Update) we just have to click a single button.

If you're new to Ubuntu. Please know this, go to Dash & find 'Update Manager'.


                             Even if you aren't familiar with 'Update Manager', automatic prompt will always let you to download Free updates whenever it's available.

Repositories mean, the download sources that Ubuntu OS of yours lets you to download updates from. They're links basically, that directs your software to a download server.

Whenever, we install custom software to Ubuntu, we need to set repositories to download updates for them.

To do that, 

Step 01 :  

Get to know the download source URL. E.g - http://download.virtualbox.org/virtualbox/debian

Step 02 :

It's important to know that there're few types of Repository components available.

  • Main - Official Ubuntu Software.
  • Restricted - Supported software but still not distributed under complete Free License.
  • Universe - Community maintained software, i.e. not officially supported software.
  • Multi-verse - Software that is not free.

Step 03 :

Go to Terminal. (Dash -> Type 'Terminal' -> Click)




Then, type following command in the terminal.

$ cd /etc/apt

You've to edit Sources.list  file in order to set your repositories. Use your vi-editor and open Sources.list  with vi.

$ vi sudo sources.list


Enter your administrator password & in the vi, Go to the bottom of the sources file.



Step 04 :

Add your download source URL in vi --INSERT-- Mode.

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main

You've to include your URL in the 'deb' format. 

But, you've to be careful in editing sources.list & make sure you write your third party software URL entry under the Third Party  software section. Save the file & exit.

Step 05 :

Now, go to Dash & type 'Update Manager'. Then click 'Check' button to check for updates.



Then, click 'install Updates' button to update. Make sure you've already ticked all the updates.



 Okay. It's over Enjoy ! Your Ubuntu Experience.

No comments: