Sunday 5 August 2012

Adding repository in ubuntu

In order to download and install a particular software from a given url in ubuntu after recognizing it as a repository so tools such as synaptic package manager can automatically download and install the packages,you need to add the given url as a repository for that

Type sudo gedit /etc/apt/sources.list in terninal

paste the sources or url's to sources.list file and save

Then you may reload your synaptic package manager,you will then be in a position to install packages from the url

2 comments:

  1. Hey I am not an Ubuntu expert but an amateur user. All I do is

    sudo apt-get install

    And sw pkg mgrs handle the rest !! In what context would "adding a repository" be useful ?

    ReplyDelete
  2. when you run sudo apt-get install package, linux looks up at the certain repositories (repository here implies a server with packages, it allows the client daemon(sort of software) to download these packages) like ubuntu.com or canonical.com etc
    However if you want to explicitly mention the server from which you want to download and install a package.You need to add it to the list.

    such lists are maintained here: sudo gedit /etc/apt/sources.list

    Also consider my case, since i use internet access behind a proxy, i can't directly download packages (ftp access) from any .com so i have to explicitly add iitd server address in the repository

    ReplyDelete