No method to auto repair package system – easyapache

Cpanel easyapache will throw "No method to auto repair package system" when it can't fix yum package installation issues in the server. Most cases this can be fixed by repairing rpm database. Let see how to do that. Backup current rpm DBs

Rebuild rpm databases

That should fix the easyapache package manager issue.

build-locale-archive: cannot read archive header

If you are getting following error when trying to build locale archive in CentOS or RedHat 6 machines,

Then check if proper locale-archive.tmpl file present in /usr/lib/locale/

If you can't find proper files under /usr/lib/locale/ , then download and extract it from glibc-common

Copy the file to actual location.

Make sure that it copied… Continue reading build-locale-archive: cannot read archive header

Beginner’s guide to Linux commands – grep

grep is a great tool that all nix administrators use in their day to day work. Let see some interesting options available to it. Searching a string That is the basic usage of this tool.

Case insensitive search grep has -i option for case insensitive search.

Search full word, not substring If you… Continue reading Beginner’s guide to Linux commands – grep

Beginner’s guide to Linux commands – paste

Today we are going to look at paste command in Linux. Paste man page says it's a tool to "merge lines of files", that is correct it merges each line in one or more than one files. Take a Look at file named file.txt

Without any option paste command works like cat.

Merging… Continue reading Beginner’s guide to Linux commands – paste