- Backup Chef Server configuration files
$ mkdir ~/chef-server/backups
$ tar -czvf ~/chef-server/backups/chef-server.$(head -n1 /opt/chef-server/version-manifest.txt | awk '{ print $2 }').backup.$(date +%s).tgz /etc/chef-server
- Download the latest version
Example: Chef Server 11.0.12 for Enterprise Linux 6 (64 bit)
$ curl -O https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.0.12-1.el6.x86_64.rpm
- Stop and uninstall Chef Server
$ sudo chef-server-ctl stop
$ sudo yum remove chef-server
- Install new version
$ sudo yum install chef-server-11.0.12-1.el6.x86_64.rpm
- Reconfigure and restart Chef Server
$ sudo chef-server-ctl postgresql start
$ sudo chef-server-ctl reconfigure
$ sudo chef-server-ctl restart