Comments - Installing MariaDB .deb Files

10 years, 4 months ago Jean Weisbuch

A simple way to hold the MariaDB server packages from being upgraded by an "apt-get upgrade" (or dist-upgrade) :

# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  mariadb-server-5.5 mariadb-server-core-5.5
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.2 MB of archives.
After this operation, 102 kB of additional disk space will be used.
Do you want to continue [Y/n]? n
# apt-mark hold mariadb-server-core-5.5
mariadb-server-core-5.5 set on hold.
# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  mariadb-server-5.5 mariadb-server-core-5.5
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Use "apt-mark unhold mariadb-server-core-5.5" to un-hold the packages.

Please note that apt-mark (un)hold only exists since Debian Wheezy, to do so on older version you need to use "echo mariadb-server-core-5.5 hold |dpkg --set-selections"

 
8 years, 6 months ago bittin_g

Works great on Debian Jessie just updating at work, after getting info and tips at a MariaDB event in Stockholm today :)

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.