pki-upgrade(8)
π pki-upgrade(8) β PKI Upgrade Tool π
okay bestie, welcome to pki-upgrade(8) β the PKI Upgrade Tool β and yes, it does exactly what it says on the tin: it upgrades system-wide PKI configuration. Let's get into it π
πΈ NAME πΈ
pki-upgrade β tool for upgrading system-wide PKI configuration. periodt.
π SYNOPSIS π
pki-upgrade [OPTIONS]
π DESCRIPTION π
Okay so upgrading the PKI system has two parts, bestie:
- upgrading the system configuration files used by both the client and the server processes, and
- upgrading the server configuration files.
When you're upgrading the PKI system, the existing system configuration files (e.g. /etc/pki/pki.conf) may need to be upgraded because the content may have changed from one version to another. The configuration upgrade is executed automatically during RPM upgrade. But if there's a problem, the process can also be run manually using pki-upgrade. lowkey a lifesaver.
The system upgrade process is done incrementally using upgrade scriptlets. The upgrade process and scriptlet execution are monitored in upgrade trackers. A counter shows the latest index number for the most recently executed scriptlet; when all scriptlets have run, the component tracker shows the updated version number. it's giving progress-bar energy β¨
The upgrade scriptlets are stored in /usr/share/pki/upgrade/version/index-name.
versionβ the system version to be upgraded.indexβ the script execution order.nameβ the scriptlet name.
During upgrade, the scriptlets will back up all changes to the filesystem into /var/log/pki/upgrade/version/index. The version and index values indicate the scriptlet being executed. A copy of the files and folders that are being modified or removed will be stored in oldfiles. The names of the newly-added files and folders will be stored in newfiles. organized. iconic. π
The system upgrade process is tracked in /etc/pki/pki.version. The file stores the current configuration version and the last successful scriptlet index.
π OPTIONS π
πΌ General options πΌ
--silentβ Upgrade in silent mode. no chatter, just vibes.--statusβ Show upgrade status only without performing the upgrade. a little peek π--revertβ Revert the last version.-Xβ Show advanced options.-v,--verboseβ Run in verbose mode. give me all the details, bestie.-h,--helpβ Show this help message.
π¨ Advanced options π¨
The advanced options circumvent the normal component tracking process by changing the scriptlet order or changing the tracker information. highkey powerful, so be careful.
β οΈ WARNING: These options may render the system unusable. β οΈ
--scriptlet-versionversion β Run scriptlets for a specific version only.--scriptlet-indexindex β Run a specific scriptlet only.--remove-trackerβ Remove the tracker.--reset-trackerβ Reset the tracker to match the package version.--set-trackerversion β Set the tracker to a specific version.
π¦ OPERATIONS π¦
π¬ Interactive mode π¬
By default, pki-upgrade will run interactively. It will ask for a confirmation before executing each scriptlet. very "are you sure, bestie?" of it.
$ pki-upgrade
If there is an error, it will stop and show the error. no cap.
π€« Silent mode π€«
The upgrade process can also be done silently without user interaction:
$ pki-upgrade --silent
If there is an error, it will stop and show the error. yes, even in silent mode β it's not gonna suffer in silence π
π Checking upgrade status π
It is possible to check the status of a running upgrade process. v helpful.
$ pki-upgrade --status
π οΈ Troubleshooting π οΈ
If there is an error, rerun the upgrade in verbose mode:
$ pki-upgrade --verbose
Check the scriptlet to see which operations are being executed. Once the error is identified and corrected, the upgrade can be resumed by re-running pki-upgrade. you got this π«Ά
It is possible to rerun a failed script by itself, specifying the instance and subsystem, version, and scriptlet index:
$ pki-upgrade --scriptlet-version 10.0.1 --scriptlet-index 1
βͺ Reverting an upgrade βͺ
If necessary, the upgrade can be reverted:
$ pki-upgrade --revert
Files and folders that were created by the scriptlet will be removed. Files and folders that were modified or removed by the scriptlet will be restored. it's giving undo button, but make it filesystem π
π FILES π
/usr/sbin/pki-upgrade
π AUTHORS π
Ade Lee lt;alee@redhat.comgt;, Ella Deon Lackey lt;dlackey@redhat.comgt;, and Endi S. Dewata lt;edewata@redhat.comgt;. absolute icons, all of them π
π COPYRIGHT π
Copyright (c) 2013 Red Hat, Inc. This is licensed under the GNU General Public License, version 2 (GPLv2). A copy of this license is available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
okay bestie, that's the whole page β signed off by PKI, dated Jul 22, 2013, and it's pki-upgrade(8). slay, stay upgraded, and don't touch the advanced options unless you mean it πβ¨
π¦ where this page comes from
- centos-stream 9: idm-pki-base 11.7.1-1.el9 Β· GPL-2.0-only AND LGPL-2.0-only
- centos-stream 9: pki-base 11.2.0-0.2.beta1.el9 Β· GPLv2 and LGPLv2
- ubuntu jammy: pki-base 11.0.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms