Tuesday 30 August 2016

activesupport requires Ruby version >= 2.2.2

Rails installation error in Ubuntu

ERROR:  Error installing rails:
        activesupport requires Ruby version >= 2.2.2

Fix

gem install rails -v 4.2.2

Tuesday 23 August 2016

Remove APT Repository from newer versions of Ubuntu

To remove apt repository from newer versions of Ubuntu, Just type the below command in terminal

cd /etc/apt/sources.list.d

and then remove the files manually using

sudo rm -f <<filename>>.list
sudo rm -f <<filename>>.save

Puppet Master & Client Uninstallation in Ubuntu

Uninstall puppetmaster-common

sudo apt-get remove puppetmaster-common

This will remove just the puppetmaster-common package itself.

Uninstall puppetmaster-common and it's dependencies

sudo apt-get remove --auto-remove puppetmaster-common

This will remove the puppetmaster-common package and any other dependant packages that are no longer needed.

Purging your config/data

If you also want to delete your local/config files for puppetmaster-common then this will do the trick.

sudo apt-get purge puppetmaster-common

Or similarly, like this


sudo apt-get purge --auto-remove puppetmaster-common




Uninstall just puppet

sudo apt-get remove puppet

This will remove just the puppet package itself.

Uninstall puppet and it's dependencies

sudo apt-get remove --auto-remove puppet

This will remove puppet package and any other dependant packages that are no longer needed.

Purging your config/data too

If you also want to delete your local/config files for puppet then this will do the trick.

sudo apt-get purge puppet

Or like this,

sudo apt-get purge --auto-remove puppet