Posts

Showing posts from 2016

Check dependencies of local RPM package

Image
We all know that for managing packages or softwares on any system, we need some kind of tool which can be used to manage the packages or softwares. Different distributions have its know tool for achieving the same.                      For example for RHEL/Centos/Fedora we use RPM(RPM Package Manager)  for all rpm package management which take care of "installation, uninstallation, update, query etc.               So, sometimes whenever we install any package we get lots of error regarding the dependencies. Here we are discussing that how we can list dependencies associated with particular rpm file. 1.) Check for file i,e, yet package is not installed:           rpm -qpR {rpm-file}   e.g.      -----     -----     output truncated..   2.) If packages is already installed:       rpm -qR {pa...

Remount multiple NFS mount points on Client in one go

Image
                                     Sometimes we may have number of mount points available on NFS clients and after making changes for any one of parameters, we have to remount all partitions. Doing umount and mount on multiple partitions will really be hectic job and there may be chances of human errors.           We can do this using single command to achieve the same. Sharing some other commands as well, before moving to exact one :). Get the list of all NFS mount points available on System:                       Before moving ahead with changes, lets see how many partitions are their on system. Below command will do trick and give you all the nfs mount points without any header and headers. Without headers -                      # df -PF n...

"ERROR: Could not find cookbook in your cookbook path, skipping it" in Chef

Image
Chef is a automation framework tool which help us to deploy code or configuration across multiple systems which may be physical, virtual or cloud systems. Here I am just want to highlight one small issue which I got when I was trying to upload cookbook from my workstation. Everything was in place, but still it was throwing below error: $ knife  cookbook upload cookbook_name ERROR: Could not find cookbook  cookbook_name  in your cookbook path, skipping it ERROR: Failed to upload 1 cookbook. Usually, by default knife will use default location specified in  ~/.chef/knife.rb file for cookbook. In my everything was correctly configured as below : $ cat ~/.chef/knife.rb | grep cookbook_path cookbook_path [ '.', '..' ] I was trying to upload as per directory name given to cookbook. After, doing lots of search finally got to know that knife command will compare the cookbook name from metadata.rb file in cookbook directory. Then I made the correction in ...