Apt/addrepo

From Minux Wiki
Jump to navigation Jump to search

this document explains how apt knows a url is a repository server


user input: - what the user does to trigger apt to test a serverwhen the user gives the "apt -s" command, they can provide a URL to go along with it.

eg: "apt -s https://goldcube/vtchost/com/stable/" , this url we will call %URL% from now on.


apt's actions: - what apt actually does in response

apt will search for the file "%URL%/manifest/APT.db", if found it will open it and if the first line states "AIF" it will add %URL% to it's source list.

that's it. it's that simple.

as long as it can reach it with http.get() (or "wget") it will work.