Installing Puppet is pretty Simple, but installing the latest Puppet version in linux might be bit tricky. Some times you may have outdated puppet repositories, so to make sure you are installing the latest version of puppet follow the following steps.
Download the “puppetlabs-release” package for your OS version. The complete list of packages are available at following location.
https://apt.puppetlabs.com/
Now copy the link of the package that suits you, and execute following commands, lets say the package I selected is available at "https://apt.puppetlabs.com/puppetlabs-release-precise.deb"
execute following commands;
$ wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb $ sudo dpkg -i puppetlabs-release-precise.deb $ sudo apt-get update
Now simply install puppet
$ sudo apt-get install puppet
In-order to check which version of puppet you have installed you can execute the following command;
$ puppet --version
$ sudo apt-get --purge remove puppet
If puppet still exists. You can search for any puppet related packages in the system by executing the following command,
$ dpkg --get-selections | grep -v deinstall
How to install
First lets add latest puppet repository.Download the “puppetlabs-release” package for your OS version. The complete list of packages are available at following location.
https://apt.puppetlabs.com/
Now copy the link of the package that suits you, and execute following commands, lets say the package I selected is available at "https://apt.puppetlabs.com/puppetlabs-release-precise.deb"
execute following commands;
$ wget https://apt.puppetlabs.com/puppetlabs-release-precise.deb $ sudo dpkg -i puppetlabs-release-precise.deb $ sudo apt-get update
Now simply install puppet
$ sudo apt-get install puppet
In-order to check which version of puppet you have installed you can execute the following command;
$ puppet --version
How to uninstall puppet
Execute the following to uninstall puppet,$ sudo apt-get --purge remove puppet
If puppet still exists. You can search for any puppet related packages in the system by executing the following command,
$ dpkg --get-selections | grep -v deinstall
If there are any puppet packages e.g: "puppet-commons". Then select the package name you want to remove and execute the following command;
$ sudo apt-get --purge remove <PACKAGE-NAME>
0 comments:
Post a Comment