Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ pulp rpm repository create --name upload --autopublish
- {
- "pulp_href": "/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/",
- "pulp_created": "2024-03-01T13:17:27.256626Z",
- "versions_href": "/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/versions/",
- "pulp_labels": {},
- "latest_version_href": "/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/versions/0/",
- "name": "upload",
- "description": null,
- "retain_repo_versions": null,
- "remote": null,
- "autopublish": true,
- "metadata_signing_service": null,
- "retain_package_versions": 0,
- "checksum_type": null,
- "metadata_checksum_type": null,
- "package_checksum_type": null,
- "gpgcheck": null,
- "repo_gpgcheck": null,
- "sqlite_metadata": false,
- "repo_config": {},
- "compression_type": null
- }
- $ pulp rpm distribution create --name update --base-path update --repository rpm:rpm:upload
- Started background task /pulp/api/v3/tasks/018dfa2a-177e-7c16-8b08-e872bd619cfe/
- Done.
- {
- "pulp_href": "/pulp/api/v3/distributions/rpm/rpm/018dfa2a-1854-7f7c-b400-3ce0b0208f5a/",
- "pulp_created": "2024-03-01T13:17:59.253708Z",
- "base_path": "update",
- "base_url": "http://localhost:5001/pulp/content/update/",
- "content_guard": null,
- "hidden": false,
- "pulp_labels": {},
- "name": "update",
- "repository": "/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/",
- "publication": null,
- "generate_repo_config": false
- }
- $ pulp rpm content upload --repository upload --file ./bear-4.1-1.noarch.rpm
- Started background task /pulp/api/v3/tasks/018dfa2b-0846-7ddc-be99-cb7696401de0/
- .Done.
- {
- "pulp_href": "/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/versions/1/",
- "pulp_created": "2024-03-01T13:19:01.005310Z",
- "number": 1,
- "repository": "/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/",
- "base_version": null,
- "content_summary": {
- "added": {
- "rpm.package": {
- "count": 1,
- "href": "/pulp/api/v3/content/rpm/packages/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/versions/1/"
- }
- },
- "removed": {},
- "present": {
- "rpm.package": {
- "count": 1,
- "href": "/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/rpm/rpm/018dfa29-9b57-7028-a37f-c1b64fb631a8/versions/1/"
- }
- }
- }
- }
- $ wget http://localhost:5001/pulp/content/update/Packages/b/bear-4.1-1.noarch.rpm
- --2024-03-01 08:20:51-- http://localhost:5001/pulp/content/update/Packages/b/bear-4.1-1.noarch.rpm
- Resolving localhost (localhost)... 127.0.0.1, ::1
- Connecting to localhost (localhost)|127.0.0.1|:5001... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 3086 (3.0K) [application/octet-stream]
- Saving to: ‘bear-4.1-1.noarch.rpm’
- bear-4.1-1.noarch.rpm 100%[==========================================================>] 3.01K --.-KB/s in 0s
- 2024-03-01 08:20:51 (866 MB/s) - ‘bear-4.1-1.noarch.rpm’ saved [3086/3086]
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement