Skip to content

Commit c45fb04

Browse files
committed
PS-10109 [DOCS] - Review and update apt-repo 8.4
modified: docs/apt-pinning.md modified: docs/apt-repo.md
1 parent 212f6eb commit c45fb04

File tree

2 files changed

+51
-23
lines changed

2 files changed

+51
-23
lines changed

docs/apt-pinning.md

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,44 @@
11
# Apt pinning the Percona Server for MySQL {{vers}} packages
22

3-
Pinning allows you to stay on a release and get packages from a different version. In some cases, you can pin selected packages and avoid accidentally upgrading all the packages.
3+
Apt pinning helps you control which version of a package is installed from different repositories. This is useful when you want to stay on a specific release such as Percona Server for MySQL 8.4 and avoid automatic upgrades from other sources.
44

5-
The pinning takes place in the `preference` file. To pin a package, set the `Pin-Priority` to higher numbers.
6-
7-
Make a new file `/etc/apt/preferences.d/00percona.pref`. For example, add the following to the `preference` file:
5+
To pin the Percona Server for MySQL 8.4 packages, follow these steps:
6+
{.power-number}
87

9-
```text
10-
Package:
11-
Pin: release o=Percona Development Team
12-
Pin-Priority: 1001
13-
```
8+
1. Create a preferences file in `/etc/apt/preferences.d/` named `00percona.pref`:
149

15-
For more information about the pinning, you can check the official [debian wiki](https://wiki.debian.org/AptConfiguration?action=show&redirect=AptPreferences).
10+
```{.bash data-prompt="$"}
11+
$ sudo nano /etc/apt/preferences.d/00percona.pref
12+
```
13+
14+
2. Add the pinning configuration content to the file:
15+
16+
```ini
17+
Package: percona-server-server
18+
Pin: release o=Percona Development Team,a=stable
19+
Pin-Priority: 1001
20+
```
21+
22+
* The `Package` field specifies the exact name of the package.
23+
* The `Pin` field identifies the origin of the package, which is the Percona repository.
24+
* The `Pin-Priority` field sets the priority level. A value above 1000 ensures this version is preferred over others.
25+
26+
Save and close the file.
27+
28+
3. Update package lists to refresh your package sources:
29+
30+
```{.bash data-prompt="$"}
31+
$ sudo apt update
32+
```
33+
34+
4. Install Percona Server for MySQL 8.4 using the following command:
35+
36+
```{.bash data-prompt="$"}
37+
$ sudo apt install percona-server-server
38+
```
39+
40+
Your system prioritizes the version from the Percona repository according to your pinning settings.
41+
42+
## Learn more
43+
44+
For additional details, visit the [debian wiki](https://wiki.debian.org/AptConfiguration?action=show&redirect=AptPreferences).

docs/apt-repo.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
# Use an APT repository to install Percona Server for MySQL {{vers}}
1+
# Install Percona Server for MySQL {{vers}} Using APT on Debian/Ubuntu
22

3-
Ready-to-use packages are available from the Percona Server for MySQL software
4-
repositories and the [Percona downloads] page.
3+
Percona provides ready-to-use packages for MySQL 8.4 through its APT repositories, offering seamless updates and dependency resolution for Debian-based systems.
54

65
Specific information on the supported platforms, products, and versions is described in [Percona Software and Platform Lifecycle](https://www.percona.com/services/policies/percona-software-platform-lifecycle#mysql).
76

8-
We gather [Telemetry data] in the Percona packages and Docker images.
7+
Percona packages and Docker images collect anonymous telemetry data to improve product quality. For details on what is collected and how to opt out, see [Telemetry] in Percona Products.
98

109
--8<--- "get-help-snip.md"
1110

1211
## ARM support
1312

14-
The DEB builds for Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, DEBIAN 11, and DEBIAN 12 contain ARM packages with the `aarch64.rpm` extension. This means that Percona Server for MySQL is available for users on ARM-based systems.
13+
Percona Server for MySQL 8.4 supports ARM-based systems. DEB packages for Ubuntu 20.04, 22.04, 24.04 and Debian 11, 12 include ARM builds targeting the aarch64 architecture.
1514

1615
## Install Percona Server for MySQL using APT
1716

1817
To install Percona Server for MySQL using APT, do the following steps:
1918
{.power-number}
2019

21-
1. Update the package repositories:
20+
1. Update the package index:
2221

2322
```{.bash data-prompt="$"}
2423
$ sudo apt update
@@ -36,29 +35,29 @@ To install Percona Server for MySQL using APT, do the following steps:
3635
$ curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
3736
```
3837

39-
4. Install the downloaded package with `apt` as root or with sudo:
38+
4. Install the package with `apt` as root or with sudo:
4039

4140
```{.bash data-prompt="$"}
4241
$ sudo apt install gnupg2 lsb-release ./percona-release_latest.generic_all.deb
4342
```
4443

4544

46-
5. Refresh the local cache to update the package information:
45+
5. Refresh the package index:
4746

4847
```{.bash data-prompt="$"}
4948
$ sudo apt update
5049
```
5150

52-
6. Use `percona-release` to set up the repository for the Percona Server for MySQL {{vers}} version:
51+
6. Enable the Percona Server for MySQL {{vers}} repository:
5352

5453
```{.bash data-prompt="$"}
5554
$ sudo percona-release enable-only {{pkg}} release
5655
$ sudo percona-release enable tools release
5756
```
5857

59-
7. You can check the repository setup for the Percona original release list in `/etc/apt/sources.list.d/percona-original-release.list`.
58+
7. [Optional] You can check the repository setup for the Percona original release list in `/etc/apt/sources.list.d/percona-original-release.list`.
6059

61-
8. Install the server package with the `percona-release` command:
60+
8. Install the server:
6261

6362
```{.bash data-prompt="$"}
6463
$ sudo apt install percona-server-server
@@ -68,7 +67,7 @@ See [Configuring Percona repositories with `percona-release`](https://docs.perco
6867

6968
--8<--- "storage-engines.md"
7069

71-
Percona Server for MySQL includes user-defined functions (UDFs) from [Percona Toolkit](https://docs.percona.com/percona-toolkit/). These UDFs, `fnv_64`, `fnv1a_64`, `murmur_hash`, offer faster checksum calculations compared to standard methods. For detailed information about these user-defined functions, see [Percona Toolkit UDF functions](udf-percona-toolkit.md).
70+
Percona Server for MySQL includes user-defined functions (UDFs) from [Percona Toolkit](https://docs.percona.com/percona-toolkit/) for faster checksum calculations. Learn more in [Percona Toolkit UDF functions](udf-percona-toolkit.md).
7271

7372
Once the installation completes, execute the following command to install these functions:
7473

@@ -89,4 +88,4 @@ These builds should not be run in production. This build may not contain all of
8988

9089
[Percona downloads]: https://www.percona.com/downloads/Percona-Server-{{vers}}/
9190

92-
[Telemetry data]: telemetry.md
91+
[Telemetry]: telemetry.md

0 commit comments

Comments
 (0)