Apt/addrepo: Difference between revisions
Jump to navigation
Jump to search
(Created page with "this document explains how apt knows a url is a repository server to be added soon") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
to | |||
'''user input: -''' what the user does to trigger apt to test a serverwhen the user gives the "[[Binaries/apt|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. |
Latest revision as of 02:06, 25 September 2024
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.