How To Use Etc Apt Sources List
The format of each line is.
How to use etc apt sources list. When you install debian 10 using a dvd the debian os installer sets the dvd as a source for getting packages for your system if you didn t choose to scan for network mirrors. Us en fr etc. For example to install docker on debian 9 from its upstream repository you ll do. Access it through menu system administration software sources. You don t have to use it but it is very powerful and all the real die hard unix people use it since it is pretty much guaranteed to exist on any system you will ever touch no matter how old it is trust me this can be important as unix systems can be decades old in production.
Sudo vi etc apt sources list. Copy the new sources list to your clipboard. Sudo mv etc apt sources list etc apt sources list old sudo touch etc apt sources list sudo vim etc apt sources list hit i for insert. Right click with your mouse button and the contents of your clipboard should appear. Sudo vim etc apt sources list.
Here is how to use it. We need to update sources list file in order to get packages from the internet. This control file is etc apt sources list. The etc apt sources list file with dvd as a source would look something like below. Back up your current sources list make a new one and start editing.
Deb cdrom debian gnu linux 10 6 0 buster. You should replace yc with your country code like. Gksu desktop usr share applications software properties desktop usr bin software properties gtk. You can use a gnome tool to edit your sources list file. Uncomment the deb src line if you want apt get source the main debian packages.
Instead you can create a file under the etc apt sources list d directory. The file lists one source per line with the most preferred source listed first. It is not always advisable to add custom and third party repositories on the file etc apt sources list.