PackageGroupCategories
A package group category corresponds to a collection of package group names in the Pulp server. Anaconda uses package group categories to visualize collections of package groups. Package group categories are not used by yum.
Installation
Remote package group category installation on a consumer is covered in the Consumers section of the User Guide.
List
The packagegroup list_category command displays package group categories defined by a given repository.
Parameters:
| Parameter | Description | Optional/Required? |
| -r or --repoid | Repository ID | Required |
Example
$ pulp-admin packagegroup list_category --repoid test_category
+------------------------------------------+
Repository: test_category
Package Group Category Information
+------------------------------------------+
apps
desktops
Info
The packagegroup info_category command displays information about a specific package group category. The package group category is indicated by both a repository ID and a package group category ID.
Parameters:
| Parameter | | Description |
| --categoryid | Package group category ID |
| -r or --repoid | Repository ID |
Information about a package group category includes:
| Field | Description |
| Name | Name of this package group |
| ID | ID of this package group, typically the name in lowercase |
| Groups | Package Groups |
$ pulp-admin packagegroup info_category --repoid test_category --categoryid apps
+------------------------------------------+
Package Group Category Information
+------------------------------------------+
Name Applications
Id apps
Groups ['authoring-and-publishing', 'office', 'sound-and-video', 'font-design', 'editors', 'engineering-and-scientific', 'games', 'graphics', 'text-internet', 'graphical-internet', 'education']
Create
The packagegroup create_category command allows a package group category to be created in a repository.
Parameters:
| Parameter | | Description |
| --categoryid | ID of packagegroupcategory (required) |
| -r or --repoid | ID of repository (required) |
| -n or --name | Name of packagegroupcategory (required) |
| -d or --description | Description of packagegroupcategory (optional) |
Example
$ pulp-admin packagegroup create_category -r test_category --categoryid test_cat_id1 -n test_cat1 -d test_cat1_description Package group category [test_cat_id1] created in repository [test_category]
Delete
The packagegroup delete_category command allows a package group category to be deleted from a repository. The delete will only be allowed on user created package group categories. Those package group categories imported into pulp through a repository synchronization are marked as immutable and will not be allowed to be deleted.
Example
$ pulp-admin packagegroup delete_category -r test_category --categoryid test_cat_id1 Package group category [test_cat_id1] deleted from repository [test_category]
Add Package
The packagegroup add_group command adds a package group to a package group category.
Parameters:
| Parameter | Description |
| --id | ID of packagegroup |
| --categoryid | ID of packagegroupcategory |
| -r or --repoid | ID of repository |
Example
$ pulp-admin packagegroup add_group -r test_category --categoryid test_cat_id1 --id test_group_1 Package group [test_group_1] added to category [test_cat_id1] in repository [test_category]
Delete Package
The packagegroup delete_group command removes a package group from a package group category.
Parameters
| Parameter | Description |
| --id | ID of packagegroup |
| --categoryid | ID of packagegroupcategory |
| -r or --repoid | ID of repository |
Example
$ pulp-admin packagegroup delete_group -r test_category --categoryid test_cat_id1 --id test_group_1 Group [test_group_1] deleted from category [test_cat_id1] in repository [test_category]