v1.1
- Overview
- Quick Start
- Install PTK
- Usage
- Configuration
- Config Samples
- Commands
- ptk
- ptk completion
- ptk register
- ptk init-cluster
- ptk collect
- ptk rec-guc
- ptk cache
- ptk gen-ptkc
- ptk manage
- ptk demo
- ptk meta
- ptk version
- ptk self
- ptk gen-om-xml
- ptk env
- ptk gen-static-config
- ptk cluster
- ptk cluster rename
- ptk cluster throwout
- ptk cluster takeover
- ptk cluster uninstall-cm
- ptk cluster install-cm
- ptk cluster gen-cert-files
- ptk cluster load-cm-vip
- ptk cluster del-kerberos-auth
- ptk cluster add-kerberos-auth
- ptk cluster uninstall-kerberos-server
- ptk cluster install-kerberos-server
- ptk cluster is-in-upgrade
- ptk cluster upgrade-rollback
- ptk cluster upgrade-commit
- ptk cluster upgrade
- ptk cluster demote
- ptk cluster promote
- ptk cluster refresh
- ptk cluster shell
- ptk cluster modify-comment
- ptk cluster show-config
- ptk cluster set-guc
- ptk cluster show-guc
- ptk cluster set-hba
- ptk cluster show-hba
- ptk cluster scale-out
- ptk cluster scale-in
- ptk cluster uninstall-mogha
- ptk cluster install-mogha
- ptk cluster list-plugins
- ptk cluster install-plugin
- ptk cluster inspect
- ptk cluster failover
- ptk cluster switchover
- ptk cluster build
- ptk cluster status
- ptk cluster restart
- ptk cluster stop
- ptk cluster start
- ptk uninstall
- ptk ls
- ptk install
- ptk exec
- ptk template
- ptk encrypt
- ptk checkos
- ptk download
- ptk candidate
- Troubleshooting
- FAQ
- Release Note
- GPTK - Graphical Deployment Tool
- Community
- Appendix: YAML Syntax
Upgrading PTK
View the Help Information
$ ptk self -h
Operate with the PTK installation package.
Usage:
ptk self [command]
Available Commands:
upgrade Download and automatically install PTK
Flags:
-h, --help help for self
Online Upgrade
You can run the self upgrade
command to upgrade PTK to the latest version. After the upgrade, you can run the ptk -v
command to check the PTK version.
Example:
$ ptk self upgrade
INFO[2022-07-30T10:26:36.197] downloading ptk_darwin_arm64.tar.gz...
> ptk_darwin_arm64.tar.gz: 4.86 MiB / 4.86 MiB [-------------------------------------------------------------------] 100.00% 7.48 MiB p/s 900ms
INFO[2022-07-30T10:26:37.701] download successfully
INFO[2022-07-30T10:26:37.831] upgrade ptk successfully
Offline Upgrade
Firstly, you need to download a package based on your operating system (the following link always shows you the packages of the latest versions):
- MacOS ARM64: ptk_darwin_arm64.tar.gz
- MacOS X86: ptk_darwin_x86_64.tar.gz
- Linux ARM64: ptk_linux_arm64.tar.gz
- Linux X86: ptk_linux_x86_64.tar.gz
- Windows X86: ptk_windows_x86_64.tar.gz
Secondly, you need to put the PTK package in the PTK binary directory of the server where PTK is installed and decompress the package to override the old binary file.
# which ptk
/root/.ptk/bin/ptk
# cd /root/.ptk/bin/
tar -xvf ptk_[os]_[arch]_.tar.gz
If the PTK version is later than 0.3, you can specify the -p
parameter to perform the local upgrade.
# ptk self upgrade -p /path/to/ptk_[os]_[arch]_.tar.gz