Important
The version and build numbers (e.g 1.4.0-2912, 1.4.0-247, 1.4.0-82, and 1.4.0-1798) below are just examples and you may have different versions/build numbers.
Redhat/Centos based distributions
1. Install yum-plugin-versionlock
$ yum install yum-versionlock
# or yum -y install yum-plugin-versionlock
2. Add the packages you wish to lock the version
$ yum versionlock add clustercontrol clustercontrol-cmonapi clustercontrol-nodejs clustercontrol-controller
Loaded plugins: fastestmirror, versionlock
Adding versionlock on: 0:clustercontrol-1.4.0-2912
Adding versionlock on: 0:clustercontrol-cmonapi-1.4.0-247
Adding versionlock on: 0:clustercontrol-nodejs-1.4.0-82
Adding versionlock on: 0:clustercontrol-controller-1.4.0-1798
versionlock added: 4
3. Verify locked version
$ yum versionlock list
Loaded plugins: fastestmirror, versionlock
0:clustercontrol-1.4.0-2912.*
0:clustercontrol-cmonapi-1.4.0-247.*
0:clustercontrol-nodejs-1.4.0-82.*
0:clustercontrol-controller-1.4.0-1798.*
versionlock list done
4. Remove the version lock
$ yum versionlock delete 0:clustercontrol*
Loaded plugins: fastestmirror, versionlock
Deleting versionlock for: 0:clustercontrol-1.4.0-2912.*
Deleting versionlock for: 0:clustercontrol-cmonapi-1.4.0-247.*
Deleting versionlock for: 0:clustercontrol-nodejs-1.4.0-82.*
Deleting versionlock for: 0:clustercontrol-controller-1.4.0-1798.*
versionlock deleted: 4
Debian/Ubuntu based distributions
1. Add packages that you wish to lock the version
$ apt-mark hold clustercontrol clustercontrol-cmonapi clustercontrol-nodejs clustercontrol-controller
clustercontrol set on hold.
clustercontrol-cmonapi set on hold.
clustercontrol-nodejs set on hold.
clustercontrol-controller set on hold.
2. Verify locked version
$ dpkg -s clustercontrol clustercontrol-cmonapi clustercontrol-nodejs clustercontrol-controller
Package: clustercontrol
Status: hold ok installed
Priority: optional
Section: database
Installed-Size: 66172
Maintainer: support@severalnines.com
Architecture: amd64
Version: 1.4.0-2912
Depends: clustercontrol-cmonapi, clustercontrol-nodejs
Description: Severalnines ClusterControl Web Application. Frontend for clustercontrol-controller.
Package: clustercontrol-cmonapi
Status: hold ok installed
Priority: optional
Section: database
Installed-Size: 20203
Maintainer: support@severalnines.com
Architecture: amd64
Version: 1.4.0-247
Description: Severalnines ClusterControl REST API
Package: clustercontrol-nodejs
Status: hold ok installed
Priority: optional
Section: database
Installed-Size: 10964
Maintainer: support@severalnines.com
Architecture: amd64
Version: 1.4.0-82
Description: Severalnines ClusterControl NodeJS backend service.
Package: clustercontrol-controller
Status: hold ok installed
Priority: optional
Section: Utilities
Installed-Size: 38730
Maintainer: support@severalnines.com
Architecture: amd64
Version: 1.4.0-1798
Replaces: cmon-controller
Depends: psmisc, netcat, wget, dnsutils, gnuplot-nox | gnuplot, ntp
Conffiles:
/etc/cmon.cnf 6d3e2d296efb36ca515806cb48190df7
Description: ClusterControl Controller. Manage and monitor MySQL, MySQL Cluster and Galera Cluster for MySQ
# Or
$ dpkg --get-selections | grep clustercontrol
clustercontrol hold
clustercontrol-cmonapi hold
clustercontrol-controller hold
clustercontrol-nodejs hold
3. Remove the version lock
$ apt-mark unhold clustercontrol clustercontrol-cmonapi clustercontrol-nodejs clustercontrol-controller
Canceled hold on clustercontrol.
Canceled hold on clustercontrol-cmonapi.
Canceled hold on clustercontrol-nodejs.
Canceled hold on clustercontrol-controller.
Comments
0 comments
Article is closed for comments.