Jump to content

  •  

Photo
- - - - -

How to: Change Repository in Debian

Debian 6 Debian 7 Debian Linux Tutorials

  • Please log in to reply
No replies to this topic

#1 Wilson18

Wilson18

    Administrator

  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 22 June 2014 - 11:31 PM

When installing packages in Debian, all the packages have to be downloaded from a repository. Depending on the location of your server and the repository, the speeds of the download may be slow. It is a good idea to change this repository to one which is closest to you. To do this, you will need to log in to Debian and switch to your root account. Once you have logged in, you will need to type in the following to view the list of your current repositories

nano /etc/apt/sources.list

In this file, you should see the list of installed repositories. To change these, simply edit the url. You can find a list of repositories here: http://www.debian.org/mirror/list

 

When you are done, Ctrl + O to Save and Ctrl + X to exit. You should now update your package lists. You can do this with the following command:

apt-get update; apt-get upgrade

List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+






Also tagged with one or more of these keywords: Debian 6, Debian 7, Debian, Linux, Tutorials