# Packages

---

# Managing Packages

_Peios / Using Peios / Packages_

> Review and apply software transactions through Package Manager.

Package Manager presents peipkg's package queries and transactions. It runs
as your account and uses the same plans, permission checks, history, and
audit records as the command-line package manager.

## Before you start

You need the package database access required for the task, a running GXWI
session, and the relevant repository or package file. Reading package
records and changing installed software are separate permissions.

If the package supplies a configured feature, remove the feature's setup in
[Feature Manager](/peios/using-peios/features/feature-manager.md) first. Keep the
package installed until cleanup reaches **Not Installed**; its scripts are
needed to undo the configuration. If cleanup fails, preserve its output and
resolve the feature state before removing the package.

## Review and apply a transaction

1. Open **Package Manager**. Use **Installed**, **Available**, or
   **Updates** to select the package and action.
2. Read the plan: packages to install, update, downgrade, or remove, and
   the expected download and installed sizes.
3. Review any separate approval for an elevated action, such as replacing
   unowned files or accepting a downgrade. Approve only the action you
   intend.
4. Confirm the plan and follow progress to the final outcome. Answer a
   modified-configuration-file question only after reviewing that file.

## Check the result

Inspect the final outcome, warnings, and **History**, then verify the
installed package version and intended application behavior. **Check
Files** compares installed files with package records. A transaction that
was interrupted can offer **Resolve**; the most recent eligible
transaction can offer **Undo**.

After plan approval, closing the window does not cancel the transaction.
The application waits for it to finish. Do not assume a lost browser
connection rolled back a change.

## Explicit overrides and changed files

A refusal can offer a specific retry, not permission to ignore every check:

- **Continue Anyway** accepts stale repository metadata after refreshing
  failed to obtain newer information. That approval is recorded.
- **Replace It** permits an install to displace an unowned file while keeping
  the displaced copy. An operation without that option needs its conflict
  resolved separately.
- **Update Anyway** bypasses the publisher's alternate-update instruction.
  Check what that update method does before bypassing it.
- **Repositories** leads to explicit review of an untrusted repository's key.
  The application does not approve repository trust during a refresh.

For a modified configuration file encountered during removal, **Keep It**
leaves an unowned file, **Delete It** removes it while keeping a copy beside
it, and **Stop Everything** cancels the removal. Inspect the final outcome
and history rather than assuming a canceled interaction undid every action.

## Repositories, roles, and roots

**Repositories** lists sources and offers refresh, add, trust, and removal
operations. Trust requires your explicit review of the signing key;
update checks refresh repositories already trusted. Stale metadata and
publisher-controlled update refusals have separate, explicit overrides.

**Roles** shows claims and their owning packages. **Installation Roots**
shows named roots; creating them is a `peipkg root` task. **Install from
File** uses the shared file dialog for a `.peipkg` file. See
`gxwi-package-manager(1)` and `peipkg(1)`.

---

# Upgrading Peios from the Desktop

_Peios / Using Peios / Packages_

> Review a release upgrade and choose when its registry seeds apply.

Upgrade Peios changes the machine's Peios release through `upgrade-peios`.
Package Manager handles other software updates. This window uses the same
release plan and permissions as the upgrade command.

## Before you start

You need permission to upgrade, trusted repository metadata, and a recovery
plan appropriate to the release. Read the shared release-upgrade guidance
before applying a machine-wide change.

## Review and apply the upgrade

1. Open **Upgrade Peios**. Check the current release and edition package.
   Use **Check Now** to refresh already trusted repositories and request a
   plan without applying it.
2. Read every proposed change, download size, and installed-size effect.
3. Choose whether **Apply Its Settings at the Next Restart** should defer
   the release's registry seeds. Review the upgrade confirmation and any
   separate package approvals.
4. Start the upgrade and follow it to completion. If the plan changed
   before execution, review the new plan before accepting it.

## Check the result

Read the final outcome and installed release state. The application does
not restart the machine. If settings are deferred, verify that pending
state and apply them at the planned restart. **Apply Now** requests their
immediate application instead.

Once approved, the transaction continues to its result even if the window
is asked to close. **Continue Anyway** after stale-repository information
is an explicit choice to use the available metadata, not a successful
refresh. See `gxwi-upgrade-peios(1)` and the upgrade command's documentation.


## Recovering from a refusal or incomplete result

An untrusted repository needs confirmation in Package Manager; checking
for a release does not grant that trust. When another package change holds
the backend lock, wait for it to finish before trying again.

A settings-application failure does not undo an installed release. Inspect
the pending seeds and the reported package result separately. **Apply
Now** asks the release updater to apply waiting seeds; a restart also
provides the configured application point.

The driven upgrade protocol reports an explicit cancellation separately
from completion. A canceled result stops before release seeds are staged
or applied. Already completed backend effects are not a general rollback
transaction.

An installed package version does not establish which kernel or services
are running. Follow the shared release-upgrade activation checks before
relying on the update. The desktop provides a result display, not proof
that all changed software has restarted.
