Why puppet showing different versions in system:[root@localhost ~]# puppet --version4.7.0[root@localhost ~]# puppet agent --version4.7.0But rpm shows diff version for agent and server[root@localhost ~]# rpm -qa | grep puppetmcollective-puppet-common-1.11.1-1.el7.noarchpuppetlabs-release-22.0-2.noarchmcollective-puppet-agent-1.11.1-1.el7.noarchpuppet-agent-1.7.0-1.el7.x86_64puppet-agent-oauth-0.5.1-1.el7.noarchpuppetserver-2.6.0-1.el7.noarchmcollective-puppet-client-1.11.1-1.el7.noarchPlease clarify?
Puppet shows a different version to the puppet-agent package version
puppet
puppet-agent is a bundle package containing a number of components, called the All-in-One (AIO) package. Here is some more information on it:Where did everything go in Puppet 4.x?Say Hello to Open Source Puppet 4!With the RPMs, you can find out the contents of puppet-agent and the versions of every component with rpm -qi puppet-agent, e.g.# rpm -qi puppet-agentName        : puppet-agentVersion     : 1.8.2Release     : 1.el7Architecture: x86_64Install Date: Wed 07 Dec 2016 07:12:31 ESTGroup       : System Environment/BaseSize        : 126776210License     : See componentsSignature   : RSA/SHA512, Tue 06 Dec 2016 14:30:51 EST, Key ID 7f438280ef8d349fSource RPM  : puppet-agent-1.8.2-1.el7.src.rpmBuild Date  : Mon 05 Dec 2016 19:37:56 ESTBuild Host  : hk1ldlzw0klwdyo.delivery.puppetlabs.netRelocations : (not relocatable)Vendor      : Puppet LabsURL         : https://www.puppetlabs.comSummary     : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, hiera and mcollective.Description :The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, hiera and mcollective.Contains the following components:augeas 1.4.0cpp-hocon 0.1.4[..]puppet 4.8.1[..]The version of puppet in the output corresponds to the version of Puppet:# puppet --version4.8.1You can also find this information summarised online at puppet-agent: What is it, and what's in it? with a table of puppet-agent/Puppet version numbers.Puppet Server is similar. It has its own numbering scheme, where the latest at the time of writing is 2.7.2, and yours is 2.6.0. See Puppet Server: Release Notes for information about each version.The puppetserver package does depend on puppet-agent, so when you're running Puppet Server, you're using Puppet Server 2.6.0 with Puppet 4.7.0 from puppet-agent. The server will have access to all of the language features from Puppet 4.7.0.In short: you're using Puppet 4.7.0 for the server and agent. Trust puppet --version.