You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Apt pinning the Percona Server for MySQL {{vers}} packages
2
2
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.
4
4
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
+
## Steps to pin Percona Server for MySQL 8.4
6
+
7
+
### Step 1: Create a Preferences file
8
+
9
+
Open the directory located at `/etc/apt/preferences.d/` and create a new file named `00percona.pref`.
10
+
11
+
```bash
12
+
sudo nano /etc/apt/preferences.d/00percona.pref
13
+
```
14
+
15
+
### Step 2: Add the Pinning configuration
16
+
17
+
Insert the following content into the file:
8
18
9
19
```text
10
-
Package:
11
-
Pin: release o=Percona Development Team
20
+
Package: percona-server-server
21
+
Pin: release o=Percona Development Team,a=stable
12
22
Pin-Priority: 1001
13
23
```
14
24
15
-
For more information about the pinning, you can check the official [debian wiki](https://wiki.debian.org/AptConfiguration?action=show&redirect=AptPreferences).
25
+
The Package field specifies the exact name of the package.
26
+
27
+
The Pin field identifies the origin of the package, which is the Percona repository.
28
+
29
+
The Pin-Priority field sets the priority level. A value above 1000 ensures this version is preferred over others.
30
+
31
+
Save and close the file.
32
+
33
+
### Step 3: Update package lists
34
+
35
+
Run the following command to refresh your package sources:
36
+
37
+
```bash
38
+
sudo apt update
39
+
```
40
+
41
+
### Step 4: Install the pinned package
42
+
43
+
Install Percona Server for MySQL 8.4 using the following command:
44
+
45
+
```bash
46
+
sudo apt install percona-server-server
47
+
```
48
+
49
+
Your system prioritize the version from the Percona respository according to your pinning settings.
50
+
51
+
## Learn more
52
+
53
+
For additional details, visit the [debian wiki](https://wiki.debian.org/AptConfiguration?action=show&redirect=AptPreferences).
Copy file name to clipboardExpand all lines: docs/apt-repo.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
2
2
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.
5
4
6
5
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).
7
6
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.
9
8
10
9
--8<--- "get-help-snip.md"
11
10
12
11
## ARM support
13
12
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.
15
14
16
15
## Install Percona Server for MySQL using APT
17
16
18
17
To install Percona Server for MySQL using APT, do the following steps:
19
18
{.power-number}
20
19
21
-
1. Update the package repositories:
20
+
1. Update the package index:
22
21
23
22
```{.bash data-prompt="$"}
24
23
$ sudo apt update
@@ -36,29 +35,29 @@ To install Percona Server for MySQL using APT, do the following steps:
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`.
60
59
61
-
8. Install the server package with the `percona-release` command:
60
+
8. Install the server:
62
61
63
62
```{.bash data-prompt="$"}
64
63
$ sudo apt install percona-server-server
@@ -68,7 +67,7 @@ See [Configuring Percona repositories with `percona-release`](https://docs.perco
68
67
69
68
--8<--- "storage-engines.md"
70
69
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).
72
71
73
72
Once the installation completes, execute the following command to install these functions:
74
73
@@ -89,4 +88,4 @@ These builds should not be run in production. This build may not contain all of
0 commit comments