|
[milan@pulp2F28 pulp_rpm]$ pulp-admin rpm repo list --repo-id f27
|
|
+----------------------------------------------------------------------+
|
|
RPM Repositories
|
|
+----------------------------------------------------------------------+
|
|
|
|
Id: f27
|
|
Display Name: None
|
|
Description: None
|
|
Content Unit Counts:
|
|
Distribution: 1
|
|
Package Category: 4
|
|
Package Environment: 2
|
|
Package Group: 21
|
|
Package Langpacks: 1
|
|
Rpm: 2833
|
|
|
|
|
|
[milan@pulp2F28 pulp_rpm]$ mongo pulp_database
|
|
MongoDB shell version v3.6.3
|
|
connecting to: mongodb://127.0.0.1:27017/pulp_database
|
|
MongoDB server version: 3.6.3
|
|
Server has startup warnings:
|
|
2018-06-20T19:08:53.103+0200 I CONTROL [initandlisten]
|
|
2018-06-20T19:08:53.103+0200 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
|
|
2018-06-20T19:08:53.103+0200 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
|
|
2018-06-20T19:08:53.104+0200 I CONTROL [initandlisten]
|
|
2018-06-20T19:08:53.104+0200 I CONTROL [initandlisten]
|
|
2018-06-20T19:08:53.104+0200 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 31792 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.
|
|
> db.units_rpm.find({'name': 'dnf'})[0].release
|
|
1.fc27
|
|
> db.units_rpm.find({'name': 'dnf'})[1].release
|
|
12.fc28
|
|
> db.units_rpm.find({'name': 'dnf'})[0].recommends
|
|
> db.units_rpm.find({'name': 'dnf'})[0].requires
|
|
[
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "/bin/sh"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "/bin/sh"
|
|
},
|
|
{
|
|
"release" : "1.fc27",
|
|
"epoch" : "0",
|
|
"version" : "2.7.3",
|
|
"flags" : "EQ",
|
|
"name" : "python3-dnf"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "systemd"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "systemd"
|
|
}
|
|
]
|
|
>
|
|
bye
|
|
[milan@pulp2F28 pulp_rpm]$ pulp-admin rpm repo sync run --repo-id f27 --force-full
|
|
+----------------------------------------------------------------------+
|
|
Synchronizing Repository [f27]
|
|
+----------------------------------------------------------------------+
|
|
|
|
The following sync configuration options will be used:
|
|
|
|
Force Full: True
|
|
|
|
|
|
This command may be exited via ctrl+c without affecting the request.
|
|
|
|
|
|
Downloading metadata...
|
|
[\]
|
|
... completed
|
|
|
|
Downloading repository content...
|
|
[\]
|
|
[==================================================] 100%
|
|
RPMs: 0/0 items
|
|
Delta RPMs: 0/0 items
|
|
|
|
... completed
|
|
|
|
Downloading distribution files...
|
|
[==================================================] 100%
|
|
Distributions: 0/0 items
|
|
... completed
|
|
|
|
Importing errata...
|
|
[-]
|
|
... completed
|
|
|
|
Importing package groups/categories...
|
|
[-]
|
|
... completed
|
|
|
|
Cleaning duplicate packages...
|
|
[|]
|
|
... completed
|
|
|
|
|
|
Task Succeeded
|
|
|
|
|
|
|
|
Copying files
|
|
[-]
|
|
... completed
|
|
|
|
Initializing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Distribution files
|
|
[-]
|
|
... completed
|
|
|
|
Publishing RPMs
|
|
[/]
|
|
... completed
|
|
|
|
Publishing Delta RPMs
|
|
... skipped
|
|
|
|
Publishing Errata
|
|
[\]
|
|
... completed
|
|
|
|
Publishing Comps file
|
|
[==================================================] 100%
|
|
28 of 28 items
|
|
... completed
|
|
|
|
Publishing Metadata.
|
|
[-]
|
|
... completed
|
|
|
|
Closing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Generating sqlite files
|
|
... skipped
|
|
|
|
Removing old repodata
|
|
[-]
|
|
... completed
|
|
|
|
Generating HTML files
|
|
... skipped
|
|
|
|
Publishing files to web
|
|
[|]
|
|
... completed
|
|
|
|
Writing Listings File
|
|
[-]
|
|
... completed
|
|
|
|
|
|
Task Succeeded
|
|
|
|
|
|
[milan@pulp2F28 pulp_rpm]$ mongo pulp_database
|
|
MongoDB shell version v3.6.3
|
|
connecting to: mongodb://127.0.0.1:27017/pulp_database
|
|
MongoDB server version: 3.6.3
|
|
Server has startup warnings:
|
|
2018-06-20T19:08:53.103+0200 I CONTROL [initandlisten]
|
|
2018-06-20T19:08:53.103+0200 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
|
|
2018-06-20T19:08:53.103+0200 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
|
|
2018-06-20T19:08:53.104+0200 I CONTROL [initandlisten]
|
|
2018-06-20T19:08:53.104+0200 I CONTROL [initandlisten]
|
|
2018-06-20T19:08:53.104+0200 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 31792 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.
|
|
> db.units_rpm.find({'name': 'dnf'})[0].requires
|
|
[
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "/bin/sh"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "/bin/sh"
|
|
},
|
|
{
|
|
"release" : "1.fc27",
|
|
"epoch" : "0",
|
|
"version" : "2.7.3",
|
|
"flags" : "EQ",
|
|
"name" : "python3-dnf"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "systemd"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "systemd"
|
|
}
|
|
]
|
|
> db.units_rpm.find({'name': 'dnf'})[0].recommends
|
|
>
|
|
[1]+ Stopped mongo pulp_database
|
|
[milan@pulp2F28 pulp_rpm]$ pulp-admin rpm repo delete --repo-id f27
|
|
This command may be exited via ctrl+c without affecting the request.
|
|
|
|
|
|
[\]
|
|
Running...
|
|
|
|
Repository [f27] successfully deleted
|
|
|
|
|
|
[milan@pulp2F28 pulp_rpm]$ pulp-admin orphan remove --all
|
|
This command may be exited via ctrl+c without affecting the request.
|
|
|
|
|
|
[/]
|
|
Running...
|
|
|
|
Task Succeeded
|
|
|
|
|
|
[milan@pulp2F28 pulp_rpm]$ pulp-admin rpm repo create --repo-id f27 --feed http://download.eng.brq.redhat.com/pub/fedora/releases/27/Server/x86_64/os/
|
|
Successfully created repository [f27]
|
|
|
|
[milan@pulp2F28 pulp_rpm]$ pulp-admin rpm repo sync run --repo-id f27
|
|
+----------------------------------------------------------------------+
|
|
Synchronizing Repository [f27]
|
|
+----------------------------------------------------------------------+
|
|
|
|
This command may be exited via ctrl+c without affecting the request.
|
|
|
|
|
|
Downloading metadata...
|
|
[\]
|
|
... completed
|
|
|
|
Downloading repository content...
|
|
[/]
|
|
[==================================================] 100%
|
|
RPMs: 2818/2818 items
|
|
Delta RPMs: 0/0 items
|
|
|
|
... completed
|
|
|
|
Downloading distribution files...
|
|
[==================================================] 100%
|
|
Distributions: 7/7 items
|
|
... completed
|
|
|
|
Importing errata...
|
|
[-]
|
|
... completed
|
|
|
|
Importing package groups/categories...
|
|
[-]
|
|
... completed
|
|
|
|
Cleaning duplicate packages...
|
|
[|]
|
|
... completed
|
|
|
|
|
|
Task Succeeded
|
|
|
|
|
|
|
|
[-]
|
|
Waiting to begin...
|
|
Initializing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Publishing Distribution files
|
|
[-]
|
|
... completed
|
|
|
|
Publishing RPMs
|
|
[==================================================] 100%
|
|
2833 of 2833 items
|
|
... completed
|
|
|
|
Publishing Delta RPMs
|
|
... skipped
|
|
|
|
Publishing Errata
|
|
[\]
|
|
... completed
|
|
|
|
Publishing Comps file
|
|
[==================================================] 100%
|
|
28 of 28 items
|
|
... completed
|
|
|
|
Publishing Metadata.
|
|
[-]
|
|
... completed
|
|
|
|
Closing repo metadata
|
|
[-]
|
|
... completed
|
|
|
|
Generating sqlite files
|
|
... skipped
|
|
|
|
Removing old repodata
|
|
[-]
|
|
... completed
|
|
|
|
Generating HTML files
|
|
... skipped
|
|
|
|
Publishing files to web
|
|
[\]
|
|
... completed
|
|
|
|
Writing Listings File
|
|
[-]
|
|
... completed
|
|
|
|
|
|
Task Succeeded
|
|
|
|
|
|
[milan@pulp2F28 pulp_rpm]$ fg
|
|
mongo pulp_database
|
|
> db.units_rpm.find({'name': 'dnf'})[0].release
|
|
1.fc27
|
|
> db.units_rpm.find({'name': 'dnf'})[0].requires
|
|
[
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "/bin/sh"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "/bin/sh"
|
|
},
|
|
{
|
|
"release" : "1.fc27",
|
|
"epoch" : "0",
|
|
"version" : "2.7.3",
|
|
"flags" : "EQ",
|
|
"name" : "python3-dnf"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "systemd"
|
|
},
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "systemd"
|
|
}
|
|
]
|
|
> db.units_rpm.find({'name': 'dnf'})[0].recommends
|
|
[
|
|
{
|
|
"release" : null,
|
|
"epoch" : null,
|
|
"version" : null,
|
|
"flags" : null,
|
|
"name" : "python3-dbus"
|
|
}
|
|
]
|
|
> db.units_rpm.find({'name': 'dnf'})[1].recommends
|
|
> db.units_rpm.find({'name': 'dnf'})[1].release
|
|
12.fc28
|
|
>
|