sources.list file in Debian

by | Jun 30, 2009 | Linux Administrator

Every Debian distribution is managed by the /etc/apt/sources.list file.

This file allows you to specify whether you want your distribution to run as a stable, testing or unstable distribution.

debian open logo

To view or edit this file from the command line you need to type:
test:~# pico /etc/apt/sources.list

After editing the file and saving it, you need to run the following command:
test:~# apt-get update

which rebuilds the package database to reflect your newest sources.list

Once this is done, you can upgrade everything on your system to the latest versions by running the following command:
test:~# apt-get dist-upgrade

If you want to flip from one distribution to the other, just modify the sources.list file, and run the following commands:

test:~# apt-get update
test:~# apt-get dist-upgrade

That is all there is to it!

Logo with image

About the Author:

WebDevRobert

Innovative Technology Professional, working on IT/OT Convergence & Security, in the foundry industry.

Website Designer/Developer since the mid 1990’s.

Apple, Linux and Network Administrator since the late 1990’s.

Background includes several years of IT/OT and IIoT Administration, Communications Infrastructure Design and Project Management.

Currently the VP of Technology for Oil City Iron Works, Inc., in Corsicana, TX.

Subscribe for Updates:

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

Next Steps: Sync an Email Add-On

To get the most out of your form, we suggest that you sync this form with an email add-on. To learn more about your email add-on options, visit the following page (https://www.gravityforms.com/the-8-best-email-plugins-for-wordpress-in-2020/). Important: Delete this tip before you publish the form.
Name(Required)
Email(Required)