Chapter 15. Managing packages
You can use Satellite to install, upgrade, and remove packages and to enable or disable repositories on hosts.
Packages actions use remote execution. For more information about running remote execution jobs, see Configuring and setting up remote jobs in Managing hosts.
15.1. Enabling and disabling repositories on hosts Copy linkLink copied to clipboard!
Use this procedure to enable and disable repositories on hosts.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts,
- Select a host.
- On the Content tab, click the Repository sets tab.
- Click the vertical ellipsis to choose Override to disabled or Override to enabled to disable or enable repositories on hosts.
15.2. Installing packages on a host Copy linkLink copied to clipboard!
Use this procedure to review and install packages on a host using the Satellite web UI. The list of packages available for installation depends on the content view environments assigned to the host.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select a host.
- On the Content tab, click the Packages tab.
- On the vertical ellipsis icon next to the upgrade button, click Install packages.
- In the Install packages window, select the package or packages that you want to install on the host.
- Click Install. The Satellite web UI shows a notification for the remote execution job.
API procedure
Supply the API request body in the JSON format:
Example API request body:
- 1
- The
"job_invocation"
object, which contains the API request. - 2
- Optional: Limit the number of hosts on which the job is run concurrently.
- 3
- The
"feature"
field with value"katello_package_install"
. - 4
- The
"inputs/package"
object that specifies the packages to install. Separate multiple packages with a whitespace. - 5
- Optional: Time boundaries for when to start to install packages.
- You can specify one or both boundaries in the ISO 8601 format.
- The action is canceled if it is not possible to install the packages by this time.
- If you omit time, it defaults to 00:00:00.
- If you omit time zone, it defaults to UTC.
- 6
- The search query that matches the hosts on which you want to install the packages.
- 7
- Optional: Credentials of an SSH user, if you want to install packages as that user.
- 8
- Optional: If you supplied the
"scheduling"
object, you can make the search query be evaluated when the job runs by specifying the"targeting_type/dynamic_query"
field.- This is useful if you expect the query to produce a different result at the time of running the job.
-
If you omit this field, it defaults to
"static_query"
.
Send a
POST
request with the created body to the/api/job_invocations
endpoint of your Satellite Server and see a formatted response:Example API request:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
- In the Satellite web UI, navigate to Monitor > Jobs and see the report of the scheduled or completed remote execution job to install the packages on the selected hosts.
15.3. Upgrading packages on a host Copy linkLink copied to clipboard!
You can upgrade packages on a host in bulk in the Satellite web UI.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select a host.
- On the Content tab, click the Packages tab.
- Select Upgradable from the Status list.
- In the Upgradable to column, select the package version that you want to upgrade to.
- Select the packages you want to upgrade.
- Click Upgrade. The Satellite web UI shows a notification for the remote execution job.
API procedure
Supply the API request body in the JSON format:
Example API request body:
- 1
- The
"job_invocation"
object, which contains the API request. - 2
- Optional: Limit the number of hosts on which the job is run concurrently.
- 3
- The
"feature"
field with value"katello_package_update"
. - 4
- The
"inputs/package"
object that specifies the packages to update. Separate multiple packages with a whitespace. - 5
- Optional: Time boundaries for when to start to update packages.
- You can specify one or both boundaries in the ISO 8601 format.
- The action is canceled if it is not possible to update the packages by this time.
- If you omit time, it defaults to 00:00:00.
- If you omit time zone, it defaults to UTC.
- 6
- The search query that matches the hosts on which you want to update the packages.
- 7
- Optional: Credentials of an SSH user, if you want to update packages as that user.
- 8
- Optional: If you supplied the
"scheduling"
object, you can make the search query be evaluated when the job runs by specifying the"targeting_type/dynamic_query"
field.- This is useful if you expect the query to produce a different result at the time of running the job.
-
If you omit this field, it defaults to
"static_query"
.
Send a
POST
request with the created body to the/api/job_invocations
endpoint of your Satellite Server and see a formatted response:Example API request:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
- In the Satellite web UI, navigate to Monitor > Jobs and see the report of the scheduled or completed remote execution job to update the packages on the selected hosts.
15.4. Removing packages from a host Copy linkLink copied to clipboard!
You can remove packages from a host in the Satellite web UI.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select a host.
- On the Content tab, click the Packages tab.
- Click the vertical ellipsis for the package you want to remove.
- Select Remove. The Satellite web UI shows a notification for the remote execution job.
API procedure
Supply the API request body in the JSON format:
Example API request body:
- 1
- The
"job_invocation"
object, which contains the API request. - 2
- Optional: Limit the number of hosts on which the job is run concurrently.
- 3
- The
"feature"
field with value"katello_package_remove"
. - 4
- The
"inputs/package"
object that specifies the packages to remove. Separate multiple packages with a whitespace. - 5
- Optional: Time boundaries for when to start to remove packages.
- You can specify one or both boundaries in the ISO 8601 format.
- The action is canceled if it is not possible to remove the packages by this time.
- If you omit time, it defaults to 00:00:00.
- If you omit time zone, it defaults to UTC.
- 6
- The search query that matches the hosts on which you want to remove the packages.
- 7
- Optional: Credentials of an SSH user, if you want to remove packages as that user.
- 8
- Optional: If you supplied the
"scheduling"
object, you can make the search query be evaluated when the job runs by specifying the"targeting_type/dynamic_query"
field.- This is useful if you expect the query to produce a different result at the time of running the job.
-
If you omit this field, it defaults to
"static_query"
.
Send a
POST
request with the created body to the/api/job_invocations
endpoint of your Satellite Server and see a formatted response:Example API request:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
- In the Satellite web UI, navigate to Monitor > Jobs and see the report of the scheduled or completed remote execution job to remove the packages on the selected hosts.