error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
While bootstrapping a redhat node which is on AWS EC2, which supports only the SSH identity file for authentication, I was getting the below error after this command knife bootstrap 52.0.13.12 --ssh-user ec2-user --identity-file ~/.ssh/xyz.pem --node-name first1 --run-list 'recipe[some_thing]' Error 52.0.13.132 Installing Chef Client... 52.0.13.132 % Total % Received % Xferd Average Speed Time Time Time Current 52.0.13.132 Dload Upload Total Spent Left Speed 100 18285 100 18285 0 0 48457 0 --:--:-- --:--:-- --:--:-- 48630 52.0.13.132 Downloading Chef 11 for el... 52.0.13.132 downloading https://www.opscode.com/chef/metadata?v=11&prerelease=false&nightlies=false&p=el&pv=7&m=x86_64 52.0.13.132 to file /tmp/install.sh.940/metadata.txt 52.0.13.132 trying curl... 52.0.13.132 url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.18.6-1.el6