Jan 18, 2012

How to Edit the Sources.Lst.Linux Root

,
In Linux, you add and update programs from online repositories. You can choose which repositories to use. In Debian-based distributions, you switch repositories by editing the sources.list file. You can't open this file from your folder system in most distributions because you need root access. Instead, use the command line to gain root access and edit the file.


Instructions

    • 1
      Open a terminal session.
    • 2
      Type "sudo gedit /etc/apt/sources.list" and press "Enter." This opens the sources.list file in a text editor.
    • 3
      Edit the file as you would any text document. Instead of deleting repositories that you no longer want to use, comment them out by adding "#" in front of them. This lets you easily add them again if you change your mind. Save and close the file when you finish editing.
    • 4
      Type "sudo apt-get update" and press "Enter" to check your new list of repositories for updates to your installed programs.
    • 5
      Type "sudo apt-get upgrade" and press "Enter" to install any updates.

0 commentaires to “How to Edit the Sources.Lst.Linux Root”

Post a Comment

 

HowToYo Copyright © 2011 | Template design by O Pregador | Powered by Blogger Templates