diff --git a/documentation/content/en/books/handbook/mirrors/_index.adoc b/documentation/content/en/books/handbook/mirrors/_index.adoc index b2977e5007..19cf891b85 100644 --- a/documentation/content/en/books/handbook/mirrors/_index.adoc +++ b/documentation/content/en/books/handbook/mirrors/_index.adoc @@ -1,1002 +1,1002 @@ --- title: Appendix A. Obtaining FreeBSD part: Part V. Appendices prev: books/handbook/partv next: books/handbook/bibliography description: "How to get FreeBSD: CD and DVD sets, FTP sites and how to install and use Git" tags: ["Obtaining", "CD", "DVD", "FTP", "Git"] showBookMenu: true weight: 39 path: "/books/handbook/" --- [appendix] [[mirrors]] = Obtaining FreeBSD :doctype: book :toc: macro :toclevels: 1 :icons: font :sectnums: :sectnumlevels: 6 :sectnumoffset: A :partnums: :source-highlighter: rouge :experimental: :images-path: books/handbook/mirrors/ ifdef::env-beastie[] ifdef::backend-html5[] :imagesdir: ../../../../images/{images-path} endif::[] ifndef::book[] include::shared/authors.adoc[] include::shared/mirrors.adoc[] include::shared/releases.adoc[] include::shared/attributes/attributes-{{% lang %}}.adoc[] include::shared/{{% lang %}}/teams.adoc[] include::shared/{{% lang %}}/mailing-lists.adoc[] include::shared/{{% lang %}}/urls.adoc[] toc::[] endif::[] ifdef::backend-pdf,backend-epub3[] include::../../../../../shared/asciidoctor.adoc[] endif::[] endif::[] ifndef::env-beastie[] toc::[] include::../../../../../shared/asciidoctor.adoc[] endif::[] [[mirrors-http]] == HTTP Mirrors The official sources for FreeBSD are available via HTTP from a worldwide set of mirror sites. The site {central-http} is available via HTTP and anonymous FTP. It is made up of many machines operated by the project cluster administrators and behind GeoDNS to direct users to the closest available mirror. [[primary]] *{mirrors-primary}* In case of problems, please contact the hostmaster `<{mirrors-primary-email}>` for this domain. -* {mirrors-primary-ftp4-http} / {mirrors-primary-ftp4-httpv6} -* {mirrors-primary-ftp10-http} / {mirrors-primary-ftp10-httpv6} +* {mirrors-primary-ftp4-http} +* {mirrors-primary-ftp10-http} * {mirrors-primary-ftp14-http} [[armenia]] *{mirrors-armenia}* In case of problems, please contact the hostmaster `<{mirrors-armenia-email}>` for this domain. * {mirrors-armenia-ftp-http} [[austria]] *{mirrors-austria}* In case of problems, please contact the hostmaster `<{mirrors-austria-email}>` for this domain. -* {mirrors-austria-ftp-http} / {mirrors-austria-ftp-httpv6} +* {mirrors-austria-ftp-http} [[brazil]] *{mirrors-brazil}* In case of problems, please contact the hostmaster `<{mirrors-brazil-email}>` for this domain. * {mirrors-brazil-ftp2-http} [[bulgaria]] *{mirrors-bulgaria}* In case of problems, please contact the hostmaster `<{mirrors-bulgaria-email}>` for this domain. * {mirrors-bulgaria-ftp-http} / {mirrors-bulgaria-ftp-httpv6} [[czech-republic]] *{mirrors-czech}* In case of problems, please contact the hostmaster `<{mirrors-czech-email}>` for this domain. -* {mirrors-czech-ftp-http} / {mirrors-czech-ftp-httpv6} +* {mirrors-czech-ftp-http} * {mirrors-czech-ftp2-http} [[denmark]] *{mirrors-denmark}* In case of problems, please contact the hostmaster `<{mirrors-denmark-email}>` for this domain. -* {mirrors-denmark-ftp-http} / {mirrors-denmark-ftp-httpv6} +* {mirrors-denmark-ftp-http} [[france]] *{mirrors-france}* In case of problems, please contact the hostmaster `<{mirrors-france-email}>` for this domain. * {mirrors-france-ftp1-http} [[germany]] *{mirrors-germany}* In case of problems, please contact the hostmaster `<{mirrors-germany-email}>` for this domain. * http://www1.de.FreeBSD.org/freebsd/ * http://ftp2.de.FreeBSD.org/pub/FreeBSD/ * http://ftp4.de.FreeBSD.org/pub/FreeBSD/ * http://ftp7.de.FreeBSD.org/pub/FreeBSD/ [[korea]] *{mirrors-korea}* In case of problems, please contact the hostmaster `<{mirrors-korea-email}>` for this domain. * {mirrors-korea-ftp2-http} [[latvia]] *{mirrors-latvia}* In case of problems, please contact the hostmaster `<{mirrors-latvia-email}>` for this domain. * {mirrors-latvia-ftp-http} [[lithuania]] *{mirrors-lithuania}* In case of problems, please contact the hostmaster `<{mirrors-lithuania-email}>` for this domain. * {mirrors-lithuania-ftp-http} [[netherlands]] *{mirrors-netherlands}* In case of problems, please contact the hostmaster `<{mirrors-netherlands-email}>` for this domain. * {mirrors-netherlands-ftp-http} [[new-zealand]] *{mirrors-new-zealand}* * {mirrors-new-zealand-ftp-http} [[russia]] *{mirrors-russia}* In case of problems, please contact the hostmaster `<{mirrors-russia-email}>` for this domain. * {mirrors-russia-ftp-http} * {mirrors-russia-ftp2-http} * {mirrors-russia-ftp5-http} [[spain]] *{mirrors-spain}* In case of problems, please contact the hostmaster `<{mirrors-spain-email}>` for this domain. * {mirrors-spain-ftp-http} [[sweden]] *{mirrors-sweden}* In case of problems, please contact the hostmaster `<{mirrors-sweden-email}>` for this domain. -* {mirrors-sweden-ftp4-http} / {mirrors-sweden-ftp4-httpv6} +* {mirrors-sweden-ftp4-http} * {mirrors-sweden-ftp6-http} [[switzerland]] *{mirrors-switzerland}* In case of problems, please contact the hostmaster `<{mirrors-switzerland-email}>` for this domain. * {mirrors-switzerland-ftp-http} [[taiwan]] *{mirrors-taiwan}* In case of problems, please contact the hostmaster `<{mirrors-taiwan-email}>` for this domain. -* {mirrors-taiwan-ftp2-http} / {mirrors-taiwan-ftp2-httpv6} +* {mirrors-taiwan-ftp2-http} * {mirrors-taiwan-ftp11-http} [[ukraine]] *{mirrors-ukraine}* * {mirrors-ukraine-ftp-http} * {mirrors-ukraine-ftp6-http} [[usa]] *{mirrors-us}* In case of problems, please contact the hostmaster `<{mirrors-us-email}>` for this domain. -* {mirrors-us-ftp4-http} / {mirrors-us-ftp4-httpv6} +* {mirrors-us-ftp4-http} * {mirrors-us-ftp13-http} * {mirrors-us-ftp14-http} [[mirrors-ftp]] == FTP Sites In addition to HTTP mirrors, FreeBSD is available via anonymous FTP from the following sites. When obtaining FreeBSD via anonymous FTP, please try to use a nearby site. The mirror sites listed as "Primary Mirror Sites" typically have the entire FreeBSD archive (all the currently available versions for each of the architectures) but faster download speeds are probably available from a site that is in your country or region. The regional sites carry the most recent versions for the most popular architecture(s) but might not carry the entire FreeBSD archive. All sites provide access via anonymous FTP but some sites also provide access via other methods. The access methods available for each site are provided in parentheses after the hostname. <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>. [[central]] *{central}* {central-ftp} (ftp / ftpv6) [[primary]] *{mirrors-primary}* In case of problems, please contact the hostmaster `<{mirrors-primary-email}>` for this domain. * {mirrors-primary-ftp1} * {mirrors-primary-ftp2} * {mirrors-primary-ftp3} * {mirrors-primary-ftp4} (ftp / ftpv6) * {mirrors-primary-ftp5} * {mirrors-primary-ftp6} * {mirrors-primary-ftp7} * {mirrors-primary-ftp10} (ftp / ftpv6) * {mirrors-primary-ftp11} * {mirrors-primary-ftp13} * {mirrors-primary-ftp14} [[armenia]] *{mirrors-armenia}* In case of problems, please contact the hostmaster `<{mirrors-armenia-email}>` for this domain. * {mirrors-armenia-ftp} (ftp / rsync) [[australia]] *{mirrors-australia}* In case of problems, please contact the hostmaster `<{mirrors-australia-email}>` for this domain. * {mirrors-australia-ftp} * {mirrors-australia-ftp2} * {mirrors-australia-ftp3} [[austria]] *{mirrors-austria}* In case of problems, please contact the hostmaster `<{mirrors-austria-email}>` for this domain. * {mirrors-austria-ftp} (ftp / ftpv6) [[brazil]] *{mirrors-brazil}* In case of problems, please contact the hostmaster `<{mirrors-brazil-email}>` for this domain. * {mirrors-brazil-ftp2} * {mirrors-brazil-ftp3} (ftp / rsync) * {mirrors-brazil-ftp4} [[bulgaria]] *{mirrors-bulgaria}* In case of problems, please contact the hostmaster `<{mirrors-bulgaria-email}>` for this domain. * {mirrors-bulgaria-ftp} (ftp / {mirrors-bulgaria-ftpv6} / rsync / rsyncv6) [[czech-republic]] *{mirrors-czech}* In case of problems, please contact the hostmaster `<{mirrors-czech-email}>` for this domain. -* {mirrors-czech-ftp} (ftp / {mirrors-czech-ftpv6} / rsync / rsyncv6) +* {mirrors-czech-ftp} (ftp / ftpv6 / rsync / rsyncv6) * {mirrors-czech-ftp2} [[denmark]] *{mirrors-denmark}* In case of problems, please contact the hostmaster `<{mirrors-denmark-email}>` for this domain. * {mirrors-denmark-ftp} (ftp / ftpv6) [[estonia]] *{mirrors-estonia}* In case of problems, please contact the hostmaster `<{mirrors-estonia-email}>` for this domain. * {mirrors-estonia-ftp} [[finland]] *{mirrors-finland}* In case of problems, please contact the hostmaster `<{mirrors-finland-email}>` for this domain. * {mirrors-finland-ftp} [[france]] *{mirrors-france}* In case of problems, please contact the hostmaster `<{mirrors-france-email}>` for this domain. * {mirrors-france-ftp} * {mirrors-france-ftp1} (ftp / rsync) * {mirrors-france-ftp3} * {mirrors-france-ftp5} * {mirrors-france-ftp6} (ftp / rsync) * {mirrors-france-ftp7} * {mirrors-france-ftp8} [[germany]] *{mirrors-germany}* In case of problems, please contact the hostmaster `<{mirrors-germany-email}>` for this domain. * ftp://ftp.de.FreeBSD.org/pub/FreeBSD/ * ftp://ftp1.de.FreeBSD.org/freebsd/ * ftp://ftp2.de.FreeBSD.org/pub/FreeBSD/ (ftp / rsync) * ftp://ftp4.de.FreeBSD.org/FreeBSD/ * ftp://ftp5.de.FreeBSD.org/pub/FreeBSD/ * ftp://ftp7.de.FreeBSD.org/pub/FreeBSD/ [[greece]] *{mirrors-greece}* In case of problems, please contact the hostmaster `<{mirrors-greece-email}>` for this domain. * {mirrors-greece-ftp} * {mirrors-greece-ftp2} [[hong-kong]] *{mirrors-hongkong}* {mirrors-hongkong-ftp} [[ireland]] *{mirrors-ireland}* In case of problems, please contact the hostmaster `<{mirrors-ireland-email}>` for this domain. * {mirrors-ireland-ftp} (ftp / rsync) [[japan]] *{mirrors-japan}* In case of problems, please contact the hostmaster `<{mirrors-japan-email}>` for this domain. * {mirrors-japan-ftp} * {mirrors-japan-ftp2} * {mirrors-japan-ftp3} * {mirrors-japan-ftp4} * {mirrors-japan-ftp5} * {mirrors-japan-ftp6} * {mirrors-japan-ftp7} * {mirrors-japan-ftp8} * {mirrors-japan-ftp9} [[korea]] *{mirrors-korea}* In case of problems, please contact the hostmaster `<{mirrors-korea-email}>` for this domain. * {mirrors-korea-ftp} (ftp / rsync) * {mirrors-korea-ftp2} [[latvia]] *{mirrors-latvia}* In case of problems, please contact the hostmaster `<{mirrors-latvia-email}>` for this domain. * {mirrors-latvia-ftp} [[lithuania]] *{mirrors-lithuania}* In case of problems, please contact the hostmaster `<{mirrors-lithuania-email}>` for this domain. * {mirrors-lithuania-ftp} [[netherlands]] *{mirrors-netherlands}* In case of problems, please contact the hostmaster `<{mirrors-netherlands-email}>` for this domain. * {mirrors-netherlands-ftp} (ftp / rsync) * {mirrors-netherlands-ftp2} [[new-zealand]] *{mirrors-new-zealand}* * {mirrors-new-zealand-ftp} [[norway]] *{mirrors-norway}* In case of problems, please contact the hostmaster `<{mirrors-norway-email}>` for this domain. * {mirrors-norway-ftp} (ftp / rsync) [[poland]] *{mirrors-poland}* In case of problems, please contact the hostmaster `<{mirrors-poland-email}>` for this domain. * {mirrors-poland-ftp} * ftp2.pl.FreeBSD.org [[russia]] *{mirrors-russia}* In case of problems, please contact the hostmaster `<{mirrors-russia-email}>` for this domain. * {mirrors-russia-ftp} (ftp / rsync) * {mirrors-russia-ftp2} (ftp / rsync) * {mirrors-russia-ftp5} (ftp / rsync) * {mirrors-russia-ftp6} [[saudi-arabia]] *{mirrors-saudi-arabia}* In case of problems, please contact the hostmaster `<{mirrors-saudi-arabia-email}>` for this domain. * {mirrors-saudi-arabia-ftp} [[slovenia]] *{mirrors-slovenia}* In case of problems, please contact the hostmaster `<{mirrors-slovenia-email}>` for this domain. * {mirrors-slovenia-ftp} [[south-africa]] *{mirrors-south-africa}* In case of problems, please contact the hostmaster `<{mirrors-south-africa-email}>` for this domain. * {mirrors-south-africa-ftp} * {mirrors-south-africa-ftp2} * {mirrors-south-africa-ftp4} [[spain]] *{mirrors-spain}* In case of problems, please contact the hostmaster `<{mirrors-spain-email}>` for this domain. * {mirrors-spain-ftp} * {mirrors-spain-ftp3} [[sweden]] *{mirrors-sweden}* In case of problems, please contact the hostmaster `<{mirrors-sweden-email}>` for this domain. * {mirrors-sweden-ftp} * {mirrors-sweden-ftp2} * {mirrors-sweden-ftp3} -* {mirrors-sweden-ftp4} (ftp / {mirrors-sweden-ftp4v6}) +* {mirrors-sweden-ftp4} (ftp / ftpv6) * {mirrors-sweden-ftp6} [[switzerland]] *{mirrors-switzerland}* In case of problems, please contact the hostmaster `<{mirrors-switzerland-email}>` for this domain. * {mirrors-switzerland-ftp} [[taiwan]] *{mirrors-taiwan}* In case of problems, please contact the hostmaster `<{mirrors-taiwan-email}>` for this domain. -* {mirrors-taiwan-ftp} (ftp / {mirrors-taiwan-ftpv6} / rsync / rsyncv6) -* {mirrors-taiwan-ftp2} (ftp / {mirrors-taiwan-ftp2v6} / rsync / rsyncv6) +* {mirrors-taiwan-ftp} (ftp / ftpv6 / rsync / rsyncv6) +* {mirrors-taiwan-ftp2} (ftp / ftpv6 / rsync / rsyncv6) * {mirrors-taiwan-ftp4} * {mirrors-taiwan-ftp5} -* {mirrors-taiwan-ftp6} (ftp / {mirrors-taiwan-ftp6v6} / rsync) +* {mirrors-taiwan-ftp6} (ftp / ftpv6 / rsync) * {mirrors-taiwan-ftp7} * {mirrors-taiwan-ftp8} * {mirrors-taiwan-ftp11} * {mirrors-taiwan-ftp12} * {mirrors-taiwan-ftp13} * {mirrors-taiwan-ftp14} * {mirrors-taiwan-ftp15} [[ukraine]] *{mirrors-ukraine}* * {mirrors-ukraine-ftp} * {mirrors-ukraine-ftp6} * {mirrors-ukraine-ftp7} [[uk]] *{mirrors-uk}* In case of problems, please contact the hostmaster `<{mirrors-uk-email}>` for this domain. * {mirrors-uk-ftp} * {mirrors-uk-ftp2} * {mirrors-uk-ftp3} * {mirrors-uk-ftp4} * {mirrors-uk-ftp5} [[usa]] *{mirrors-us}* In case of problems, please contact the hostmaster `<{mirrors-us-email}>` for this domain. * {mirrors-us-ftp} * {mirrors-us-ftp2} * {mirrors-us-ftp3} * {mirrors-us-ftp4} (ftp / ftpv6) * {mirrors-us-ftp5} * {mirrors-us-ftp6} * {mirrors-us-ftp8} * {mirrors-us-ftp10} * {mirrors-us-ftp11} * {mirrors-us-ftp13} (ftp / rsync) * {mirrors-us-ftp14} * {mirrors-us-ftp15} [[git]] == Using Git [[git-intro]] === Introduction As of December 2020, FreeBSD uses git as the primary version control system for storing all of FreeBSD's base source code and documentation. As of April 2021, FreeBSD uses git as the only version control system for storing all of FreeBSD's Ports Collection. [NOTE] ==== Git is generally a developer tool. Users may prefer to use `freebsd-update` (crossref:cutting-edge[updating-upgrading-freebsdupdate,“FreeBSD Update”]) to update the FreeBSD base system, and `portsnap` (crossref:ports[ports-using,“Using the Ports Collection”]) to update the FreeBSD Ports Collection. ==== This section demonstrates how to install Git on a FreeBSD system and use it to create a local copy of a FreeBSD repository. Additional information on the use of Git is included. [[git-install]] === Installation Git can be installed as a package: [source,shell] .... # pkg install git .... Git can also be installed from the Ports Collection: [source,shell] .... # cd /usr/ports/devel/git # make install clean .... [[git-usage]] === Running Git To fetch a clean copy of the sources into a local directory, use `git`. This directory of files is called the _working tree_. [WARNING] ==== Move or delete an existing destination directory before using `git clone` for the first time. Cloning over an existing non-git directory will fail. ==== Git uses URLs to designate a repository, taking the form of _protocol://hostname/path_. The first component of the path is the FreeBSD repository to access. There are three different repositories, `src` for the FreeBSD system source code, `doc` for documentation, and `ports` for the FreeBSD Ports Collection. For example, the URL `https://git.FreeBSD.org/src.git` specifies the main branch of the src repository, using the `https` protocol. [[git-url-table]] .FreeBSD Git Repository URL Table [options="header,footer"] |======================================================= |Item | Git URL | Web-based repository browser src | `https://cgit.freebsd.org/src` | Read-only src repo via HTTPS | `https://git.freebsd.org/src.git` | Read-only src repo via anon-ssh | `ssh://anongit@git.freebsd.org/src.git` | Read/write src repo for committers | `ssh://git@gitrepo.freebsd.org/src.git` (*) | Web-based repository browser doc | `https://cgit.freebsd.org/doc` | Read-only doc repo via HTTPS | `https://git.freebsd.org/doc.git` | Read-only doc repo via anon-ssh | `ssh://anongit@git.freebsd.org/doc.git` | Read/write doc repo for committers | `ssh://git@gitrepo.freebsd.org/doc.git` (*) | Web-based repository browser ports | `https://cgit.freebsd.org/ports` | Read-only ports repo via HTTPS | `https://git.freebsd.org/ports.git` | Read-only ports repo via anon-ssh | `ssh://anongit@git.freebsd.org/ports.git` | Read/write ports repo for committers | `ssh://git@gitrepo.freebsd.org/ports.git` (*) |======================================================= - (*) `git` is a special user on the repository server which will map your registered ssh key in FreeBSD.org to your identity, no need to change it. [WARNING] ==== Sometime after the switch to git is complete, `gitrepo.freebsd.org` will change to simply `repo.freebsd.org`. ==== To get started, clone a copy of the FreeBSD repository: [source,shell] .... # git clone -o freebsd [ -b branch ] https://git.FreeBSD.org/repo.git wcdir .... where: * _repo_ is one of the Project repositories: `src`, `ports`, or `doc`. * _branch_ depends on the repository used. `ports` and `doc` are mostly updated in the `main` branch, while `src` maintains the latest version of -CURRENT under `main` and the respective latest versions of the -STABLE branches under `stable/12` (12._x_) and `stable/13` (13._x_). * _wcdir_ is the target directory where the contents of the specified branch should be placed. This is usually [.filename]#/usr/ports# for `ports`, [.filename]#/usr/src# for `src`, and [.filename]#/usr/doc# for `doc`. * _freebsd_ is the name of the origin to use. By convention in the FreeBSD documentation, the origin is assumed to be `freebsd`. This example checks out the `main` branch of the system sources from the FreeBSD repository using the HTTPS protocol, placing the local working copy in [.filename]#/usr/src#. If [.filename]#/usr/src# is already present but was not created by `git`, remember to rename or delete it before the checkout. Git will refuse to do anything otherwise. [source,shell] .... # git clone -o freebsd https://git.FreeBSD.org/src.git /usr/src .... Because the initial checkout must download the full branch of the remote repository, it can take a while. Please be patient. After the initial checkout, the local working copy can be updated by running: [source,shell] .... # cd wcdir # git pull --rebase .... To update [.filename]#/usr/src# created in the example above, use: [source,shell] .... # cd /usr/src # git pull --rebase .... The update is much quicker than a checkout, only transferring files that have changed. There are also external mirrors maintained by project members available, please refer to the <> section. === SSH related information * `ssh://${user}@${url}/${repo}.git` can be written as `${user}@${url}:${repo}.git`, i.e., following two URLs are both valid for passing to `git`: -- ** `ssh://anongit@git.freebsd.org/${repo}.git` ** `anongit@git.freebsd.org:${repo}.git` As well as the read-write repo: ** `ssh://git@(git)repo.freebsd.org/${repo}.git` ** `git@(git)repo.freebsd.org:${repo}.git` -- * gitrepo.FreeBSD.org host key fingerprints: ** ECDSA key fingerprint is `SHA256:seWO5D27ySURcx4bknTNKlC1mgai0whP443PAKEvvZA` ** ED25519 key fingerprint is `SHA256:lNR6i4BEOaaUhmDHBA1WJsO7H3KtvjE2r5q4sOxtIWo` ** RSA key fingerprint is `SHA256:f453CUEFXEJAXlKeEHV+ajJfeEfx9MdKQUD7lIscnQI` * git.FreeBSD.org host key fingerprints: ** ECDSA key fingerprint is `SHA256:/UlirUAsGiitupxmtsn7f9b7zCWd0vCs4Yo/tpVWP9w` ** ED25519 key fingerprint is `SHA256:y1ljKrKMD3lDObRUG3xJ9gXwEIuqnh306tSyFd1tuZE` ** RSA key fingerprint is `SHA256:jBe6FQGoH4HjvrIVM23dcnLZk9kmpdezR/CvQzm7rJM` These are also published as SSHFP records in DNS. === Web-based repository browser The FreeBSD project currently uses cgit as the web-based repository browser: https://cgit.freebsd.org/. The URLs of individual repositories are listed in <>. === For Users Using `git clone` and `git pull` from the official distributed mirrors is recommended. The GeoDNS should direct you to the nearest mirror to you. === For Developers Please see the extref:{committers-guide}[Committer's Guide, git-mini-primer]. [[external-mirrors]] === External mirrors Those mirrors are not hosted in FreeBSD.org but still maintained by the project members. Users and developers are welcome to pull or browse repositories on those mirrors. The project workflow with those mirrors are still under discussion. ==== Codeberg - doc: https://codeberg.org/FreeBSD/freebsd-doc - ports: https://codeberg.org/FreeBSD/freebsd-ports - src: https://codeberg.org/FreeBSD/freebsd-src ==== GitHub - doc: https://github.com/freebsd/freebsd-doc - ports: https://github.com/freebsd/freebsd-ports - src: https://github.com/freebsd/freebsd-src ==== GitLab - doc: https://gitlab.com/FreeBSD/freebsd-doc - ports: https://gitlab.com/FreeBSD/freebsd-ports - src: https://gitlab.com/FreeBSD/freebsd-src === Mailing lists General usage and questions about git in the FreeBSD project: https://lists.freebsd.org/subscription/freebsd-git[freebsd-git] Commit messages will be sent to the following mailing lists: - https://lists.freebsd.org/subscription/dev-commits-doc-all[dev-commits-doc-all]: All changes to the doc repository - https://lists.freebsd.org/subscription/dev-commits-ports-all[dev-commits-ports-all]: All changes to the ports repository - https://lists.freebsd.org/subscription/dev-commits-ports-main[dev-commits-ports-main]: All changes to the "main" branch of the ports repository - https://lists.freebsd.org/subscription/dev-commits-ports-branches[dev-commits-ports-branches]: All changes to the quarterly branches of the ports repository - https://lists.freebsd.org/subscription/dev-commits-src-all[dev-commits-src-all]: All changes to the src repository - https://lists.freebsd.org/subscription/dev-commits-src-main[dev-commits-src-main]: All changes to the "main" branch of the src repository (the FreeBSD-CURRENT branch) - https://lists.freebsd.org/subscription/dev-commits-src-branches[dev-commits-src-branches]: All changes to all stable branches of the src repository For more information, please refer to the "Commit message lists" section of C.2. "Mailing Lists" in handbook: crossref:handbook/eresources[eresources-mail, Mailing lists]. [[svn]] == Using Subversion [[svn-intro]] === Introduction As of December 2020, FreeBSD uses git as the primary version control system for storing all of FreeBSD's source code and documentation. Changes from the git repo on the `stable/11`, `stable/12` and related releng branches are exported to the subversion repository. This export will continue through the life of these branches. From July 2012 to March 2021, FreeBSD used Subversion as the only version control system for storing all of FreeBSD's Ports Collection. As of April 2021, FreeBSD uses git as the only version control system for storing all of FreeBSD's Ports Collection. [NOTE] ==== Subversion is generally a developer tool. Users may prefer to use `freebsd-update` (crossref:cutting-edge[updating-upgrading-freebsdupdate,“FreeBSD Update”]) to update the FreeBSD base system, and `portsnap` (crossref:ports[ports-using,“Using the Ports Collection”]) to update the FreeBSD Ports Collection. After March 2021, subversion use is only for legacy branches (`stable/11` and `stable/12`). ==== This section demonstrates how to install Subversion on a FreeBSD system and use it to create a local copy of a FreeBSD repository. Additional information on the use of Subversion is included. [[svn-svnlite]] === Svnlite A lightweight version of Subversion is already installed on FreeBSD as `svnlite`. The port or package version of Subversion is only needed if the Python or Perl API is needed, or if a later version of Subversion is desired. The only difference from normal Subversion use is that the command name is `svnlite`. [[svn-install]] === Installation If `svnlite` is unavailable or the full version of Subversion is needed, then it must be installed. Subversion can be installed from the Ports Collection: [source,shell] .... # cd /usr/ports/devel/subversion # make install clean .... Subversion can also be installed as a package: [source,shell] .... # pkg install subversion .... [[svn-usage]] === Running Subversion To fetch a clean copy of the sources into a local directory, use `svn`. The files in this directory are called a _local working copy_. [WARNING] ==== Move or delete an existing destination directory before using `checkout` for the first time. Checkout over an existing non-`svn` directory can cause conflicts between the existing files and those brought in from the repository. ==== Subversion uses URLs to designate a repository, taking the form of _protocol://hostname/path_. The first component of the path is the FreeBSD repository to access. There are three different repositories, `base` for the FreeBSD base system source code, `ports` for the Ports Collection, and `doc` for documentation. For example, the URL `https://svn.FreeBSD.org/base/head/` specifies the main branch of the src repository, using the `https` protocol. A checkout from a given repository is performed with a command like this: [source,shell] .... # svn checkout https://svn.FreeBSD.org/repository/branch lwcdir .... where: * _repository_ is one of the Project repositories: `base`, `ports`, or `doc`. * _branch_ depends on the repository used. `ports` and `doc` are mostly updated in the `head` branch, while `base` maintains the latest version of -CURRENT under `head` and the respective latest versions of the -STABLE branches under `stable/11` (11._x_) and `stable/12` (12._x_). * _lwcdir_ is the target directory where the contents of the specified branch should be placed. This is usually [.filename]#/usr/ports# for `ports`, [.filename]#/usr/src# for `base`, and [.filename]#/usr/doc# for `doc`. This example checks out the Source Tree from the FreeBSD repository using the HTTPS protocol, placing the local working copy in [.filename]#/usr/src#. If [.filename]#/usr/src# is already present but was not created by `svn`, remember to rename or delete it before the checkout. [source,shell] .... # svn checkout https://svn.FreeBSD.org/base/head /usr/src .... Because the initial checkout must download the full branch of the remote repository, it can take a while. Please be patient. After the initial checkout, the local working copy can be updated by running: [source,shell] .... # svn update lwcdir .... To update [.filename]#/usr/src# created in the example above, use: [source,shell] .... # svn update /usr/src .... The update is much quicker than a checkout, only transferring files that have changed. An alternate way of updating the local working copy after checkout is provided by the [.filename]#Makefile# in the [.filename]#/usr/ports#, [.filename]#/usr/src#, and [.filename]#/usr/doc# directories. Set `SVN_UPDATE` and use the `update` target. For example, to update [.filename]#/usr/src#: [source,shell] .... # cd /usr/src # make update SVN_UPDATE=yes .... [[svn-mirrors]] === Subversion Mirror Sites The FreeBSD Subversion repository is: [.programlisting] .... svn.FreeBSD.org .... This is a publicly accessible mirror network that uses GeoDNS to select an appropriate back end server. To view the FreeBSD Subversion repositories through a browser, use https://svnweb.FreeBSD.org/[https://svnweb.FreeBSD.org/]. HTTPS is the preferred protocol, but the [.filename]#security/ca_root_nss# package will need to be installed in order to automatically validate certificates. === For More Information For other information about using Subversion, please see the "Subversion Book", titled http://svnbook.red-bean.com/[Version Control with Subversion], or the http://subversion.apache.org/docs/[Subversion Documentation]. [[mirrors-rsync]] == Using rsync These sites make FreeBSD available through the rsync protocol. The rsync utility transfers only the differences between two sets of files. This is useful for mirror sites of the FreeBSD FTP server. The rsync suite is available for many operating systems, on FreeBSD, see the package:net/rsync[] port or use the package. Czech Republic:: rsync://ftp.cz.FreeBSD.org/ + Available collections: ** ftp: A partial mirror of the FreeBSD FTP server. ** FreeBSD: A full mirror of the FreeBSD FTP server. Germany:: rsync://rsync3.de.FreeBSD.org/freebsd/ Netherlands:: rsync://ftp.nl.FreeBSD.org/ + Available collections: ** FreeBSD: A full mirror of the FreeBSD FTP server. Russia:: rsync://ftp.mtu.ru/ + Available collections: ** FreeBSD: A full mirror of the FreeBSD FTP server. ** FreeBSD-Archive: The mirror of FreeBSD Archive FTP server. Sweden:: rsync://ftp4.se.freebsd.org/ + -- Available collections: ** FreeBSD: A full mirror of the FreeBSD FTP server. -- + {mirrors-sweden-ftp2-rsync} + {mirrors-sweden-ftp4-rsync} + {mirrors-sweden-ftp4-rsyncv6} Taiwan:: rsync://ftp.tw.FreeBSD.org/ + rsync://ftp2.tw.FreeBSD.org/ + rsync://ftp6.tw.FreeBSD.org/ + Available collections: ** FreeBSD: A full mirror of the FreeBSD FTP server. Ukraine:: {mirrors-ukraine-ftp6-rsync} United Kingdom:: rsync://rsync.mirrorservice.org/ + -- Available collections: ** ftp.freebsd.org: A full mirror of the FreeBSD FTP server. -- + {mirrors-uk-ftp2-rsync} United States of America:: rsync://ftp-master.FreeBSD.org/ + This server may only be used by FreeBSD primary mirror sites. + Available collections: + -- ** FreeBSD: The master archive of the FreeBSD FTP server. ** acl: The FreeBSD master ACL list. -- + rsync://ftp13.FreeBSD.org/ + Available collections: ** FreeBSD: A full mirror of the FreeBSD FTP server. [[mirrors-cdrom]] == CD and DVD Sets FreeBSD CD and DVD sets are available from several online retailers: * FreeBSD Mall, Inc. + 2420 Sand Creek Rd C-1 #347 + Brentwood, CA + 94513 + USA + Phone: +1 925 240-6652 + Fax: +1 925 674-0821 + Email: + WWW: https://www.freebsdmall.com * Getlinux + 78 Rue de la Croix Rochopt + Épinay-sous-Sénart + 91860 + France + Email: + WWW: http://www.getlinux.fr/ * Dr. Hinner EDV + Kochelseestr. 11 + D-81371 München + Germany + Phone: (0177) 428 419 0 + Email: + WWW: http://www.hinner.de/linux/freebsd.html