Where is sources.list located in ubuntu
Here, lines starting with hash are comments. Comments are used for documentation purposes on this file. Comments are also used to disable a certain package repository here. You can call it whatever you want. This is an example of an APT line as shown in the screenshot below. An APT line starts with deb , which means this package repository distributes software packages as pre compiled binaries in deb file format.
An APT line may also start with deb-src , which means the package repository distributes software packages as source codes, which you will have to compile in your own computer in order to use. By default, all the deb-src package repositories are disabled on Ubuntu. Installing packages from sources takes a long time depending on the specification of your computer.
This is where all the package files and package database files are kept. The package manager downloads the package metadata and other information to learn about what packages are available and where to download them.
The rest of the line can be marked as a comment by using a. The format is the same as for the regular sources. File names need to end with. Otherwise APT will print a notice that it has ignored a file if the file doesn't match a pattern in the Dir::Ignore-Files-Silently configuration list - in this case it will be silently ignored.
Typically, distribution is generally an archivename like stable or testing or a codename like squeeze or wheezy while component is one of main contrib or non-free. The deb-src type describes a debian distribution's source code in the same form as the deb type. A deb-src line is required to fetch source indexes. The format for a sources. Pierre Carrier Pierre Carrier 1, 9 9 silver badges 10 10 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Whenever you add a new repository on Ubuntu, the system adds a record to the sources. What other information related to repositories does this file contain? And is it important for the operating system to store this data?
You'll find out in this post. As you might already know, repositories are responsible for providing packages to the users on Linux. Ubuntu and other Debian-based distributions use the sources.
The sources. The first field denotes the type of package provided by the repository.
0コメント