Apt/addrepo: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
this document explains how [[apt]] knows a url is a repository server
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 "[[Binaries/apt|apt -s]]" command, they can provide a URL to go along with it.
'''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.
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's actions:''' - what apt actually does in response
Line 10: Line 14:


that's it. it's that simple.
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.