···7777```
78787979If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password.
8080+8081You cannot publish a file with the same name twice to a package. You must delete the existing package file first.
81828283The server responds with the following HTTP Status codes.
+3-1
docs/content/usage/packages/composer.en-us.md
···25252626To publish a Composer package perform a HTTP PUT operation with the package content in the request body.
2727The package content must be the zipped PHP project with the `composer.json` file.
2828+2829You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
29303031```
···6465| HTTP Status Code | Meaning |
6566| ----------------- | ------- |
6667| `201 Created` | The package has been published. |
6767-| `400 Bad Request` | The package name and/or version are invalid or a package with the same name and version already exist. |
6868+| `400 Bad Request` | The package is invalid. |
6969+| `409 Conflict` | A package file with the same combination of parameters exists already. |
68706971## Configuring the package registry
7072
+2
docs/content/usage/packages/conan.en-us.md
···6363conan upload --remote=gitea ConanPackage/1.2@gitea/final
6464```
65656666+You cannot publish a file with the same name twice to a package. You must delete the existing package or file first.
6767+6668The Gitea Conan package registry has full [revision](https://docs.conan.io/en/latest/versioning/revisions.html) support.
67696870## Install a package
+10
docs/content/usage/packages/conda.en-us.md
···6363 https://gitea.example.com/api/packages/testuser/conda/package-1.0.conda
6464```
65656666+If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password.
6767+6668You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
6969+7070+The server responds with the following HTTP Status codes.
7171+7272+| HTTP Status Code | Meaning |
7373+| ----------------- | ------- |
7474+| `201 Created` | The package has been published. |
7575+| `400 Bad Request` | The package is invalid. |
7676+| `409 Conflict` | A package file with the same combination of parameters exists already. |
67776878## Install a package
6979
+10
docs/content/usage/packages/cran.en-us.md
···6868 https://gitea.example.com/api/packages/testuser/cran/bin?platform=windows&rversion=4.2
6969```
70707171+If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password.
7272+7173You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
7474+7575+The server responds with the following HTTP Status codes.
7676+7777+| HTTP Status Code | Meaning |
7878+| ----------------- | ------- |
7979+| `201 Created` | The package has been published. |
8080+| `400 Bad Request` | The package is invalid. |
8181+| `409 Conflict` | A package file with the same combination of parameters exists already. |
72827383## Install a package
7484
+3-2
docs/content/usage/packages/debian.en-us.md
···7777```
78787979If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password.
8080-You cannot publish a file with the same name twice to a package. You must delete the existing package version first.
8080+8181+You cannot publish a package if a package of the same name, version, distribution, component and architecture already exists. You must delete the existing package first.
81828283The server responds with the following HTTP Status codes.
83848485| HTTP Status Code | Meaning |
8586| ----------------- | ------- |
8687| `201 Created` | The package has been published. |
8787-| `400 Bad Request` | The package name, version, distribution, component or architecture are invalid. |
8888+| `400 Bad Request` | The package is invalid. |
8889| `409 Conflict` | A package file with the same combination of parameters exists already. |
89909091## Delete a package
+2
docs/content/usage/packages/go.en-us.md
···41414242If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password.
43434444+You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
4545+4446The server responds with the following HTTP Status codes.
45474648| HTTP Status Code | Meaning |
+8
docs/content/usage/packages/swift.en-us.md
···67676868You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
69697070+The server responds with the following HTTP Status codes.
7171+7272+| HTTP Status Code | Meaning |
7373+| ----------------- | ------- |
7474+| `201 Created` | The package has been published. |
7575+| `400 Bad Request` | The package is invalid. |
7676+| `409 Conflict` | A package file with the same combination of parameters exists already. |
7777+7078## Install a package
71797280To install a Swift package from the package registry, add it in the `Package.swift` file dependencies list:
+10
docs/content/usage/packages/vagrant.en-us.md
···4444 https://gitea.example.com/api/packages/testuser/vagrant/test_system/1.0.0/hyperv.box
4545```
46464747+If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password.
4848+4749You cannot publish a box if a box of the same name, version and provider already exists. You must delete the existing package first.
5050+5151+The server responds with the following HTTP Status codes.
5252+5353+| HTTP Status Code | Meaning |
5454+| ----------------- | ------- |
5555+| `201 Created` | The package has been published. |
5656+| `400 Bad Request` | The package is invalid. |
5757+| `409 Conflict` | A package with the same combination of parameters exists already. |
48584959## Install a package
5060